updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / ulipad / PKGBUILD
blob2d6d28be0ab1286599ca9b52037e7f7bac9da4c4
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Nicolás de la Torre <ndelatorre@gmail.com>
4 pkgname=ulipad
5 pkgver=4.0
6 pkgrel=2
7 pkgdesc="A flexible coding editor"
8 arch=('i686' 'x86_64')
9 url="http://ulipad.googlecode.com/"
10 license=('GPL')
11 depends=('wxpython')
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')
21 build() {
22   cd "$srcdir"
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,' '{}' \;