summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 237824ec7d41ad699bcbff7af916e719bb1e88ae (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
# Maintainer: Charlie Grado

pkgname=nudoku-git
_gitname=nudoku
pkgver=0.2.4.r1.g633d5d2
pkgrel=1
pkgdesc="Sudoku for the terminal"
arch=('i686' 'x86_64')
url="https://jubalh.github.io/nudoku/"
license=('GPL3')
depends=('ncurses')
makedepends=('git')
provides=('nudoku')
conflicts=('nudoku')
source=("git+https://github.com/jubalh/$_gitname.git")
sha256sums=('SKIP')

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

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

package() {
	cd "$_gitname"
	make install DESTDIR="$pkgdir"
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}