summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e26acd95df2281327f365a42b63016c675b638da (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
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: erm67
# Maintainer: Pablo Lezaeta <prflr88@gmail.com>

pkgname=micropolis-java
_rpkgname=micropolisj
pkgver=1.6.r505
pkgrel=1
pkgdesc="Micropolis, Unix version of SimCity 1 rewrited in Java"
arch=("any")
url="https://github.com/jason17055/micropolis-java"
license=("custom:GPL3")
makedepends=("apache-ant" "java-runtime>=7")
depends=("java-environment>=7")
source=("git+https://github.com/jason17055/micropolis-java.git"
	"LICENSE"
	"micropolis-java.sh"
	"micropolis-java.desktop")

pkgver() {
	cd "${pkgname}"
	echo 1.6.r$(git rev-list --count master) | sed 's|-|.|g' | sed 's|v||g'
}

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

	ant
}


package(){
	cd "${srcdir}"

	install -Dm677 "${srcdir}/${pkgname}/${_rpkgname}.jar" \
		"${pkgdir}/usr/share/micropolis-java/${_rpkgname}.jar"

	install -Dm677 "${srcdir}/${pkgname}/COPYING" \
		"${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
	cp "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

	install -Dm677 "${srcdir}/${pkgname}/README" \
		"${pkgdir}/usr/share/doc/${pkgname}/README"

	install -Dm677 "${srcdir}/${pkgname}/build/micropolism.png" \
		"${pkgdir}/usr/share/pixmaps/${_rpkgname}.png"

	install -Dm677 "${srcdir}/micropolis-java.sh" \
		"${pkgdir}/usr/bin/micropolis-java"

	install -Dm677 "${srcdir}/micropolis-java.desktop" \
		"${pkgdir}/usr/share/applications/micropolis-java.desktop"
}

md5sums=('SKIP'
         'b95118d1c60c6649ab9403cbaa4abb86'
         '666a4f5a7641791379f005b26e4851ff'
         '5d0667a3049111b4e7e9f07f1992bc01')