summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99ee96961605be42eb1ac8628c5eb578a537b5bb (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
# Maintainer: Jonathan Neidel <aur at jneidel dot com>

pkgname=epr-git
pkgver=2.4.15.r154.723c77d
pkgrel=1
pkgdesc="CLI Epub Reader"
arch=(any)
url="https://github.com/wustho/epr"
license=(MIT)
depends=("ncurses")
makedepends=(git)
optdepends=()
provides=(epr)
conflicts=(epr)
source=("git+https://github.com/wustho/epr.git")
md5sums=("SKIP")

pkgver() {
  cd "$srcdir/${pkgname/-git/}"
  printf "%s.r%s.%s" "$(grep -F '__version__ =' epr.py | awk -F\" '{print $2}')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/${pkgname/-git/}"
  mkdir -p "$pkgdir/usr/bin"
  cp epr.py "$pkgdir/usr/bin/epr"
}