blob: dcf9146eda7e7dd907181aceade3b51b12105554 (
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
|
# Contributor: Alexandr Parkhomenko <it@52tour.ru>
_author=ales-erjavec
_pkgname=anyqt
pkgname=python-$_pkgname-git
pkgver=0.0.11
pkgrel=1
pkgdesc="PyQt4/PyQt5 compatibility layer"
url="https://github.com/ales-erjavec/anyqt"
arch=(any)
license=('GPL')
makedepends=('python-setuptools')
depends=('python-pyqt5')
provides=('python-anyqt')
source=("git://github.com/$_author/$_pkgname")
md5sums=('SKIP')
pkgver () {
cd "$srcdir/$_pkgname"
git describe --tags `git rev-list --tags --max-count=1` | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g' #| sed -r "s/0$/$COMMIT/"
}
build() {
cd "${srcdir}"/$_pkgname
python setup.py build
}
package() {
cd "${srcdir}/$_pkgname"
python setup.py install --root=${pkgdir} --optimize=1
}
|