[arch-commits] Commit in sk1/trunk (PKGBUILD python2-fix.patch)
Sergej Pupykin
spupykin at archlinux.org
Mon Oct 24 13:17:02 UTC 2016
Date: Monday, October 24, 2016 @ 13:17:01
Author: spupykin
Revision: 193207
upgpkg: sk1 2.0rc2-1
upd
Modified:
sk1/trunk/PKGBUILD
Deleted:
sk1/trunk/python2-fix.patch
-------------------+
PKGBUILD | 24 ++++++++-------------
python2-fix.patch | 57 ----------------------------------------------------
2 files changed, 9 insertions(+), 72 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-24 12:43:54 UTC (rev 193206)
+++ PKGBUILD 2016-10-24 13:17:01 UTC (rev 193207)
@@ -3,31 +3,25 @@
# Contributor: ConnorBehan <connor.behan at gmail.com>
pkgname=sk1
-pkgver=0.9.3
-pkgrel=3
+pkgver=2.0rc2
+pkgrel=1
pkgdesc="Fork of skencil with improved CMYK support"
arch=(i686 x86_64)
-url="http://sk1project.org/modules.php?name=Products&product=sk1"
+url="http://sk1project.net/"
depends=('tcl' 'tk' 'zenity'
- 'python2-cairo' 'python2-lcms' 'python2-pillow')
+ 'python2-cairo' 'python2-lcms' 'python2-pillow'
+ 'imagemagick' 'pygtk')
provides=('sk1sdk')
license=('GPL' 'LGPL')
-source=(http://downloads.sourceforge.net/project/sk1/sk1/sK1_v.$pkgver/sk1-$pkgver.tar.gz
- python2-fix.patch)
-md5sums=('04cfbc5ffd4e25ae47a95b2e37cd8465'
- 'e560945a89c5445ce2f04960884a5f6b')
+source=("$pkgname-$pkgver.tar.gz::http://sk1project.net/dc3.php?version=$pkgver&target=sk1-$pkgver.tar.gz")
+md5sums=('f4933f65a0be9b153bcbcb3390a50cc9')
-prepare() {
- cd $srcdir/sk1-${pkgver}
- patch -p1 <$srcdir/python2-fix.patch
-}
-
build() {
cd $srcdir/sk1-${pkgver}
- python2 setup.py build
+ python2 setup-sk1.py build
}
package() {
cd $srcdir/sk1-${pkgver}
- python2 setup.py install --root=$pkgdir
+ python2 setup-sk1.py install --root=$pkgdir
}
Deleted: python2-fix.patch
===================================================================
--- python2-fix.patch 2016-10-24 12:43:54 UTC (rev 193206)
+++ python2-fix.patch 2016-10-24 13:17:01 UTC (rev 193207)
@@ -1,57 +0,0 @@
-diff -wbBur sk1-0.9.3/src/sk1/managers/dialogmanager.py sk1-0.9.3.my/src/sk1/managers/dialogmanager.py
---- sk1-0.9.3/src/sk1/managers/dialogmanager.py 2014-10-28 20:54:25.000000000 +0300
-+++ sk1-0.9.3.my/src/sk1/managers/dialogmanager.py 2015-02-20 19:13:54.588252445 +0300
-@@ -199,7 +199,7 @@
- tmpfile = NamedTemporaryFile()
- execline = ''
- if sk1.LANG: execline += 'export LANG=' + sk1.LANG + ';'
-- execline += 'python %s/gtk/open_file_dialog.py ' % (PATH,)
-+ execline += 'python2 %s/gtk/open_file_dialog.py ' % (PATH,)
- execline += ' caption="' + name + '" start_dir="' + initialdir + '"'
- execline += ' filetypes="' + filetypes + '" window-icon="' + icon + '"'
- os.system(execline + '>' + tmpfile.name)
-@@ -229,7 +229,7 @@
- execline = ''
- if sk1.LANG: execline += 'export LANG=' + sk1.LANG + ';'
- path = os.path.join(initialdir, initialfile)
-- execline += 'python %s/gtk/save_file_dialog.py ' % (PATH,)
-+ execline += 'python2 %s/gtk/save_file_dialog.py ' % (PATH,)
- execline += ' caption="' + name + '" path="' + path + '" '
- execline += ' filetypes="' + filetypes + '" window-icon="' + icon + '"'
- os.system(execline + '>' + tmpfile.name)
-diff -wbBur sk1-0.9.3/src/sk1/managers/docmanager.py sk1-0.9.3.my/src/sk1/managers/docmanager.py
---- sk1-0.9.3/src/sk1/managers/docmanager.py 2014-11-02 20:51:38.000000000 +0300
-+++ sk1-0.9.3.my/src/sk1/managers/docmanager.py 2015-02-20 19:13:59.778162450 +0300
-@@ -223,7 +223,7 @@
-
- execline = ''
- if sk1.LANG: execline += 'export LANG=' + sk1.LANG + ';'
-- execline += 'python %s/gtk/print_dialog.py ' % (PATH,)
-+ execline += 'python2 %s/gtk/print_dialog.py ' % (PATH,)
- execline += ' filepath="' + pdffile.name + '"'
- execline += ' window-icon="' + icon + '"'
-
-diff -wbBur sk1-0.9.3/src/sk1sdk/tkstyle/colors.py sk1-0.9.3.my/src/sk1sdk/tkstyle/colors.py
---- sk1-0.9.3/src/sk1sdk/tkstyle/colors.py 2014-09-03 20:42:00.000000000 +0400
-+++ sk1-0.9.3.my/src/sk1sdk/tkstyle/colors.py 2015-02-20 19:14:21.267789842 +0300
-@@ -146,7 +146,7 @@
- " style.bg[gtk.STATE_SELECTED].to_string(),"+ \
- " style.bg[gtk.STATE_INSENSITIVE].to_string();"
-
-- os.system('python -c "%s" >%s 2>/dev/null'%(command, tmpfile.name))
-+ os.system('python2 -c "%s" >%s 2>/dev/null'%(command, tmpfile.name))
-
- for type in ["base","text","fg","bg"]:
- line=tmpfile.readline().strip().split()
-diff -wbBur sk1-0.9.3/src/sk1sdk/tkstyle/fonts.py sk1-0.9.3.my/src/sk1sdk/tkstyle/fonts.py
---- sk1-0.9.3/src/sk1sdk/tkstyle/fonts.py 2014-09-10 13:06:18.000000000 +0400
-+++ sk1-0.9.3.my/src/sk1sdk/tkstyle/fonts.py 2015-02-20 19:14:26.454366585 +0300
-@@ -50,7 +50,7 @@
-
- tmpfile = NamedTemporaryFile()
- command = "import gtk;w = gtk.Window();w.realize();style=w.get_style(); print style.font_desc.to_string();"
-- os.system('python -c "%s" >%s 2>/dev/null' % (command, tmpfile.name))
-+ os.system('python2 -c "%s" >%s 2>/dev/null' % (command, tmpfile.name))
-
- font = tmpfile.readline().strip()
-
More information about the arch-commits
mailing list