[arch-commits] Commit in docbook2x/repos (3 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:00:40 UTC 2018


    Date: Friday, November 9, 2018 @ 21:00:40
  Author: felixonmars
Revision: 404486

archrelease: copy trunk to community-staging-x86_64

Added:
  docbook2x/repos/community-staging-x86_64/
  docbook2x/repos/community-staging-x86_64/PKGBUILD
    (from rev 404484, docbook2x/trunk/PKGBUILD)
  docbook2x/repos/community-staging-x86_64/datadir.diff
    (from rev 404484, docbook2x/trunk/datadir.diff)

--------------+
 PKGBUILD     |   41 +++++++++++++++++++++++++++++++++++++++++
 datadir.diff |   18 ++++++++++++++++++
 2 files changed, 59 insertions(+)

Copied: docbook2x/repos/community-staging-x86_64/PKGBUILD (from rev 404484, docbook2x/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 21:00:40 UTC (rev 404486)
@@ -0,0 +1,41 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
+
+pkgname=docbook2x
+pkgver=0.8.8
+pkgrel=16
+pkgdesc="A software package that converts DocBook documents into the traditional Unix man page format and the GNU Texinfo format."
+arch=('x86_64')
+url="http://docbook2x.sourceforge.net"
+license=("MIT")
+depends=('glibc' 'perl-sgmls' 'perl-xml-parser' 'perl-xml-sax' 'libxslt'
+	 'jade' 'perl-xml-sax-expat')
+makedepends=('texinfo')
+source=(https://downloads.sourceforge.net/$pkgname/docbook2X-$pkgver.tar.gz
+        datadir.diff)
+md5sums=('b9b76a6af198c4f44574cfd17a322f01'
+         '826fae88a435d9278c4f9614991d55a1')
+
+prepare() {
+  cd "$srcdir"/docbook2X-$pkgver
+  patch -p1 <"$srcdir"/datadir.diff
+  sed -e 's/AM_CONFIG_HEADER(/AC_CONFIG_HEADERS(/' -i configure.ac
+}
+
+build()  {
+  cd "$srcdir"/docbook2X-$pkgver
+  autoreconf -i -f
+  ./configure \
+    --prefix=/usr \
+    --mandir=/usr/share/man \
+    --program-transform-name 's,2x-,2,' \
+  make
+}
+
+package() {
+  cd "$srcdir"/docbook2X-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -D -m0644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/license
+  sed -i 's|http://docbook2x.sf.net/latest|/usr/share/docbook2X|g' \
+    "$pkgdir"/usr/bin/db2x_xsltproc
+}

Copied: docbook2x/repos/community-staging-x86_64/datadir.diff (from rev 404484, docbook2x/trunk/datadir.diff)
===================================================================
--- community-staging-x86_64/datadir.diff	                        (rev 0)
+++ community-staging-x86_64/datadir.diff	2018-11-09 21:00:40 UTC (rev 404486)
@@ -0,0 +1,18 @@
+Upstream patch:
+http://docbook2x.cvs.sourceforge.net/viewvc/docbook2x/docbook2X/configure.ac?r1=1.21&r2=1.22&view=patch
+
+diff -ru docbook2X-0.8.8.orig/configure.ac docbook2X-0.8.8/configure.ac
+--- docbook2X-0.8.8.orig/configure.ac	2010-06-26 04:57:04.000000000 -0430
++++ docbook2X-0.8.8/configure.ac	2010-06-26 04:57:39.000000000 -0430
+@@ -149,6 +149,11 @@
+ dnl Ensure that all static_* are fully expanded.
+ 
+ eval static_datadir="$datadir"
++old_val=""
++until test "$static_datadir" = "$old_val"; do
++	old_val="$static_datadir"
++	eval static_datadir="$static_datadir"
++done
+ 
+ eval static_bindir="$bindir"
+ old_val=""


More information about the arch-commits mailing list