summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5657d77a14aa3b621cf345d941afc77d8128557 (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
# Maintainer: Jesse McClure <jesse [dot] mcclure [at] umassmed [dot] edu>
# Contributor: Dan Sagunov <danilka.pro@gmail.com>
_gitname="manaplus"
pkgname="${_gitname}-git"
pkgver=1.7.3.4.r21.g65d1cadca
pkgrel=1
pkgdesc="ManaPlus GIT version."
url="http://manaplus.evolonline.org"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('libxml2' 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'sdl2_ttf' 'sdl2_gfx' 'curl')
conflicts=('manaplus')
source=("${_gitname}::git://github.com/ManaPlus/ManaPlus.git")
sha256sums=('SKIP')

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

build() {
	cd "${_gitname}"
	autoreconf -i
	./configure --prefix=/usr --with-sdl2
	make
}

package() {
	cd "${_gitname}"
	make DESTDIR="${pkgdir}" install
}