summaryrefslogtreecommitdiff
path: root/dbm_dump/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'dbm_dump/APKBUILD')
-rw-r--r--dbm_dump/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/dbm_dump/APKBUILD b/dbm_dump/APKBUILD
new file mode 100644
index 0000000..3f644d8
--- /dev/null
+++ b/dbm_dump/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=dbm_dump
+pkgver=1.3
+pkgrel=0
+pkgdesc="openbsd's dbm_dump - function to dump mandoc database"
+url="https://mandoc.bsd.lv/"
+arch="all"
+license="ISC"
+makedepends="mandoc-dev"
+subpackages="$pkgname-doc"
+source="dbm_dump.c dbm_dump.1"
+options="!check"
+builddir="$srcdir"
+
+build() {
+ gcc $CFLAGS -o dbm_dump "$srcdir"/dbm_dump.c \
+ $LDFLAGS -lmandoc_compat -lmandoc_db -lmandoc
+}
+
+package() {
+ install -D -m 755 -t "$pkgdir/usr/bin" dbm_dump
+ install -D -m 644 -t "$pkgdir/usr/share/man/man1" "$srcdir"/dbm_dump.1
+}
+sha512sums="
+cc05d8df7f35d281896be827187b5a7e363d132202ca59c693bbbece8959023f84db8a3cd1f9bce6031b72a374935981927165c3aad8bb5d15e55fed9b7b1603 dbm_dump.c
+c6e60af1fef5e4a485747a1a0417d0c0142c5cd286931e8335f165c430c18468e772d189f536fd15e21e0a4e1712a48e079f51cf7adbb6b5aed802111a0abc41 dbm_dump.1
+"