core/sip/PKGBUILD
totte 2cb4a00427 pyqt & sip: Fix symlinks, increase PKGREL
Conflicts:
	pyqt/PKGBUILD
	sip/PKGBUILD
2013-12-13 14:50:02 +01:00

77 lines
2.7 KiB
Bash

#
# Platform Packages for Chakra, part of www.chakra-project.org
#
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: A Boersma (abveritas) <abveritas@chakra-project.org>
pkgbase=sip
pkgname=('python-sip-common' 'python2-sip' 'python3-sip')
pkgver=4.15.2
pkgrel=4
pkgdesc="A tool for creating Python bindings for C and C++ libraries"
arch=('x86_64')
url="http://www.riverbankcomputing.com/software/sip/"
license=('custom:"sip"')
makedepends=('python2' 'python3')
source=("http://downloads.sourceforge.net/pyqt/${pkgbase}-${pkgver}.tar.gz")
sha512sums=('bc47274cd17b62a4f1b7a6cc3108685b2d905b0d121250403be971f9abd0f2ae73b02536529bc3b210f5ad9105c39c1416ad87e4389feb03ab1c3236dab17acf')
build() {
cp -r ${pkgbase}-${pkgver} python2-${pkgbase}-${pkgver}
# Python 3 version
cd ${srcdir}/${pkgbase}-${pkgver}
msg "Configuring the Python 3 version"
python3 configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
msg "Making the Python 3 version"
make
# Python 2 version
cd ${srcdir}/python2-${pkgbase}-${pkgver}
msg "Configuring the Python 2 version"
python2 configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
msg "Making the Python 2 version"
make
}
package_python-sip-common() {
pkgdesc=("A tool for creating Python bindings for C and C++ libraries")
depends=('glibc')
conflicts=('sip-common' 'sip')
replaces=('sip-common' 'sip')
provides=('sip-common=${pkgver}')
cd ${srcdir}/${pkgbase}-${pkgver}
msg "Packaging python-sip-common"
make DESTDIR=${pkgdir} install -C sipgen
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
package_python3-sip() {
pkgdesc=("Python 3 SIP bindings for C and C++ libraries")
depends=('python3' 'python-sip-common')
conflicts=('sip-python3')
replaces=('sip-python3')
cd ${srcdir}/${pkgbase}-${pkgver}
msg "Packaging python3-sip"
make DESTDIR=${pkgdir} install -C siplib
install -Dm644 sipconfig.py "${pkgdir}"/usr/lib/python3.3/site-packages/sipconfig.py
install -Dm644 sipdistutils.py "${pkgdir}"/usr/lib/python3.3/site-packages/sipdistutils.py
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_python2-sip() {
pkgdesc=("Python 2 SIP bindings for C and C++ libraries")
depends=('python2' 'python-sip-common')
conflicts=('sip-python2')
replaces=('sip-python2')
cd ${srcdir}/python2-${pkgbase}-${pkgver}
msg "Packaging python2-sip"
make DESTDIR=${pkgdir} install -C siplib
install -Dm644 sipconfig.py "${pkgdir}"/usr/lib/python2.7/site-packages/sipconfig.py
install -Dm644 sipdistutils.py "${pkgdir}"/usr/lib/python2.7/site-packages/sipdistutils.py
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}