[arch-commits] Commit in libxml2/repos (4 files)

Jan de Groot jgc at archlinux.org
Fri Mar 25 00:06:49 UTC 2016


    Date: Friday, March 25, 2016 @ 01:06:49
  Author: jgc
Revision: 262509

archrelease: copy trunk to gnome-unstable-i686, gnome-unstable-x86_64

Added:
  libxml2/repos/gnome-unstable-i686/
  libxml2/repos/gnome-unstable-i686/PKGBUILD
    (from rev 262508, libxml2/trunk/PKGBUILD)
  libxml2/repos/gnome-unstable-x86_64/
  libxml2/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 262508, libxml2/trunk/PKGBUILD)

--------------------------------+
 gnome-unstable-i686/PKGBUILD   |   53 +++++++++++++++++++++++++++++++++++++++
 gnome-unstable-x86_64/PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

Copied: libxml2/repos/gnome-unstable-i686/PKGBUILD (from rev 262508, libxml2/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD	                        (rev 0)
+++ gnome-unstable-i686/PKGBUILD	2016-03-25 00:06:49 UTC (rev 262509)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: John Proctor <jproctor at prium.net>
+
+pkgname=libxml2
+pkgver=2.9.3
+pkgrel=2
+pkgdesc="XML parsing library, version 2"
+arch=(i686 x86_64)
+license=('MIT')
+depends=('zlib' 'readline' 'ncurses' 'xz')
+makedepends=('python2' 'python')
+url="http://www.xmlsoft.org/"
+source=(ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
+        http://www.w3.org/XML/Test/xmlts20080827.tar.gz)
+md5sums=('daece17e045f1c107610e137ab50c179'
+         'ae3d1ebe000a3972afa104ca7f0e1b4a')
+
+prepare() {
+  mkdir build-py3
+  mkdir build-py2
+  mv xmlconf build-py3/
+  cd ${pkgname}-${pkgver}
+}
+
+build() {
+  cd build-py2
+  ../$pkgname-$pkgver/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python2
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+  make
+
+  cd ../build-py3
+  ../$pkgname-$pkgver/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+  make
+}
+
+check() {
+  cd build-py3
+  make check
+}
+
+package() {
+  cd build-py3
+  find doc -type f -exec chmod 0644 {} \;
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+  cd ../build-py2/python
+  make DESTDIR="${pkgdir}" install
+}

Copied: libxml2/repos/gnome-unstable-x86_64/PKGBUILD (from rev 262508, libxml2/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2016-03-25 00:06:49 UTC (rev 262509)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: John Proctor <jproctor at prium.net>
+
+pkgname=libxml2
+pkgver=2.9.3
+pkgrel=2
+pkgdesc="XML parsing library, version 2"
+arch=(i686 x86_64)
+license=('MIT')
+depends=('zlib' 'readline' 'ncurses' 'xz')
+makedepends=('python2' 'python')
+url="http://www.xmlsoft.org/"
+source=(ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
+        http://www.w3.org/XML/Test/xmlts20080827.tar.gz)
+md5sums=('daece17e045f1c107610e137ab50c179'
+         'ae3d1ebe000a3972afa104ca7f0e1b4a')
+
+prepare() {
+  mkdir build-py3
+  mkdir build-py2
+  mv xmlconf build-py3/
+  cd ${pkgname}-${pkgver}
+}
+
+build() {
+  cd build-py2
+  ../$pkgname-$pkgver/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python2
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+  make
+
+  cd ../build-py3
+  ../$pkgname-$pkgver/configure --prefix=/usr --with-threads --with-history --with-python=/usr/bin/python
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+  make
+}
+
+check() {
+  cd build-py3
+  make check
+}
+
+package() {
+  cd build-py3
+  find doc -type f -exec chmod 0644 {} \;
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+  cd ../build-py2/python
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list