summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25c6f57c6d0986196b3be514284a4ba80bb1bc83 (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
31
32
# Maintainer: Pablo Arias <pabloariasal at gmail dot com>
pkgname=fontpreview-ueberzug-git
_pkgname=${pkgname%-git}
pkgver=r19.63e6b4c
pkgrel=1
pkgdesc="Preview system fonts in the terminal"
arch=('any')
url="https://github.com/OliverLew/fontpreview-ueberzug"
license=('MIT')
groups=()
depends=('fzf' 'imagemagick' 'ueberzug')
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=("git+${url}.git")
noextract=()
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 -D -m755 ${_pkgname} "$pkgdir/usr/bin/${_pkgname}"
	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
}