iglunix/base/samurai/build.sh

30 lines
451 B
Bash
Raw Normal View History

2020-12-27 19:56:27 +00:00
pkgver=1.2
pkgname=samurai
pkgrel=1
2022-04-22 21:47:11 +00:00
auto_cross
2020-12-27 19:56:27 +00:00
fetch() {
curl -L "http://github.com/michaelforney/samurai/releases/download/1.2/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
2020-12-27 19:56:27 +00:00
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
2022-04-22 21:47:11 +00:00
make LDFLAGS="$LDFLAGS"
2020-12-27 19:56:27 +00:00
}
package() {
cd $pkgname-$pkgver
2021-02-11 11:42:19 +00:00
install -d $pkgdir/usr/bin
install -Dm755 ./samu $pkgdir/usr/bin/
2020-12-27 19:56:27 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}
2022-04-22 21:47:11 +00:00
backup() {
return
}