summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD29
-rw-r--r--mdocml-makefile.patch35
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0b98fb0e678
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Mon Dec 28 17:03:45 UTC 2015
+pkgbase = mandoc
+ pkgdesc = A suite of tools compiling mdoc from the OpenBSD project
+ pkgver = 1.9.9
+ pkgrel = 1
+ url = http://mdocml.bsd.lv/
+ arch = x86_64
+ arch = i686
+ license = ISC
+ depends = glibc
+ source = http://mdocml.bsd.lv/snapshots/mdocml-1.9.9.tar.gz
+ source = mdocml-makefile.patch
+ md5sums = d54e4b67308b44f895aa09c79cc6762c
+ md5sums = 585956c2741ed2b29dce9a103161cffb
+
+pkgname = mandoc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d4fc917e843
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Matheus de Alcantara <matheus.de.alcantara@gmail.com>
+
+pkgname=mandoc
+pkgver=1.9.9
+pkgrel=1
+pkgdesc="A suite of tools compiling mdoc from the OpenBSD project"
+arch=('x86_64' 'i686')
+url='http://mdocml.bsd.lv/'
+license=('ISC')
+source=("http://mdocml.bsd.lv/snapshots/mdocml-${pkgver}.tar.gz"
+ 'mdocml-makefile.patch')
+md5sums=('d54e4b67308b44f895aa09c79cc6762c'
+ '585956c2741ed2b29dce9a103161cffb')
+depends=('glibc')
+
+prepare () {
+ cd ${srcdir}/mdocml-${pkgver}
+ patch < ${srcdir}/mdocml-makefile.patch
+}
+
+build () {
+ cd ${srcdir}/mdocml-${pkgver}
+ make PREFIX=/usr/
+}
+
+package () {
+ cd ${srcdir}/mdocml-${pkgver}
+ make install DESTDIR=${pkgdir} PREFIX=/usr/
+}
diff --git a/mdocml-makefile.patch b/mdocml-makefile.patch
new file mode 100644
index 00000000000..8a10eb5b05e
--- /dev/null
+++ b/mdocml-makefile.patch
@@ -0,0 +1,35 @@
+--- Makefile 2009-10-20 16:34:06.000000000 -0200
++++ Makefile.patch 2015-12-28 13:35:09.767019569 -0200
+@@ -3,11 +3,12 @@
+ BINDIR = $(PREFIX)/bin
+ INCLUDEDIR = $(PREFIX)/include
+ LIBDIR = $(PREFIX)/lib
+-MANDIR = $(PREFIX)/man
++MANDIR = $(PREFIX)/share/man
+ INSTALL_PROGRAM = install -m 0755
+ INSTALL_DATA = install -m 0444
+ INSTALL_LIB = install -m 0644
+ INSTALL_MAN = $(INSTALL_DATA)
++DESTDIR = /
+
+ VERSION = 1.9.9
+ VDATE = 21 October 2009
+@@ -99,12 +100,12 @@
+ install -m 0444 mdocml-$(VERSION).md5 $(PREFIX)/snapshots/mdocml.md5
+
+ install:
+- mkdir -p $(BINDIR)
+- mkdir -p $(MANDIR)/man1
+- mkdir -p $(MANDIR)/man7
+- $(INSTALL_PROGRAM) mandoc $(BINDIR)
+- $(INSTALL_MAN) mandoc.1 $(MANDIR)/man1
+- $(INSTALL_MAN) mdoc.7 $(MANDIR)/man7
++ mkdir -p $(DESTDIR)$(BINDIR)
++ mkdir -p $(DESTDIR)$(MANDIR)/man1
++ #mkdir -p $(DESTDIR)$(MANDIR)/man7
++ $(INSTALL_PROGRAM) mandoc $(DESTDIR)$(BINDIR)
++ $(INSTALL_MAN) mandoc.1 $(DESTDIR)$(MANDIR)/man1
++ #$(INSTALL_MAN) mdoc.7 $(DESTDIR)$(MANDIR)/man7
+
+ uninstall:
+ rm -f $(BINDIR)/mandoc