From 49272ded064180211c908eeecd82a6817865d336 Mon Sep 17 00:00:00 2001 From: Tasos Latsas Date: Sun, 19 Jun 2011 03:13:15 +0300 Subject: [PATCH] split sip package into code generator and python modules --- sip/trunk/PKGBUILD | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/sip/trunk/PKGBUILD b/sip/trunk/PKGBUILD index 1152e85..bd0ac3b 100644 --- a/sip/trunk/PKGBUILD +++ b/sip/trunk/PKGBUILD @@ -2,11 +2,12 @@ # Maintainer: Andrea Scarpino # Contributor: Douglas Soares de Andrade # Contributor: riai , Ben +# Contributor: tasos latsas pkgbase=sip -pkgname=('sip' 'python2-sip') +pkgname=('sip' 'python2-sip' 'python-sip') pkgver=4.12.3 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url="http://www.riverbankcomputing.com/software/sip/" license=('custom:"sip"') @@ -21,7 +22,7 @@ build() { cd "${srcdir}/${pkgbase}-${pkgver}" python configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" make - + ### Python2 version ### cd "${srcdir}/python2-${pkgbase}-${pkgver}" python2 configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" @@ -30,13 +31,11 @@ build() { 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') + depends=('glibc') cd "${srcdir}/${pkgbase}-${pkgver}" - make DESTDIR="${pkgdir}" install + install -Dm755 sipgen/sip "${pkgdir}/usr/bin/sip" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } @@ -52,3 +51,16 @@ package_python2-sip() { # Provided by sip rm "${pkgdir}/usr/bin/sip" } + +package_python-sip() { + pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries" + depends=('sip' 'python') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # Provided by sip + rm "${pkgdir}/usr/bin/sip" +} -- 1.7.5.2