summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31a09df11ed9bd20dc37fa007b958110d41d111a (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
# Maintainer: Newman Sanchez <lrtech8 at gmail dot com>
pkgname=lightnovel.sh-git
_pkgname=lightnovel.sh
pkgver=r6.3ebcdfb
pkgrel=1
pkgdesc="A terminal-based lightnovel reader written in Bash."
arch=('any')
url="https://github.com/newmanls/lightnovel.sh"
license=('MIT')
depends=('coreutils' 'curl' 'grep' 'iputils' 'less' 'ncurses' 'sed' 'w3m')
makedepends=('git')
source=("git+https://github.com/newmanls/lightnovel.sh.git")
md5sums=('SKIP')

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

package() {
        cd "$srcdir/$_pkgname"
        install -Dm755 lightnovel.sh "$pkgdir/usr/bin/lightnovel.sh"
        install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}