summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc753e11f9cab23f8083ce0b1e97d8e7ecd2feac (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: Philip Abernethy<chais.z3r0@gmail.com>
pkgname=sdl-jstest-git
_gitname=sdl-jstest
pkgver=82.aafbdb1
pkgver() {
	cd "${_gitname}"
#	printf "%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
pkgrel=1
pkgdesc="Simple SDL joystick test application for the command line."
url="https://github.com/Grumbel/sdl-jstest"
arch=('x86_64' 'i686')
license=('GPL3')
depends=('sdl' 'ncurses' 'docbook2x')
makedepends=('git')
provides=('sdl-jstest')
install="${pkgname}.install"

source=('sdl-jstest::git+https://github.com/Grumbel/sdl-jstest.git'
	"${install}")
sha512sums=('SKIP'
            '6700f472466f24dcabc9be55f23f9e872f724f66024ac831daa11e61b6a6f6938111de035a4572c935cb01e7539d823ff26d48cc193935c00944bd2da23e3fcf')

build() {
	cd "${srcdir}/${_gitname}"
	git submodule update --init --remote --recursive
	cmake ./
	make ${provides[0]}
}

package() {
	install -Dm755 "${srcdir}/${_gitname}/${provides[0]}" "${pkgdir}/usr/bin/${provides[0]}"
	install -dm755 "${pkgdir}/usr/share/man/man1"
	gzip -c "${srcdir}/${_gitname}/${provides[0]}.1" > "${pkgdir}/usr/share/man/man1/${provides[0]}.1.gz"
}