iglunix/bad/gmake/build.sh

55 lines
938 B
Bash
Raw Normal View History

2021-01-17 19:15:45 +00:00
pkgver=4.3
pkgname=gmake
pkgrel=1
2021-01-31 11:09:14 +00:00
deps="musl"
2021-01-17 19:15:45 +00:00
bad="gmake"
ext="doc:dev"
2022-04-21 10:08:54 +00:00
auto_cross
2021-01-17 19:15:45 +00:00
fetch() {
2021-09-30 13:35:51 +00:00
curl "https://ftp.gnu.org/gnu/make/make-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
2021-01-17 19:15:45 +00:00
tar -xf $pkgname-$pkgver.tar.gz
mv make-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
2021-09-30 13:35:51 +00:00
--prefix=/usr/bad/gmake \
2021-01-17 19:15:45 +00:00
--program-prefix=g \
2022-04-21 10:08:54 +00:00
--disable-nls \
--build=$HOST_TRIPLE \
--host=$TRIPLE
2021-02-02 12:19:45 +00:00
make
2021-01-17 19:15:45 +00:00
}
package() {
cd $pkgname-$pkgver
2022-04-21 10:08:54 +00:00
make install DESTDIR=$pkgdir
2021-09-30 13:35:51 +00:00
rm -r $pkgdir/usr/bad/gmake/share
rm -r $pkgdir/usr/bad/gmake/include
2021-01-17 19:15:45 +00:00
}
package_doc() {
cd $pkgname-$pkgver
2022-04-21 10:08:54 +00:00
make install DESDIR=$pkgdir
2021-09-30 13:35:51 +00:00
rm -r $pkgdir/usr/bad/gmake/bin
rm -r $pkgdir/usr/bad/gmake/share/info
rm -r $pkgdir/usr/bad/gmake/include
2021-01-17 19:15:45 +00:00
}
package_dev() {
cd $pkgname-$pkgver
2022-04-21 10:08:54 +00:00
make install DESTDIR=$pkgdir
2021-09-30 13:35:51 +00:00
rm -r $pkgdir/usr/bad/gmake/bin
rm -r $pkgdir/usr/bad/gmake/share
2021-01-17 19:15:45 +00:00
}
license() {
cd $pkgname-$pkgver
cat COPYING
}
2022-04-21 10:08:54 +00:00
backup() {
return
}