diff options
author | root <root@rshg054.dnsready.net> | 2013-10-25 02:08:36 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-10-25 02:08:36 -0700 |
commit | 5a3821aec094b38a412cf5e6997c08b6428d6f77 (patch) | |
tree | 80caf9e8d169d5c43d828ede599cb91fa065d8df /community/sk1/PKGBUILD | |
parent | 94ded0cb27161b972228cfef8ea2e6f60af0f2b2 (diff) |
Fri Oct 25 02:07:10 PDT 2013
Diffstat (limited to 'community/sk1/PKGBUILD')
-rw-r--r-- | community/sk1/PKGBUILD | 50 |
1 files changed, 13 insertions, 37 deletions
diff --git a/community/sk1/PKGBUILD b/community/sk1/PKGBUILD index ed0920ac3..d6002833d 100644 --- a/community/sk1/PKGBUILD +++ b/community/sk1/PKGBUILD @@ -1,51 +1,27 @@ -# $Id: PKGBUILD 98434 2013-10-10 11:32:25Z spupykin $ +# $Id: PKGBUILD 99085 2013-10-24 10:25:28Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: ConnorBehan <connor.behan@gmail.com> pkgname=sk1 pkgver=0.9.1 -pkgrel=12 +pkgrel=13 pkgdesc="Fork of skencil with improved CMYK support" arch=(i686 x86_64) url="http://sk1project.org/modules.php?name=Products&product=sk1" -depends=('tcl' 'tk' 'python2-lcms' 'python2-pillow' 'zenity' 'sk1libs') +depends=('tcl' 'tk' 'python2-lcms' 'python2-pillow' 'zenity' 'sk1libs' 'sk1sdk') license=('GPL' 'LGPL') -source=(http://sk1project.org/downloads/sk1/${pkgver}pre_rev905/sK1-${pkgver}pre_rev905.tar.gz - sk1.desktop - fix_pillow_import.patch +source=(https://sk1.googlecode.com/files/sk1-${pkgver}pre2_rev1383.tar.gz build-fix.patch) +md5sums=('ce8a98e99e133b215b7ed67d6b0e0113' + 'b22c3c7b6a979c0a4e59ecaa2bd2182b') -package() { - local _tclver=`pacman -Q tcl` - local _tclnum=${tclver:4:3} - local _tcldir='tcl'${tclnum} - - cd $srcdir/sK1-${pkgver}pre - - # pillow import fix - patch -Np1 -i $srcdir/fix_pillow_import.patch - - # python2 fix - sed -i 's_#! /usr/bin/python_#! /usr/bin/python2_' src/__init__.py - +prepare() { + cd $srcdir/sk1-${pkgver}pre2 + sed -i 's_#! /usr/bin/python_#! /usr/bin/python2_' src/{__init__.py,sk1} 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 +package() { + cd $srcdir/sk1-${pkgver}pre2 + python2 setup.py install --prefix=/usr --root=$pkgdir } -md5sums=('43b82fd85049b078dcf98e9dd81fdc6a' - 'bbf6f10b8155838eede93b5abed724f5' - '4a44dd89707b19fe58f4c124ed321236' - 'b22c3c7b6a979c0a4e59ecaa2bd2182b') |