2021-12-26 12:40:14 +00:00
|
|
|
pkgver=0.8.6
|
2020-12-27 16:34:08 +00:00
|
|
|
pkgname=toybox
|
|
|
|
pkgrel=1
|
2021-12-26 12:40:14 +00:00
|
|
|
deps="musl"
|
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-12-26 12:40:14 +00:00
|
|
|
curl "https://pci-ids.ucw.cz/v2.2/pci.ids" -o pci.ids
|
2021-01-12 11:06:46 +00:00
|
|
|
cd $pkgname-$pkgver
|
2021-05-19 11:32:51 +00:00
|
|
|
patch -p1 < ../../ls-colour.patch
|
2021-01-12 11:06:46 +00:00
|
|
|
patch -p1 < ../../mksh-make.patch
|
2021-09-26 11:45:14 +00:00
|
|
|
patch -p1 < ../../xxd-i.patch
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-09-30 14:01:41 +00:00
|
|
|
CPUS=1 bad --gmake gmake defconfig
|
|
|
|
CPUS=1 bad --gmake gmake
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
2021-12-26 12:40:14 +00:00
|
|
|
backup() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-12-27 16:34:08 +00:00
|
|
|
package() {
|
2021-12-26 12:40:14 +00:00
|
|
|
install -d $pkgdir/usr/share/misc
|
|
|
|
install -Dm 644 pci.ids $pkgdir/usr/share/misc
|
|
|
|
|
2020-12-27 16:34:08 +00:00
|
|
|
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
|
2021-09-30 14:01:41 +00:00
|
|
|
bad --gmake gmake PREFIX=$pkgdir install
|
2021-01-31 11:09:14 +00:00
|
|
|
|
2021-05-25 12:56:46 +00:00
|
|
|
# Provided by NetBSD Curses
|
2021-02-03 13:03:52 +00:00
|
|
|
rm $pkgdir/usr/bin/clear
|
2021-05-20 21:09:29 +00:00
|
|
|
rm $pkgdir/usr/bin/reset
|
2021-05-25 12:56:46 +00:00
|
|
|
|
|
|
|
# LLVM Provides this
|
|
|
|
rm $pkgdir/usr/bin/readelf
|
2021-05-20 21:09:29 +00:00
|
|
|
# rm $pkgdir/usr/bin/tar
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|