Date: Friday, March 11, 2016 @ 10:33:37 Author: fyan Revision: 261326
upgpkg: sip 4.17-1 Modified: sip/trunk/PKGBUILD ----------+ PKGBUILD | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-03-11 07:33:45 UTC (rev 261325) +++ PKGBUILD 2016-03-11 09:33:37 UTC (rev 261326) @@ -6,25 +6,26 @@ pkgbase=sip pkgname=('sip' 'python-sip' 'python2-sip') -pkgver=4.16.9 -pkgrel=2 +pkgver=4.17 +pkgrel=1 arch=('i686' 'x86_64') url='http://www.riverbankcomputing.com/software/sip/intro' license=('custom:"sip"') makedepends=('python' 'python2') source=("http://sourceforge.net/projects/pyqt/files/sip/sip-$pkgver/sip-$pkgver.tar.gz") -md5sums=('7a1dfff4e6fade0e4adee2c4e3d3aa9a') +md5sums=('ca51677770fa62dd5087877688cf97ba') +prepare() { + cp -a sip-$pkgver{,-py2} +} + build() { - cp -r ${pkgbase}-${pkgver} python2-${pkgbase}-${pkgver} - - cd ${pkgbase}-${pkgver} - python configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" + cd "$srcdir"/sip-$pkgver + python configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" make - ### Python2 version ### - cd ../python2-${pkgbase}-${pkgver} - python2 configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" + cd "$srcdir"/sip-$pkgver-py2 + python2 configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" make } @@ -32,10 +33,10 @@ pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries" depends=('glibc') - cd ${pkgbase}-${pkgver} - make DESTDIR="${pkgdir}" install -C sipgen + cd sip-$pkgver + make DESTDIR="$pkgdir" install -C sipgen - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python-sip() { @@ -42,13 +43,13 @@ pkgdesc="Python 3.x SIP bindings for C and C++ libraries" depends=('sip' 'python') - cd ${pkgbase}-${pkgver} - make DESTDIR="${pkgdir}" install -C siplib + cd sip-$pkgver + make DESTDIR="$pkgdir" install -C siplib - install -Dm644 sipconfig.py "${pkgdir}"/usr/lib/python3.5/site-packages/sipconfig.py - install -Dm644 sipdistutils.py "${pkgdir}"/usr/lib/python3.5/site-packages/sipdistutils.py + install -Dm644 sipconfig.py "$pkgdir"/usr/lib/python3.5/site-packages/sipconfig.py + install -Dm644 sipdistutils.py "$pkgdir"/usr/lib/python3.5/site-packages/sipdistutils.py - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_python2-sip() { @@ -55,11 +56,11 @@ pkgdesc="Python 2.x SIP bindings for C and C++ libraries" depends=('sip' 'python2') - cd python2-${pkgbase}-${pkgver} - make DESTDIR="${pkgdir}" install -C siplib + cd sip-$pkgver-py2 + 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 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" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }