summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ad93f4f24f6b4ba87754f8b65f8be4bc8cbad06 (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: Jakub Kądziołka <kuba@kadziolka.net>

pkgname=polished-map-git
pkgdesc="A map and tileset editor for pokecrystal, pokered, and hacks based on them like Polished Crystal."
pkgver=299.3069954
pkgrel=1
arch=(x86_64)
url="https://github.com/Rangi42/polished-map"
license=(LGPL3)
depends=(libxft libxpm)
makedepends=(git unzip)
source=(git+ssh://git@github.com/Rangi42/polished-map.git)
sha1sums=(SKIP)

pkgver(){
	cd polished-map
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare(){
	cd polished-map/lib
	unzip fltk-1.3.5.zip
	chmod +x fltk-1.3.5/configure
}

build(){
	# Build FLTK with the latest ABI enabled
	cd polished-map/lib/fltk-1.3.5
	./configure --prefix="$PWD/.." --with-abiversion=10305
	make
	make install
	cd ../..
	PATH="$PWD/lib/bin:$PATH" make
}

package(){
	cd polished-map
	make install DESTDIR="$pkgdir" PREFIX=/usr
}