iglunix/bad/autoconf/build.sh

32 lines
528 B
Bash
Raw Normal View History

2021-09-30 12:45:58 +00:00
pkgname=autoconf
pkgver=2.13
fetch() {
curl "https://ftp.gnu.org/gnu/autoconf/autoconf-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
patch -p1 < ../../makefile-m4f.patch
patch -p1 < ../../autoconf.sh.patch
patch -p1 < ../../autoheader.sh.patch
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}