desktop/python3-pyside/PKGBUILD

38 lines
1.1 KiB
Bash
Raw Normal View History

# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
# Contributor: arlx_ignacy <ziphims@gmail.com>
2012-08-10 12:51:00 +08:00
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=python3-pyside
2014-02-01 04:23:08 +08:00
_pkgname=pyside-pyside
pkgver=1.2.1
2012-08-10 12:51:00 +08:00
pkgrel=1
pkgdesc='CPython Qt bindings generated using the Shiboken generator. (Python 3 build)'
arch=('i686' 'x86_64')
license=('LGPL')
url='http://www.pyside.org'
depends=('python3-shiboken>=1.1.2' 'python3' 'qt>=4.8' 'phonon' 'mesa')
2012-08-10 12:51:00 +08:00
makedepends=('cmake' 'automoc4')
replaces=('pyside-py3')
2014-02-01 04:23:08 +08:00
source=("${_pkgname}-${pkgver}.tar.gz::https://qt.gitorious.org/pyside/pyside/archive/${pkgver}.tar.gz"
2012-08-10 12:51:00 +08:00
'cmake_fixes.patch')
2014-02-01 04:23:08 +08:00
md5sums=('b807f6fc1d50e8c6e9314a7738a4142a'
'28fdf3a61c1ae4b47c5f6f762e428956')
2012-08-10 12:51:00 +08:00
build(){
2014-02-01 04:23:08 +08:00
cd $srcdir/${_pkgname}
2012-08-10 12:51:00 +08:00
patch -p1 -N < ../cmake_fixes.patch
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
-DUSE_PYTHON3=1 \
-Dpyside_SUFFIX=-python3
2012-08-10 12:51:00 +08:00
make
}
2012-08-10 12:51:00 +08:00
package() {
2014-02-01 04:23:08 +08:00
cd $srcdir/${_pkgname}/build
2012-08-10 12:51:00 +08:00
make DESTDIR=$pkgdir install
}