summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7cf9bd791fb83bfea4e75889e1b74d1433ca1577 (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
# Maintainer: Kyle Yasuda <ksyasuda at umich dot edu>
pkgname=aniwrapper-git
_pkgname=aniwrapper
pkgver=r187.8902875
pkgrel=1
pkgdesc="A rofi wrapper around a modified ani-cli: a cli to browse and watch anime"
arch=('any')
url="https://github.com/ksyasuda/aniwrapper"
license=('GPL3')
depends=('aria2' 'curl' 'grep' 'jq' 'mpv' 'rofi' 'sed' 'sqlite3')
makedepends=('git')
source=('aniwrapper::git+https://github.com/ksyasuda/aniwrapper.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%-VCS}"
	chmod +x setup.sh && ./setup.sh
	install -Dm755 ./ani-cli "$pkgdir/usr/bin/ani-cli"
	install -Dm755 ./aniwrapper "$pkgdir/usr/bin/aniwrapper"
}