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() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr/bad/autoconf/ \
--build=$TRIPLE \ --build=$TRIPLE \
--host=$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" ext="doc:dev"
fetch() { 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 tar -xf $pkgname-$pkgver.tar.gz
mv make-$pkgver $pkgname-$pkgver mv make-$pkgver $pkgname-$pkgver
} }
@ -14,7 +14,7 @@ fetch() {
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr/bad/gmake \
--program-prefix=g \ --program-prefix=g \
--disable-nls --disable-nls
make make
@ -23,22 +23,22 @@ build() {
package() { package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
./make install DESTDIR=$pkgdir ./make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/share rm -r $pkgdir/usr/bad/gmake/share
rm -r $pkgdir/usr/include rm -r $pkgdir/usr/bad/gmake/include
} }
package_doc() { package_doc() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
./make install DESDIR=$pkgdir ./make install DESDIR=$pkgdir
rm -r $pkgdir/usr/bin rm -r $pkgdir/usr/bad/gmake/bin
rm -r $pkgdir/usr/share/info rm -r $pkgdir/usr/bad/gmake/share/info
rm -r $pkgdir/usr/include rm -r $pkgdir/usr/bad/gmake/include
} }
package_dev() { package_dev() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
./make install DESTDIR=$pkgdir ./make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin rm -r $pkgdir/usr/bad/gmake/bin
rm -r $pkgdir/usr/share rm -r $pkgdir/usr/bad/gmake/share
} }
license() { license() {