iglunix/pkgs/om4/build.sh

35 lines
640 B
Bash
Raw Normal View History

2021-01-02 18:53:07 +00:00
pkgver=6.7
pkgname=om4
pkgrel=1
bad=""
ext="doc"
fetch() {
curl -L "https://github.com/ibara/m4/releases/download/om4-6.7/om4-6.7.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/
make
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/bin
install -Dm4755 om4 $pkgdir/usr/bin
ln -sr $pkgdir/usr/bin/om4 $pkgdir/usr/bin/m4
2021-01-02 18:53:07 +00:00
}
package_doc() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/share/man/man1
2021-01-02 18:53:07 +00:00
install -Dm644 m4.1 $pkgdir/share/man/man1
}
license() {
cd $pkgname-$pkgver
echo "Source are a combination of BSD and ISC licensed files"
}