summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b84fff6f31a99c7feb9769040991fd91c425e8d9 (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
# Maintainer: Scott <zulc22db+oss@gmail.com>
pkgname=metamorphose2-python3-git
pkgver=r130.55ffc9f
pkgrel=1
epoch=2
pkgdesc="Updated fork of Métamorphose 2, by timinaust"
arch=('any')
url="https://github.com/timinaust/metamorphose2/tree/Python3_WXPython4"
license=('GPL')
groups=()
depends=('python>=3.0' 'python<4.0' 'python-wxpython>=4.0' 'python-pillow>=2.3.0')
makedepends=('git')
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}" "metamorphose2" "metamorphose2-git")
replaces=()
backup=()
options=()
install=
source=('metamorphose2::git+https://github.com/timinaust/metamorphose2#branch=Python3_WXPython4')
noextract=()
md5sums=('SKIP')

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

prepare() {
	cd "$srcdir/metamorphose2"
	git submodule update --init
	patch --forward --strip=1 --input="${srcdir}/../metamorphose2.patch"
}

package() {
	cd "$srcdir/metamorphose2"
	make DESTDIR="$pkgdir/" all
}