summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fec14f96dcf1f1d09acc3ce102c3e691e0d436a7 (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
# Contributor: Igor Novikov <sk1 dot project dot org at gmail dot com>
# Maintainer: Joermungand <joermungand at gmail dot com>

pkgname=uniconvertor2-git
pkgver=r523.973d5b6
pkgrel=1
epoch=1
pkgdesc="A universal vector graphics translator"
url="https://sk1project.net/"
arch=('i686' 'x86_64')
license=('AGPL3')
depends=('lcms2' 'cairo' 'libmagick' 'pango' 'python2-cairo' 
	 'python2-pillow' 'python2-reportlab' 'python2-pycups')
makedepends=('git' 'python2')
provides=('uniconvertor')
conflicts=('uniconvertor')
source=("${pkgname%-*}"::'git+https://github.com/sk1project/uniconvertor.git')
md5sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname%-*}"
  LANG=en_US.UTF-8 python2 setup.py build
}

package() {
  cd "${srcdir}/${pkgname%-*}"
  LANG=en_US.UTF-8 python2 setup.py install --root="$pkgdir"
}