summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 851e63041eb9ceb160fdbe4ee20bb26b1efecd8c (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
37
38
#Maintainer: Aleksandr Grehov <alewmoose@gmail.com>
#Contributor: Aleksandr Grehov

_pkgname='2048term'
pkgname="${_pkgname}-git"
pkgver=20150108.3eafde9
pkgrel=2
pkgdesc='Console version of the game "2048"'
url='https://github.com/alewmoose/2048-in-terminal.git'
arch=('i686' 'x86_64' 'armv7h')
license=('custom:MIT')
depends=('ncurses')
makedepends=('git')
source=("${_pkgname}::git+https://github.com/alewmoose/2048-in-terminal.git")
sha1sums=('SKIP')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
	cd "${srcdir}/${_pkgname}"
	make
}

check() {
	true
}

package() {
	cd "${srcdir}/${_pkgname}"
	install -Dm755 2048 "${pkgdir}/usr/bin/2048t"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}