summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2015-07-08 23:28:37 -0600
committerBrian Bidulock2015-07-08 23:28:37 -0600
commit8c338d66ba253cc2a8a92b6918aee6bda745d6bb (patch)
tree2d888a054fa4e913590d04d8c3c1b8532e2fcb64
downloadaur-8c338d66ba253cc2a8a92b6918aee6bda745d6bb.tar.gz
initial version
-rw-r--r--.SRCINFO22
-rw-r--r--LICENSE40
-rw-r--r--PKGBUILD38
-rw-r--r--regexp.patch26
4 files changed, 126 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..fb97799b37a7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = docbook-to-man
+ pkgdesc = Batch converter from DocBook SGML to nroff/troff man macros.
+ pkgver = 2.0.0
+ pkgrel = 5
+ url = http://www.oasis-open.org/docbook/tools/dtm/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ license = GPL3
+ depends = opensp
+ source = http://www.oasis-open.org/docbook/tools/dtm/docbook-to-man.tar.gz
+ source = LICENSE
+ source = regexp.patch
+ sha256sums = f436f8a421351181f8588b01f7f1e7652b0865f8e5c4488de025e4ae7bcd773d
+ sha256sums = dd5c62c3d904ae6f9bf50efcb01287d972b854f003e1687f2042b9ab28356e77
+ sha256sums = 959715b046a9a66c6799b1acfaa94b3ab28c986b42408e0081379027b6a0a238
+ sha512sums = e762baf10628887eaccb3bc575f27b7555df4d8f739a201e94ebdfdf04880db82d4c4921925b64dacbeb719ed0abfd04bb06beb3493e9ee197e9e51c70fea8e5
+ sha512sums = 90aeb659b516ecf3e78f6389a4bb5278b88a187001f38af614eda86e58a7b573f574813f657e90bf76bf8f50bf697f656470298c685bb571ce5c29ac3c4b1bf2
+ sha512sums = da1fea6d96688ebaea85e14a0b77bd3c7127c96f2bc5a8fc6ac856cd42f54117a0a7acb21ba0b7bd3f2faa32a0bbd62d47ebcb8fb6e5ca4c7fa5e22ea5eb6ae3
+
+pkgname = docbook-to-man
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..75738b3addc5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,40 @@
+Files: *
+
+Copyright: © 1996 X Consortium
+ © 1996 Dalrymple Computing
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE X CONSORTIUM OR DALRYMPLE CONSULTING BE LIABLE FOR
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ .
+ Except as contained in this notice, the names of the X Consortium and
+ Dalrymple Consulting shall not be used in advertising or otherwise to
+ promote the sale, use or other dealings in this Software without prior
+ written authorization.
+
+Files: regexp.patch
+
+Copyright: © 2006-2007 Daniel Baumann <daniel@debian.org>
+ © 2007 Philipp Benner <pbenner@uni-osnabrueck.de>
+License: GPL-2+
+ This package was debianized by Daniel Baumann on Sat, 29 Jul 2006
+ and is licensed under the GPL. It is now maintained by Philipp Benner.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..08006bdd0e40
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Limao Luo <luolimao+AUR@gmail.com>
+# Contributor: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
+
+pkgname=docbook-to-man
+pkgver=2.0.0
+pkgrel=5
+pkgdesc="Batch converter from DocBook SGML to nroff/troff man macros."
+arch=(i686 x86_64)
+url=http://www.oasis-open.org/docbook/tools/dtm/
+license=(MIT GPL3)
+depends=(opensp)
+source=(http://www.oasis-open.org/docbook/tools/dtm/$pkgname.tar.gz
+ LICENSE
+ regexp.patch)
+sha256sums=('f436f8a421351181f8588b01f7f1e7652b0865f8e5c4488de025e4ae7bcd773d'
+ 'dd5c62c3d904ae6f9bf50efcb01287d972b854f003e1687f2042b9ab28356e77'
+ '959715b046a9a66c6799b1acfaa94b3ab28c986b42408e0081379027b6a0a238')
+sha512sums=('e762baf10628887eaccb3bc575f27b7555df4d8f739a201e94ebdfdf04880db82d4c4921925b64dacbeb719ed0abfd04bb06beb3493e9ee197e9e51c70fea8e5'
+ '90aeb659b516ecf3e78f6389a4bb5278b88a187001f38af614eda86e58a7b573f574813f657e90bf76bf8f50bf697f656470298c685bb571ce5c29ac3c4b1bf2'
+ 'da1fea6d96688ebaea85e14a0b77bd3c7127c96f2bc5a8fc6ac856cd42f54117a0a7acb21ba0b7bd3f2faa32a0bbd62d47ebcb8fb6e5ca4c7fa5e22ea5eb6ae3')
+
+prepare() {
+ cd $pkgname/
+ chmod +w -R .
+ patch -Np1 -i ../regexp.patch
+ find -name Makefile -exec sed -i 's/^ROOT =.*//' '{}' \;
+ sed -ri 's:^(ROOT=).*:\1/usr:' cmd/docbook-to-man.sh
+}
+
+build() {
+ make -C $pkgname ROOT="$pkgdir/usr/"
+}
+
+package() {
+ install -d "$pkgdir"/usr/{bin,lib}
+ make -C $pkgname ROOT="$pkgdir/usr/" install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/regexp.patch b/regexp.patch
new file mode 100644
index 000000000000..26622772a05e
--- /dev/null
+++ b/regexp.patch
@@ -0,0 +1,26 @@
+--- a/Instant/tptregexp/regexp.c 1999-07-03 12:58:24.000000000 +0000
++++ b/Instant/tptregexp/regexp.c 2006-07-29 15:23:05.000000000 +0000
+@@ -196,7 +196,6 @@
+ register char *longest;
+ register int len;
+ int flags;
+- extern char *malloc();
+
+ if (exp == NULL)
+ FAIL("NULL argument");
+@@ -705,7 +704,6 @@
+ register char *string;
+ {
+ register char *s;
+- extern char *strchr();
+
+ /* Be paranoid... */
+ if (prog == NULL || string == NULL) {
+@@ -804,7 +802,6 @@
+ {
+ register char *scan; /* Current node. */
+ char *next; /* Next node. */
+- extern char *strchr();
+
+ scan = prog;
+ #ifdef DEBUG