iglunix/pkgs/toybox/build.sh
2020-12-27 16:34:08 +00:00

25 lines
385 B
Bash

pkgver=0.8.4
pkgname=toybox
pkgrel=1
fetch() {
curl "http://www.landley.net/toybox/downloads/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
make defconfig
make
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/bin
install -Dm755 ./toybox $pkgdir/bin/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}