summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f07ae56337365c2378f5a0b804fac3a4660384ed (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
# Maintainer: Brandon Mulcahy <brandon@jangler.info>
pkgname=schismtracker-git
pkgver=r2438.55398fa
pkgrel=4
pkgdesc='A reimplementation of the Impulse Tracker music editor.'
arch=('i686' 'x86_64' 'armv7h')  # and probably other ARMs
url='http://schismtracker.org/'
license=('GPL')
depends=('sdl' 'gcc-libs' 'libxv')
makedepends=('git' 'python')
provides=('schismtracker' 'schismtracker-hg' 'schismtracker-cvs')
conflicts=('schismtracker' 'schismtracker-hg' 'schismtracker-cvs')
source=("$pkgname::git+https://github.com/schismtracker/schismtracker.git")
md5sums=('SKIP')

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

build() {
	cd $pkgname
	autoreconf -i
	./configure --prefix=/usr
	make
}

package() {
	cd $pkgname
	make DESTDIR="$pkgdir/" install
	install -Dm644 README.md \
		"$pkgdir/usr/share/doc/schismtracker/README.md"
	install -Dm644 COPYING \
		"$pkgdir/usr/share/licenses/schismtracker/COPYING"
}