summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9cb34166a8023e3ded906e8f8cf0ac72de678ff (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=20181213.00a8ee1
pkgrel=1
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 build/2048-in-terminal "${pkgdir}/usr/bin/2048t"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}