addpkg: lapce

This commit is contained in:
MedzikUser 2022-05-27 20:22:22 +02:00
parent 56a96293e0
commit d6a01c0dd5
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
2 changed files with 24 additions and 0 deletions

23
packages/lapce/PKGBUILD Normal file
View File

@ -0,0 +1,23 @@
# 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')
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')
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"
}

View File

@ -0,0 +1 @@
GITHUB_REPO="lapce/lapce"