iglunix/base/lc-make/build.sh

29 lines
513 B
Bash
Raw Normal View History

2021-05-10 22:51:30 +00:00
pkgname=lc-make
pkgver=main
2021-09-11 08:24:20 +00:00
mkdeps="rust"
deps=""
2021-05-10 22:51:30 +00:00
fetch() {
curl -L "https://github.com/LightningCreations/lc-make/archive/refs/heads/main.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cd $pkgname-$pkgver
2021-05-21 09:25:59 +00:00
mkdir .cargo
2021-05-10 22:51:30 +00:00
cargo vendor > .cargo/config
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm755 target/release/$pkgname $pkgdir/usr/bin/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}