summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10284ca2b523eb8e6947d799f68fac58feb1150d (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
# Maintainer: Justin Frank <jf.laelath@gmail.com>
pkgname=typingtest-git
pkgver=1.1.1.r0.f182ed8
pkgrel=1
pkgdesc="A typing test program desktop program with customizability"
arch=(x86_64)
url="https://github.com/laelath/typingtest"
license=('GPL')
groups=()
depends=('gtkmm3')
makedepends=('git' 'cmake')
backup=()
options=()
install=
source=('typingtest-git::git+https://github.com/laelath/typingtest.git')
noextract=()
md5sums=('SKIP')
pkgver() {
	cd "${srcdir}/typingtest-git"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
	cd "${srcdir}/typingtest-git"
	cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
	make
}
package() {
	cd "${srcdir}/typingtest-git"
	make DESTDIR="$pkgdir/" install
}