diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d1d453b8185e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==> +# Contributor: Antonio Rojas <arojas@archlinux.org> +# Contributor: Felix Yan <felixonmars@archlinux.org> + +pkgname=python2-shiboken2 +_qtver=5.11.0 +pkgver=${_qtver/-/} +pkgrel=2 +arch=(x86_64) +url='http://qt-project.org/' +license=(GPL2 LGPL) +pkgdesc='Generates bindings for C++ libraries using CPython source code' +depends=(python2) +makedepends=(clang llvm cmake libxslt qt5-xmlpatterns) +_pkgfqn=pyside-setup-everywhere-src-${_qtver} +source=("http://download.qt.io/official_releases/QtForPython/pyside2/PySide2-$pkgver-src/${_pkgfqn}.tar.xz") +sha256sums=('fbc412c4544bca308291a08a5173a949ca530d801f00b8337902a5067e490922') + +build() { + mkdir -p build + cd build + cmake ../${_pkgfqn}/sources/shiboken2 \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTS=OFF \ + -DUSE_PYTHON_VERSION=2 + make +} + +package_python2-shiboken2() { + cd build + make DESTDIR="$pkgdir" install + # Provided in shiboken + rm -r "$pkgdir"/usr/{bin,include,lib/{cmake/*/Shiboken2Config{,Version}.cmake,pkgconfig},share} +} |