iglunix/pkgs/pkgconf/build.sh

35 lines
554 B
Bash
Raw Normal View History

2021-06-20 14:16:56 +00:00
pkgver=1.7.4
2021-01-13 08:34:27 +00:00
pkgname=pkgconf
bad=""
ext="doc"
fetch() {
2021-06-20 14:16:56 +00:00
curl https://distfiles.dereferenced.org/pkgconf/pkgconf-$pkgver.tar.xz -o $pkgname-$pkgver.tar.xz
2021-01-13 08:34:27 +00:00
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
ln -sr $pkgdir/usr/bin/pkgconf $pkgdir/usr/bin/pkg-config
rm -r $pkgdir/usr/share
}
package_doc() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}