summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9eb96728bb40b6c972b39c1a3a15ef4c239309d6 (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
# Maintainer: Tomasz Kramkowski <tk@the-tk.com>
pkgname=minecurses-git
pkgver=r32.dbbff0e
pkgrel=1

pkgdesc='A ncurses clone of minesweeeper written in C'
arch=('i686' 'x86_64')
url='https://github.com/EliteTK/minecurses.git'
license=('GPL2')
depends=('ncurses')
makedepends=('git')

source=('git+https://github.com/EliteTK/minecurses.git')
md5sums=('SKIP')

pkgver() {
	cd minecurses

	printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	make -C minecurses
}

package() {
	make -C minecurses DESTDIR="${pkgdir}" PREFIX=/usr install
}