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

pkgname=sk1-git
pkgver=r5201.62cc98e0
pkgrel=1
pkgdesc="An open source vector graphics editor for prepress"
url="https://sk1project.net/"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('lcms2' 'cairo' 'libmagick' 'pango' 'wxpython' 'python2-cairo' 
	 'python2-pillow' 'python2-reportlab' 'python2-pycups')
makedepends=('git' 'python2')
provides=('sk1')
conflicts=('sk1')
source=("${pkgname%-*}"::'git+https://github.com/sk1project/sk1-wx.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"
}