blob: 33836d2241fafb4598dbe038afe83a08de18b8ed (
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
|
# Maintainer: Philipp Claßen <philipp.classen@posteo.de>
pkgname=livius-git
pkgver=r39.3bdc147
pkgrel=1
pkgdesc="A Qt-based TLCV-compatible live chess viewer"
arch=('i686' 'x86_64')
url="https://github.com/kmar/livius"
# source is under zlib
# piece sets are under creative commons public domain
license=('zlib')
depends=('qt5-svg')
makedepends=('gcc' 'make')
source=('git+https://github.com/kmar/livius.git')
md5sums=('SKIP')
pkgver() {
cd livius
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/livius"
make
}
package() {
cd "${srcdir}/livius"
mkdir -p "${pkgdir}/usr/share/livius"
cp -R build/* "${pkgdir}/usr/share/livius"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p "${pkgdir}/usr/bin"
printf "#!/bin/sh\n/usr/share/livius/livius \"\$@\"" >> "${pkgdir}/usr/bin/livius"
chmod 755 "${pkgdir}/usr/bin/livius"
}
|