summaryrefslogtreecommitdiff
path: root/community/sk1/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sk1/PKGBUILD')
-rw-r--r--community/sk1/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/sk1/PKGBUILD b/community/sk1/PKGBUILD
new file mode 100644
index 000000000..551df34a5
--- /dev/null
+++ b/community/sk1/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 31273 2010-10-29 11:31:49Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: ConnorBehan <connor.behan@gmail.com>
+
+pkgname=sk1
+pkgver=0.9.1
+pkgrel=6
+pkgdesc="Fork of skencil with improved CMYK support"
+arch=(i686 x86_64)
+url="http://sk1project.org/modules.php?name=Products&product=sk1"
+depends=('tcl>=7.6' 'tk>=4.2' 'python-lcms' 'pil>=1.0' 'pyxml' 'zenity' 'sk1libs')
+license=('GPL' 'LGPL')
+source=(http://sk1project.org/downloads/sk1/${pkgver}pre_rev905/sK1-${pkgver}pre_rev905.tar.gz
+ sk1.desktop
+ build-fix.patch)
+md5sums=('43b82fd85049b078dcf98e9dd81fdc6a'
+ 'bbf6f10b8155838eede93b5abed724f5'
+ 'de144f0193cf1cd61771ce7bc782dba2')
+
+build() {
+ local _tclver=`pacman -Q tcl`
+ local _tclnum=${tclver:4:3}
+ local _tcldir='tcl'${tclnum}
+
+ cd $srcdir/sK1-${pkgver}pre
+
+ # python2 fix
+ sed -i 's_#! /usr/bin/python_#! /usr/bin/python2_' src/__init__.py
+
+ patch -p1 <$srcdir/build-fix.patch
+ python2 setup.py install --prefix=/usr --root=$pkgdir
+
+ mkdir -p $pkgdir/usr/share/pixmaps
+ mkdir -p $pkgdir/usr/share/applications
+
+ cp $pkgdir/usr/lib/python2.7/site-packages/sk1/share/icons/CrystalSVG/icon_sk1_32.png \
+ $pkgdir/usr/share/pixmaps/sk1.png
+
+ cp $srcdir/sk1.desktop $pkgdir/usr/share/applications
+
+ mkdir $pkgdir/usr/lib/${_tcldir}
+ cp -r $pkgdir/usr/lib/python2.7/site-packages/sk1/share/ttk-themes/Plastik \
+ $pkgdir/usr/lib/${_tcldir}/Plastik
+
+ sed -i 's#^python#python2#' $pkgdir/usr/bin/sk1
+}