summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephen Gregoratto2019-04-18 21:43:24 +1000
committerStephen Gregoratto2019-04-18 21:46:31 +1000
commit27ab5e1e8a7b77734988aa5f20bf68e039622099 (patch)
tree88477a8ecbe8a0bb43ba8c623d3f95e9b385a08b /PKGBUILD
downloadaur-27ab5e1e8a7b77734988aa5f20bf68e039622099.tar.gz
Initial Release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5938b5503aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Stephen Gregoratto <dev@sgregoratto.me>
+pkgname=docbook2mdoc
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='DocBook refentry to mdoc(7) converter'
+license=('custom: ISC')
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+url='https://mandoc.bsd.lv/docbook2mdoc/'
+makedepends=('libbsd')
+source=("$url/snapshots/$pkgname-$pkgver.tgz"
+ "$pkgname.patch")
+sha256sums=('940b774abfc9fb60c8d9cf46cecbf704c5a60fbb4f6ca85073fdfda26706629c'
+ 'c2570e46266fe64d6493095ec29da1b77919bc7fcc314e1d40e9a383e3a7a796')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 -i "${srcdir}/$pkgname.patch"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="${pkgdir}" install
+
+ install -d "${pkgdir}/usr/share/licenses/$pkgname"
+ sed -n '3,16p' docbook2mdoc.c | cut -c 4- \
+ > "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+}