summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68d440c07944f171030864aa9c43572cf3e10d58 (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
# Maintainer: DrRac27 <drrac27 at riseup dot net>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Florian Schweikert <kelvan@ist-total.org>

pkgname=python-pyotherside-moment-git
_pyname=pyotherside
pkgver=1.6.1.r2.302c111
pkgrel=1
pkgdesc='Asynchronous Python 3 Bindings for Qt5 (patched for Moment)'
arch=('x86_64')
url='https://thp.io/2011/pyotherside'
license=('ISC')
depends=('python' 'qt5-base' 'qt5-declarative' 'qt5-svg')
source=("git+https://github.com/thp/${_pyname}.git")
sha256sums=('SKIP')
provides=(python-pyotherside)
conflicts=(python-pyotherside)

pkgver() {
	cd "${srcdir}/${_pyname}"
	local tag=$(git tag --sort=-v:refname | grep -v packaging | head -1)
	local commits_since=$(git rev-list $tag..HEAD --count)
	echo "$tag.r$commits_since.$(git log --pretty=format:'%h' -n 1)"
}

build() {
	cd "${srcdir}/${_pyname}"

	qmake-qt5
	make
}

package() {
	cd "${srcdir}/${_pyname}"

	make INSTALL_ROOT="${pkgdir}/" install

	rm -r "${pkgdir}/usr/tests"
}