From 01440ede69aa862648e92adef814f37b1ed45711 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 2 Jan 2021 18:53:07 +0000 Subject: [PATCH] Added OpenBSD m4 --- pkgs/om4/build.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/om4/build.sh diff --git a/pkgs/om4/build.sh b/pkgs/om4/build.sh new file mode 100644 index 0000000..ffdd4d6 --- /dev/null +++ b/pkgs/om4/build.sh @@ -0,0 +1,36 @@ +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/bin + install -Dm4755 om4 $pkgdir/bin + cd $pkgdir/bin + ln -s om4 m4 +} + +package_doc() { + cd $pkgname-$pkgver + install -d $pkgdir/share/man/ + install -d $pkgdir/share/man/man1 + install -Dm644 m4.1 $pkgdir/share/man/man1 +} + +license() { + cd $pkgname-$pkgver + echo "Source are a combination of BSD and ISC licensed files" +}