Date: Monday, May 2, 2011 @ 13:26:55 Author: andrea Revision: 122178 merge python-sip and python2-sip PKGBUILDs; rename again python-sip to sip; switch dependencies (the python2 version needs the python3 version and not the viceversa)
Added: sip/ sip/repos/ sip/trunk/ sip/trunk/PKGBUILD ----------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) Added: sip/trunk/PKGBUILD =================================================================== --- sip/trunk/PKGBUILD (rev 0) +++ sip/trunk/PKGBUILD 2011-05-02 17:26:55 UTC (rev 122178) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Andrea Scarpino <and...@archlinux.org> +# Contributor: Douglas Soares de Andrade <doug...@archlinux.org> +# Contributor: riai <r...@bigfoot.com>, Ben <b...@benmazer.net> + +pkgbase=sip +pkgname=('sip' 'python2-sip') +pkgver=4.12.2 +pkgrel=1 +arch=('i686' 'x86_64') +url="http://www.riverbankcomputing.com/software/sip/" +license=('custom:"sip"') +makedepends=('python' 'python2') +source=("http://www.riverbankcomputing.com/static/Downloads/sip4/${pkgbase}-${pkgver}.tar.gz") +md5sums=('9df80f88e0e4022cdd8a8891c6c38048') + +build() { + cd "${srcdir}" + cp -r ${pkgbase}-${pkgver} python2-${pkgbase}-${pkgver} + + cd ${pkgbase}-${pkgver} + python configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" + make + + ### Python2 version ### + cd python2-${pkgbase}-${pkgver} + python2 configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" + make +} + +package_sip() { + pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries" + depends=('python') + replaces=('python-sip') + provides=('python-sip') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-sip() { + pkgdesc="A tool that makes it easy to create Python2 bindings for C and C++ libraries" + depends=('sip' 'python2') + + cd "${srcdir}/python2-${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # Provided by sip + rm "${pkgdir}/usr/bin/sip" +} Property changes on: sip/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords + Id