Changed from / to /usr where appropriate

This commit is contained in:
Ella-0 2021-01-12 11:06:46 +00:00
parent f849b3f7ba
commit 3182a6f943
20 changed files with 297 additions and 105 deletions

View file

@ -5,18 +5,24 @@ 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
cd $pkgname-$pkgver
patch -p1 < ../../mksh-make.patch
}
build() {
cd $pkgname-$pkgver
make defconfig
make
gmake defconfig
gmake
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/bin
install -Dm755 ./toybox $pkgdir/bin/
ln -sr $pkgdir/bin/toybox $pkgdir/bin/ln
install -d $pkgdir/usr/bin
cd $pkgdir/usr/bin
ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/install
}
license() {

View file

@ -0,0 +1,14 @@
diff --git a/scripts/make.sh b/scripts/make.sh
index 5b2d5d81..2c5e4b93 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -106,8 +106,7 @@ genbuildsh()
echo '$BUILD $FILES $LINK'
}
-if ! cmp -s <(genbuildsh 2>/dev/null | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDFLAGS) \
- <(head -n 7 generated/build.sh 2>/dev/null | $SED '7s/ -o .*//')
+if [ "$(genbuildsh 2>/dev/null | head -n 6 ; echo LINK="'"$LDOPTIMIZE $LDFLAGS)" != "$(head -n 7 generated/build.sh 2>/dev/null | $SED '7s/ -o .*//')" ]
then
echo -n "Library probe"