2021-01-02 18:53:07 +00:00
|
|
|
pkgver=6.7
|
|
|
|
pkgname=om4
|
|
|
|
pkgrel=1
|
2021-01-31 11:09:14 +00:00
|
|
|
deps="musl"
|
2021-01-02 18:53:07 +00:00
|
|
|
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
|
2021-09-30 13:06:21 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 < ../../m4-hand-written-lexer.patch
|
2021-01-02 18:53:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure --prefix=/
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-01-12 11:06:46 +00:00
|
|
|
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() {
|
2021-01-12 11:06:46 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
install -d $pkgdir/usr/share/man/man1
|
2021-01-31 11:09:14 +00:00
|
|
|
install -Dm644 m4.1 $pkgdir/usr/share/man/man1
|
2021-01-02 18:53:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
echo "Source are a combination of BSD and ISC licensed files"
|
|
|
|
}
|