summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f111d3f4ca933e6c919c9e1bcda328c1c1a86dbf (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: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname=djvupages
pkgname=${_pkgname}-git
pkgver=r5.3b9ab4f
pkgrel=2
pkgdesc='Shell utility to manipulate pages of a DjVu file'
arch=('any')
url='https://github.com/ashipunov/djvupages'
license=('custom: public domain')
depends=('djvulibre' 'img2djvu-git')
makedepends=('git')
optdepends=('gimp: edit in gimp'
            'imagemagick: convert pages')
provides=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  install -Dm755 -t "${pkgdir}/usr/bin" "${_pkgname}/${_pkgname}"
  install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" "${_pkgname}/README"
}

# vim: ts=2 sw=2 et: