packages/packages/lapce/PKGBUILD

25 lines
718 B
Bash
Raw Normal View History

2022-05-27 18:22:22 +00:00
# Maintainer: MedzikUser <nivua1fn@duck.com>
pkgname='lapce'
pkgver="0.1.1"
pkgrel=1
pkgdesc='Lightning-fast and Powerful Code Editor written in Rust '
arch=('x86_64')
url="https://github.com/lapce/lapce"
license=('Apache')
depends=('gcc-libs' 'libxcb' 'expat' 'freetype2' 'libxkbcommon' 'fontconfig' 'gtk3')
makedepends=('rust' 'python' 'cmake')
2022-05-27 18:24:19 +00:00
source=("${url}/archive/v${pkgver}.tar.gz")
2022-05-27 18:22:22 +00:00
sha256sums=('SKIP')
2022-05-27 18:24:19 +00:00
options=('!lto')
2022-05-27 18:22:22 +00:00
build() {
cd "${pkgname}-${pkgver}"
cargo build --release --locked --profile release-lto
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}