summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7393200aadfa10110b08101cb563a9760a03943 (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

# Maintainer: Andrea Feletto <andrea@andreafeletto.com>

pkgname=fla.sh-git
_pkgname=${pkgname%-*}
pkgver=1.2.r15.g960f0b4
pkgrel=1
pkgdesc='Flashcards in your terminal.'
arch=('any')
url='https://github.com/tallguyjenks/fla.sh'
license=('MIT')
provides=('flash')
conflicts=('flash')
depends=('bash' 'fzf' 'bat')
source=("git+https://github.com/tallguyjenks/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	git describe --long --tags | sed 's/-/.r/;s/-/./'
}

package() {
	cd "$srcdir/$_pkgname"
	install -Dm755 'flash' -t "$pkgdir/usr/bin"
	install -Dm644 'LICENSE' -t "$pkgdir/usr/share/licenses/$_pkgname"
	install -Dm644 'README.md' -t "$pkgdir/usr/share/doc/$_pkgname"
}