[arch-commits] Commit in python-xapian/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jul 8 16:43:11 UTC 2018


    Date: Sunday, July 8, 2018 @ 16:43:11
  Author: felixonmars
Revision: 355102

archrelease: copy trunk to testing-x86_64

Added:
  python-xapian/repos/testing-x86_64/
  python-xapian/repos/testing-x86_64/PKGBUILD
    (from rev 355101, python-xapian/trunk/PKGBUILD)

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

Copied: python-xapian/repos/testing-x86_64/PKGBUILD (from rev 355101, python-xapian/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-07-08 16:43:11 UTC (rev 355102)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Runge <dave at sleepmap.de>
+# Contributor: DonVla <donvla/users.sourceforge/net>
+# Contributor: Hervé Cauwelier <herve/oursours/net>
+
+pkgbase=python-xapian
+pkgname=('python-xapian' 'python2-xapian')
+_realname=xapian-bindings
+pkgver=1.4.6
+epoch=1
+pkgrel=1
+pkgdesc="Python bindings for Xapian"
+arch=('x86_64')
+url="https://xapian.org/docs/bindings/python/"
+license=('GPL2')
+makedepends=('python-sphinx' 'python2-sphinx' "xapian-core=$epoch:$pkgver")
+source=("http://oligarchy.co.uk/xapian/${pkgver}/${_realname}-${pkgver}.tar.xz")
+sha512sums=('e1d8d4c79ef8eb1b890be955b14eca7e9c7aafc6051cf9080d67948455f82ed68ab518343f532cde2a1c9e07d94b3aae8b8f5130db158c6badc9b6d118ceb733')
+
+prepare() {
+  cd "${_realname}-${pkgver}"
+  autoreconf -vfi
+  cd ..
+  mv -v "${_realname}-$pkgver" "${pkgname[0]}-${pkgver}"
+  cp -av "${pkgname[0]}-$pkgver" "${pkgname[1]}-${pkgver}"
+  cd "${pkgname[1]}-${pkgver}"
+  # fix shebang of examples
+  sed -i '1s/python/python2/' python/docs/examples/*.py
+  export XAPIAN_CONFIG=/usr/bin/xapian-config
+}
+
+build() {
+  cd "${pkgname[0]}-${pkgver}"
+  ./configure --prefix=/usr \
+              --with-python3
+  make
+  cd ../"${pkgname[1]}-${pkgver}"
+  PYTHON2=/usr/bin/python2
+  ./configure --prefix=/usr \
+              --with-python
+  make
+}
+
+package_python-xapian() {
+  pkgdesc="Python 3.x bindings for Xapian"
+  depends=('python' "xapian-core=$epoch:$pkgver")
+  cd "${pkgname[0]}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}" \
+    -vDm644 {AUTHORS,ChangeLog,HACKING,NEWS,README,TODO}
+}
+
+package_python2-xapian() {
+  pkgdesc="Python 2.x bindings for Xapian"
+  depends=('python2' "xapian-core=$epoch:$pkgver")
+  cd "${pkgname[1]}-${pkgver}"
+  make DESTDIR="$pkgdir" install
+  install -t "${pkgdir}/usr/share/doc/${pkgname[1]}" \
+    -vDm644 {AUTHORS,ChangeLog,HACKING,NEWS,README,TODO}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list