summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a2d46199409db8f0f81ecb7f828de306f673cfd (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: Michael Serajnik <m at mser dot at>
pkgname=10ff-git
_pkgname=10ff
pkgver=r53.10d48c2
pkgrel=1
pkgdesc="Typing tests in CLI"
arch=("any")
url="https://github.com/rr-/${_pkgname}"
license=("WTFPL")
depends=("python")
makedepends=("git")
source=("git+https://github.com/rr-/${_pkgname}.git")
md5sums=("SKIP")

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}"
  python setup.py install --root=$pkgdir

  install -Dm644 "$srcdir/$_pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}