1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: Nicolás de la Torre <ndelatorre@gmail.com>
7 pkgdesc="A flexible coding editor"
9 url="http://ulipad.googlecode.com/"
12 optdepends=('psyco: psyco speed support'
13 'pyenchant: spell checking support')
14 source=(http://ulipad.googlecode.com/files/ulipad.$pkgver.zip
15 ulipad.launcher ulipad.desktop)
16 noextract=(ulipad.$pkgver.zip)
17 md5sums=('62d7b2feacf2be48eb326d7b56c7027e'
18 'abf16499ea904c1689b1a036851fda86'
19 'ec7100db9ecca658e800ace09ba2c6b3')
23 install -dm755 "$pkgdir/usr/share"
24 bsdtar -xf ulipad.$pkgver.zip -C "$pkgdir/usr/share" || return 1
25 install -Dm644 ulipad.desktop "$pkgdir/usr/share/applications/ulipad.desktop"
26 install -Dm755 ulipad.launcher "$pkgdir/usr/bin/ulipad"
27 sed -i "s/VERS=.*/VERS=$pkgver/" "$pkgdir/usr/bin/ulipad"
29 find "$pkgdir/usr/share/ulipad" -maxdepth 1 -type f ! -name '*d.[ip]*' -delete
30 find "$pkgdir/usr/share/ulipad" -type d -exec chmod 755 '{}' \;
31 find "$pkgdir/usr/share/ulipad" -type f -exec chmod 644 '{}' + \
32 -exec sed -i 's,env python,&2,' '{}' \;