blob: 5108cf83a3350feae96bdd2c6967ed611c5ad674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Guilhem Saurel <guilhem dot saurel at laas dot fr>
# Contributor: Alfredo Ramos <alfredo dot ramos at yandex dot com>
# Contributor: Chris <christopher.r.mullins g-mail>
# Contributor: Ainola
# Contributor: speps
_org=MeVisLab
pkgname=pythonqt
pkgver=3.5.6
pkgrel=1
pkgdesc='A dynamic Python binding for Qt applications'
arch=('i686' 'x86_64')
url="https://github.com/$_org/${pkgname}"
license=('LGPL-2.1-only')
depends=('python' 'qt5-multimedia' 'qt5-svg' 'qt5-webkit' 'qt5-declarative' 'qt5-xmlpatterns' 'qt5-webengine')
makedepends=('git' 'qt5-tools')
conflicts=("${pkgname}-svn" "${pkgname}-for-screencloud" 'qt5-python27-git')
replaces=("${pkgname}-qt5")
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('267157f97681dfabf7816b9e30e28d3869c9db60e75ffefe05037fd2f5957a89096c12ab4d94d1160a363b2ea3de84e9c7a4f116885a625627cb6daac7556f62')
build() {
# Building package
cd "${srcdir}/${pkgname}-${pkgver}"
qmake-qt5 \
PYTHON_VERSION=$(python -c 'import sys; print(".".join(sys.version.split(".")[:2]))') \
QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \
CONFIG+=release
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Includes
mkdir -p "${pkgdir}"/usr/include/PythonQt/{gui,extensions/PythonQt_QtAll}
cp src/*.h "${pkgdir}"/usr/include/PythonQt/
cp src/gui/*.h "${pkgdir}"/usr/include/PythonQt/gui/
cp extensions/PythonQt_QtAll/*.h "${pkgdir}"/usr/include/PythonQt/extensions/PythonQt_QtAll/
# Library
mkdir -p "${pkgdir}"/usr/lib
cp -a lib/*.so* "${pkgdir}"/usr/lib/
}
|