summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc502927c7bda4d16a1edeaaabfa29922e8a9c5b (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
# Maintainer: Chris Sakalis <chrissakalis@gmail.com>

pkgname="minutor-git"
pkgver=2.19.0.r25.gccaaa66
pkgrel=1
pkgdesc="A minimalistic map generator for minecraft."
arch=('i686' 'x86_64')
url="http://seancode.com/minutor/"
license=('BSD')
depends=(qt5-base)
provides=(minutor)
conflicts=(minutor)
source=("git+https://github.com/mrkite/minutor.git" "license.txt")
md5sums=('SKIP'
         'c169d81765c3f73db7353a198ca9fb98')
sha256sums=('SKIP'
            '7225ca2e326c72e6342d2aa188c3c38156d9a827276b46d6a8736c68819a34f6')

pkgver()
{
	cd "$srcdir/minutor"
	git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build()
{
	cd "$srcdir/minutor"
	# XXX: If you are having compilation problems, try using qmake-qt5 instead
	# of qmake
	# qmake-qt5
	qmake
	make
}

package()
{
	cd "$srcdir/minutor"
	make INSTALL_ROOT="$pkgdir/" install
	cd "$srcdir"
	install -Dm644 license.txt "$pkgdir/usr/share/licenses/minutor/license.txt"
}