summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f645df48dbc0dc59d1c7e86ef50dfe0b10ff4cb (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
35
36
37
38
39
40
# Author: wifiextender <aaron_caffrey at hotmail dot com>
# Maintainer: Alexandru Ianu <alexandru.ianu at gmail.com>

pkgname=pdf2img-c
pkgver=6.7003d7e
pkgrel=1
pkgdesc="Easily convert PDF to multiple image formats with a single click. C version of pdf2img."
arch=('any')
url="https://github.com/wifiextender/pdf2png"
license=('GPL3')
conflicts=('pdf2img' 'pdf2img-git')
replaces=('pdf2img')
depends=('gtk3' 'glibc' 'ghostscript')
makedepends=('git' 'pkg-config' 'gcc' 'gettext' 'intltool' 'autoconf')
source=('git+https://github.com/wifiextender/pdf2img-c.git')
md5sums=('SKIP')

build() {
  cd $srcdir/pdf2img-c/
  chmod +x bootstrap
  ./bootstrap
  chmod +x configure
  ./configure --prefix=/usr --enable-button-images
}

package() {
  cd $srcdir/pdf2img-c/
  make
  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/usr/share/applications
  mkdir -p $pkgdir/usr/share/pixmaps
  cp $srcdir/pdf2img-c/src/pdf2img $pkgdir/usr/bin/
  cp $srcdir/pdf2img-c/pdf2img.desktop $pkgdir/usr/share/applications/
  cp $srcdir/pdf2img-c/pdf2img_c_icon.xpm $pkgdir/usr/share/pixmaps/
}

pkgver() {
  cd $srcdir/pdf2img-c/
  echo $(git rev-list --count master).$(git rev-parse --short master)
}