Date: Tuesday, January 5, 2021 @ 18:31:50 Author: arojas Revision: 405339
Update to 6.0.0 Modified: sip/trunk/PKGBUILD ----------+ PKGBUILD | 57 ++++++++++++++++----------------------------------------- 1 file changed, 16 insertions(+), 41 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-01-05 18:14:55 UTC (rev 405338) +++ PKGBUILD 2021-01-05 18:31:50 UTC (rev 405339) @@ -1,49 +1,24 @@ -# Maintainer: Felix Yan <[email protected]> -# Contributor: Andrea Scarpino <[email protected]> -# Contributor: Douglas Soares de Andrade <[email protected]> -# Contributor: riai <[email protected]>, Ben <[email protected]> +# Maintainer: Antonio Rojas <[email protected]> -pkgbase=sip -pkgname=('sip' 'python-sip') -pkgver=4.19.24 -pkgrel=4 -arch=('x86_64') +pkgname=sip +pkgver=6.0.0 +pkgrel=1 +arch=(x86_64) +pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries" url='https://www.riverbankcomputing.com/software/sip/intro' license=('custom:"sip"') -makedepends=('python') -source=("https://www.riverbankcomputing.com/static/Downloads/sip/$pkgver/sip-$pkgver.tar.gz") -sha256sums=('edcd3790bb01938191eef0f6117de0bf56d1136626c0ddb678f3a558d62e41e5') +depends=(python-setuptools python-toml) +conflicts=(sip5) +replaces=(sip5) +source=("https://pypi.python.org/packages/source/s/sip/sip-$pkgver.tar.gz") +sha256sums=('6185160e1aa8e167b5919c4761cbbf68cc7478d34fb655b3a28b3eb9acb5943a') -prepare() { - mkdir -p build -} - build() { - cd "$srcdir"/build - python ../sip-$pkgver/configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS" - make + cd sip-$pkgver + python setup.py build } -package_sip() { - pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries" - depends=('glibc') - - cd build - make DESTDIR="$pkgdir" install -C sipgen -# move sip.h to /usr/include - mv "$pkgdir"/usr/include/{python*/sip.h,} - rm -r "$pkgdir"/usr/include/python* - - install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +package() { + cd sip-$pkgver + python setup.py install --skip-build --root="$pkgdir" --optimize=1 } - -package_python-sip() { - pkgdesc="Python SIP4 bindings for C and C++ libraries" - depends=('python') - - cd build - make DESTDIR="$pkgdir" install - rm -r "$pkgdir"/usr/{bin,include} # conflicts with sip - - install -Dm644 ../sip-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -}
