Skip to content

Instantly share code, notes, and snippets.

@shizeeg
Created June 27, 2013 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shizeeg/5879672 to your computer and use it in GitHub Desktop.
Save shizeeg/5879672 to your computer and use it in GitHub Desktop.
zathura lightweight document viewer. Arch Linux PKGBUILD.
# Maintainer: Moritz Lipp <mlq@pwmt.org>
# Contributor: Shizeeg Unadequatov <shizeeque@gmail.com>
pkgname=zathura-git
_gitname='zathura'
pkgver=20130626
pkgrel=1
pkgdesc="a document viewer"
arch=('i686' 'x86_64')
url="http://pwmt.org/projects/zathura"
license=('custom')
depends=('girara-gtk2' 'gtk2>=2.18.6' 'cairo>=1.8.8')
makedepends=('git' 'python-docutils' 'intltool')
conflicts=('zathura')
provides=('zathura')
optdepends=(
'zathura-pdf-poppler: PDF support by using poppler'
'zathura-pdf-mupdf: PDF support by using mupdf'
'zathura-djvu: djvu support by using djvulibre'
'zathura-ps: PostSctipt support by using libspectre'
)
source=('zathura::git+https://github.com/shizeeg/zathura.git')
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
echo $(git log -1 --date=short | grep Date | sed 's|[^0-9]||g')
}
build() {
cd "${_gitname}"
make
}
package() {
cd "${srcdir}/${_gitname}"
make DESTDIR="${pkgdir}/" install
install -D -m664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment