diff options
Diffstat (limited to 'community/sk1')
-rw-r--r-- | community/sk1/PKGBUILD | 46 | ||||
-rw-r--r-- | community/sk1/build-fix.patch | 14 | ||||
-rw-r--r-- | community/sk1/sk1.desktop | 59 |
3 files changed, 119 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 +} diff --git a/community/sk1/build-fix.patch b/community/sk1/build-fix.patch new file mode 100644 index 000000000..37bc8e135 --- /dev/null +++ b/community/sk1/build-fix.patch @@ -0,0 +1,14 @@ +diff -wbBur sK1-0.9.1pre/setup.py sK1-0.9.1pre.my/setup.py +--- sK1-0.9.1pre/setup.py 2010-01-10 06:24:54.000000000 +0000 ++++ sK1-0.9.1pre.my/setup.py 2010-02-24 21:19:02.000000000 +0000 +@@ -149,8 +149,8 @@ + filter_src+'stringfilter.c', filter_src+'binfile.c', filter_src+'hexfilter.c']) + + #Fix for Debian based distros +- tcl_include_dirs = [] +- tcl_ver='' ++ tcl_include_dirs = ['/usr/include'] ++ tcl_ver='8.5' + if os.path.isdir('/usr/include/tcl8.5'): + tcl_include_dirs = ['/usr/include/tcl8.5'] + tcl_ver ='8.5' diff --git a/community/sk1/sk1.desktop b/community/sk1/sk1.desktop new file mode 100644 index 000000000..6e1878e6e --- /dev/null +++ b/community/sk1/sk1.desktop @@ -0,0 +1,59 @@ + +[Desktop Entry] +Encoding=UTF-8 +Name=sk1 +GenericName=Vector-based Drawing Program +GenericName[af]=Vector-based Teken Program +GenericName[bg]=ÐекÑоѬна гѬаÑиÑ!на пѬогѬама за ѬиÑýђване +GenericName[bs]=Program za vektorsko crtanje +GenericName[ca]=Programa de dibuix basat en els vectors +GenericName[cs]=Vektorový kreslÃprogram +GenericName[da]=Vektorbaseret tegneprogram +GenericName[de]=Vektorbasiertes Zeichenprogramm +GenericName[el]=Î ÏýÏRγÏýαμμα ÎÏ0γÏýÎ±Ï Î¹ÎºÎ®Ï ÎÎ±Ï’Î¹Ï’Î¼Î½Î·Ï Ï’Îµ ÎιανÏýϒμαÏα +GenericName[eo]=Vektor-desegnilo +GenericName[es]=Programa de dibujo vectorial +GenericName[et]=Vektorgraafika joonistamine +GenericName[eu]=Marazteko Programa Bektoriala +GenericName[fa]=بر٠اÙ&Ù!â¬RÛR رسÙ& بردارÛR +GenericName[fi]=Vektoripohjainen piirto-ohjelma +GenericName[fr]=Logiciel de dessin vectoriel +GenericName[he]=ת×"×:× ×"ת צ×"×"ר ×~××"ססת ×"ק×Ü×"ר×"×ý +GenericName[hr]=Vektorski program za crtanje +GenericName[hu]=vektoros rajzolóprogram +GenericName[is]=Vigrað teikniforrit +GenericName[it]=Programma di disegno vettoriale +GenericName[ja]=ã’"ã¯ã’Æã’«ã’0ã’¼ã¤ã’³ã°ã’ã’°ã’©ã’ +GenericName[lo]=à»àº:ຣà»ýàºýຣມວາàºàº~າàºaà»ýàºaàºa໬ວັàºý໬àº"ີ +GenericName[lt]=Vektorinio paiÅ¡ymo programa +GenericName[lv]=Uz Vektoriem bÄýzÄtas ZÄ«mÄÅ¡anas Programma +GenericName[mk]=ÐекÑоѬÑýки базиѬан пѬогѬам за Ñ Ñ¬ÑаÑaе +GenericName[mn]=ÐекÑоѬв ÑђлгђђлаÑýан зђѬгийн пѬогѬам +GenericName[mt]=Programm biex tpinÄ¡i b'vektori +GenericName[nb]=Vektorbasert tegneprogram +GenericName[nl]=vector-gebaseerd tekenprogramma +GenericName[nn]=Vektorbasert teikneprogram +GenericName[nso]=Lenaneo lago Taka leo le Lebisitswego ka Vector +GenericName[pl]=Wektorowy program do rysowania +GenericName[pt]=Programa de Desenho Vectorial +GenericName[pt_BR]=Programa de Desenho baseado em Vetor +GenericName[ro]=Program de desenare vectorialÄ’ +GenericName[ru]=ÐxѬогѬамма векÑоѬной гѬаÑики +GenericName[se]=VektorvuoÄÄoduvvon sárgonprográmma +GenericName[sk]=Vektorový kresliaci program +GenericName[sl]=Program za vektorsko risanje +GenericName[sv]=Vektorbaserat ritprogram +GenericName[th]=à¹à¸:รà¹ýà¸ýรมวาà¸à¸ าà¸~à¹ýà¸aà¸a๬วà¸ý๬à¸"ุ£à¹R +GenericName[tr]=Vektor Tabanlı Ã!izim Programı +GenericName[uk]=ÐxѬогѬама ÑýÑвоѬеннÑý векÑоѬниÑ& зобѬаженÑR +GenericName[ven]=Mbekanyamushumo yo olwaho sa Vekitha +GenericName[vi]=Trình vẽ kiá»’u Vector +GenericName[xh]=Inkqubo Yomzobo Osekwe-Kwimitha Yovavanyo +GenericName[zh_CN]=çx¢é!ýç»Üå:¾ç¨9åºý +GenericName[zh_TW]=åýé!ý繪åSç¨9å¼ý +GenericName[zu]=Uhlelo lwemisebenzi olusekelwe kwi-Vector +Exec=/usr/bin/sk1 +Categories=Application;Graphics; +Terminal=false +Type=Application +Icon=/usr/share/pixmaps/sk1.png |