summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 761f24521c4973c583e6b564cc9c04909dacbeaa (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.0.r0.956e689
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
}