diff options
author | Pablo Arias | 2020-10-03 12:19:25 +0200 |
---|---|---|
committer | Pablo Arias | 2020-10-03 12:19:25 +0200 |
commit | cb9e568e9a984281eba2e0c1b55f9bb1b9fd26a5 (patch) | |
tree | f2025a5cc2c3edfbac11564779ccd02b45e9fff6 /PKGBUILD | |
download | aur-fontpreview-ueberzug-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..25c6f57c6d09 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |