2020-12-27 16:34:08 +00:00
|
|
|
pkgver=0.8.4
|
|
|
|
pkgname=toybox
|
|
|
|
pkgrel=1
|
2021-01-31 11:09:14 +00:00
|
|
|
deps="musl:pci-ids"
|
2020-12-27 16:34:08 +00:00
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl "http://www.landley.net/toybox/downloads/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
2021-01-12 11:06:46 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 < ../../mksh-make.patch
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-01-12 11:06:46 +00:00
|
|
|
gmake defconfig
|
|
|
|
gmake
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-01-31 11:09:14 +00:00
|
|
|
# install -d $pkgdir/bin
|
|
|
|
# install -Dm755 ./toybox $pkgdir/bin/
|
|
|
|
# ln -sr $pkgdir/bin/toybox $pkgdir/bin/ln
|
|
|
|
# ln -sr $pkgdir/bin/toybox $pkgdir/bin/uname
|
|
|
|
# install -d $pkgdir/usr/bin
|
|
|
|
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/install
|
|
|
|
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
|
|
|
|
gmake PREFIX=$pkgdir install
|
|
|
|
|
|
|
|
rm $pkgidr/usr/bin/clear
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|