moving packages
This commit is contained in:
parent
d2235a7fc5
commit
7488ce0293
48 changed files with 0 additions and 0 deletions
43
base/toybox/build.sh
Normal file
43
base/toybox/build.sh
Normal file
|
@ -0,0 +1,43 @@
|
|||
pkgver=0.8.5
|
||||
pkgname=toybox
|
||||
pkgrel=1
|
||||
deps="musl:pci-ids"
|
||||
|
||||
fetch() {
|
||||
curl "http://www.landley.net/toybox/downloads/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../../ls-colour.patch
|
||||
patch -p1 < ../../mksh-make.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
CPUS=1 gmake defconfig
|
||||
CPUS=1 gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
# 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
|
||||
|
||||
# Provided by NetBSD Curses
|
||||
rm $pkgdir/usr/bin/clear
|
||||
rm $pkgdir/usr/bin/reset
|
||||
|
||||
# LLVM Provides this
|
||||
rm $pkgdir/usr/bin/readelf
|
||||
# rm $pkgdir/usr/bin/tar
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue