blob: 8322b3977be4bcdad2d9bba29a2f59d7b5c0a719 (
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
39
40
41
42
43
44
45
|
# Maintainer: Aleksandar Trifunović <akstrfn at gmail dot com>
_pkgname=markov-typing
pkgver=r209.7116ca7
pkgrel=1
pkgname=markov-typing-git
pkgdesc="Typing tutor that uses Markov chain to generate random strings."
arch=('x86_64' 'i686')
url="https://github.com/akstrfn/markov-typing"
license=('MIT')
depends=('ncurses')
makedepends=('cmake' 'git')
source=("$_pkgname::git+$url")
provides=("$_pkgname")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
cmake -H. -Bbuild \
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
cmake --build build
}
# no tests atm
# check() {
# cd "$_pkgname"
# cmake --build build -- check
# }
package() {
cd "$_pkgname"
cmake --build build -- DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|