summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39e04cc1a418db0338371dff34931a6beb2fea7b (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
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
_repo=lennonwoo/zathura-solarized
_pkgname=$(tr A-Z a-z <<<${_repo##*/})

pkgname=${_pkgname//_/-}-git
pkgver=r4.14a3d95
pkgrel=1
pkgdesc="the solarized color theme for zathura"
arch=(any)
url=https://github.com/$_repo
license=(MIT)
depends=(zathura)
source=("git+$url#tag=14a3d95d568b3120bad3f691eae4667d16a37f5d")
sha256sums=(SKIP)

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

package() {
	cd "$srcdir/$_pkgname" || return 1
	install -D "$_pkgname"-* -t "$pkgdir/usr/share/zathura/themes"
}