Created
December 16, 2021 11:37
-
-
Save rbran/88b8a19050a92d161ea52b78f28fb5f9 to your computer and use it in GitHub Desktop.
lapce Arch Linux PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: George Rawlinson <[email protected]> | |
# Modified: Rubens Brandao <[email protected]> | |
pkgname=lapce | |
pkgver=0.0.4 | |
pkgrel=1 | |
pkgdesc="Lightning-fast and Powerful Code Editor" | |
arch=('x86_64') | |
url="https://github.com/lapce/lapce" | |
license=('Apache') | |
depends=('gcc-libs' 'libxcb' 'expat' 'freetype2' 'libxkbcommon') | |
makedepends=('rust' 'python' 'cmake') | |
#source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") | |
source=() | |
sha512sums=() | |
b2sums=() | |
prepare() { | |
cd "$pkgname-$pkgver" | |
# download dependencies | |
cargo fetch --target "$CARCH-unknown-linux-gnu" | |
} | |
build() { | |
cd "$pkgname-$pkgver" | |
cargo build --frozen --release | |
} | |
package() { | |
cd "$pkgname-$pkgver" | |
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname" | |
install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname-proxy" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment