summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 437051626194c3c979349d21756c94366dd07996 (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
33
34
# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com>

pkgname=('visual-pdf-diff-git')

_gitname=visual-pdf-diff
#The actual value is calculated by pkgver() function
pkgver=v1.0.0
pkgrel=2

pkgdesc="Merges two PDF files into one PDF file and highlights their visual differences."
url="https://github.com/momeni/${_gitname}"

arch=('any')
license=('GPL3')

depends=('imagemagick' 'gawk' 'bash' 'coreutils' 'ghostscript')
conflicts=('visual-pdf-diff')
provides=('visual-pdf-diff')
makedepends=('git')
source=('git+https://github.com/momeni/visual-pdf-diff.git')
sha256sums=('SKIP')


pkgver() {
  cd "${srcdir}/${_gitname}"
  git describe --always | sed 's|-|.|g'
}

package() {
  cd "${srcdir}/${_gitname}"
  install -D -m 755 visualpdfdiff.sh "${pkgdir}/usr/bin/visualpdfdiff.sh"
  install -D -m 644 README.md "${pkgdir}/usr/share/visual-pdf-diff/README.md"
}