summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1125ec1154e68a5c9a4b2c508b20313efbf13b1 (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: Allen M. <ase1590@hotmail.com>

pkgname=wxpython-phoenix-git
pkgver=r3225.g172bd50d
pkgrel=2
pkgdesc="Python 3 implementation of the WxPython UI library"
arch=('x86_64' 'i686')
url="https://github.com/wxWidgets/Phoenix"
license=('custom:wxWindows')
depends=('python')
makedepends=('mesa' 'glu' 'git' 'libpng' 'libjpeg-turbo' 'libtiff' 'sdl' 'gst-plugins-base' 'libnotify' 'freeglut' 'gtk3' 'webkit2gtk')
source=("$pkgname::git+${url}"
		"git+https://github.com/wxWidgets/wxWidgets.git")
md5sums=('SKIP' 'SKIP')
provides=('wxpython-phoenix')
conflicts=('wxpython-phoenix-bin')

pkgver() {
	cd "$srcdir/$pkgname"
	printf 'r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare(){
	cd "$srcdir/$pkgname"
	git submodule init
	git config submodule.ext/wxWidgets.url "$srcdir/wxWidgets"
	git submodule update
}

build(){
	cd "$srcdir/$pkgname"
	python build.py dox etg --nodoc sip build --gtk3
}

package(){
	cd "$srcdir/$pkgname"
	python setup.py install --skip-build --root="$pkgdir/"
	cd "$pkgdir/usr/bin/"
	for file in *
	do
		mv "$file" "${file%}-phoenix"
	done
	cd "$srcdir/$pkgname/ext/wxWidgets/docs"
	install -D -m644 licence.txt $pkgdir/usr/share/licenses/wxpython-phoenix/license.txt
}