switch to using bad prefix

This commit is contained in:
Ella-0 2021-09-30 14:35:51 +01:00
parent fddec8071a
commit 44f3573897
3 changed files with 33 additions and 10 deletions

View file

@ -13,7 +13,7 @@ fetch() {
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--prefix=/usr/bad/autoconf/ \
--build=$TRIPLE \
--host=$TRIPLE

23
bad/bad/build.sh Normal file
View file

@ -0,0 +1,23 @@
pkgname=bad
pkgver=main
fetch() {
curl -L "https://github.com/iglunix/bad/archive/refs/heads/main.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir PREFIX=/usr
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -6,7 +6,7 @@ bad="gmake"
ext="doc:dev"
fetch() {
curl "https://ftp.gnu.org/gnu/make/make-4.3.tar.gz" -o $pkgname-$pkgver.tar.gz
curl "https://ftp.gnu.org/gnu/make/make-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv make-$pkgver $pkgname-$pkgver
}
@ -14,7 +14,7 @@ fetch() {
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--prefix=/usr/bad/gmake \
--program-prefix=g \
--disable-nls
make
@ -23,22 +23,22 @@ build() {
package() {
cd $pkgname-$pkgver
./make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/bad/gmake/share
rm -r $pkgdir/usr/bad/gmake/include
}
package_doc() {
cd $pkgname-$pkgver
./make install DESDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/share/info
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/bad/gmake/bin
rm -r $pkgdir/usr/bad/gmake/share/info
rm -r $pkgdir/usr/bad/gmake/include
}
package_dev() {
cd $pkgname-$pkgver
./make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bad/gmake/bin
rm -r $pkgdir/usr/bad/gmake/share
}
license() {