1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Michael Krauss <mickraus@googlemail.com>
7 pkgdesc="An interactive vector drawing program for X (similar to XFigor tgif), written almost completely in Python"
9 url="http://sk1project.org/viewpage.php?page_id=21"
11 depends=('python-imaging' 'pygtk' 'python-reportlab' 'tk')
12 install=("$pkgname.install")
13 source=("http://sk1project.org/dc2.php?target=$pkgname-$pkgver.tar.gz"
14 "http://sk1project.org/images/news/pict007.png")
15 md5sums=('b4c259243c0a5a400b59a5e315f3ae55'
16 'e930b652260747068ac2b4776ea05da1')
19 cd "$srcdir/$pkgname-${pkgver/_*}"
22 export PYTHON="python2"
23 sed -e "s|\(env python\).*|\12|;s|\(bin/python\).*|\12|" \
24 -i `grep -Erl "(env python|bin/python)" .`
26 # Fix "python -c" invocation
27 sed -i "s|python |python2 |" src/Sketch/Base/gtkutils.py
29 python2 setup.py build
33 cd "$srcdir/$pkgname-${pkgver/_*}"
35 python2 setup.py install --prefix=/usr --root="$pkgdir"
37 # Replace pixmap with a better image
38 install -Dm644 ../pict007.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
41 # vim:set ts=2 sw=2 et: