blob: f52035967a2ef85af91685ff1a3fb90e6779c8ee (
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: xeruf <27jf at pm dot me>
_pkgname='cpub'
pkgname="${_pkgname}-git"
pkgver=r6.e6582ad
pkgrel=1
pkgdesc='ncurses based epub reader for the command line'
arch=('any')
url="https://github.com/udiboy1209/${_pkgname}"
license=(unknown)
depends=(python-bs4)
provides=("${_pkgname}")
conflicts=()
optdepends=()
source=("git+${url}")
sha512sums=('SKIP')
package() {
set -x
cd "${srcdir}/${_pkgname}/"
install -D --target-directory "${pkgdir}/usr/bin" cpub
}
pkgver() {
cd "${_pkgname}"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
|