updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / editra / PKGBUILD
blob912e55eba569dd0705ea04ab3065140bd5ec8006
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Chris Baker <baker.chris.3@gmail.com>
4 _pkg=Editra
5 pkgname=editra
6 pkgver=0.6.89
7 pkgrel=1
8 pkgdesc="Multi-platform text editor with features that aid in code development"
9 arch=('any')
10 url="http://$pkgname.org/"
11 license=('custom:wxWindows')
12 depends=('wxpython' 'python2-distribute' 'desktop-file-utils')
13 install="$pkgname.install"
14 source=("${url}uploads/src/$_pkg-$pkgver.tar.gz"
15         "$pkgname.desktop")
16 md5sums=('80d07285c68ac18dbeb172fa48a66486'
17          '6082f8d4bf1650af8ce87c6b3d38053b')
18          
19 build() {
20   cd "$srcdir/$_pkg-$pkgver"
22   python2 setup.py build
25 package() {
26   cd "$srcdir/$_pkg-$pkgver"
28   python2 setup.py install --root="$pkgdir/"
30   # prevent conflicts with wxpython
31   mv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/bin/$_pkg"
33   # desktop and pixmaps
34   install -Dm644 ../${source[1]} "$pkgdir/usr/share/applications/${source[1]}"
35   install -Dm644 pixmaps/$pkgname.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
37   # license
38   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
40   # python2 fixes
41   sed -i "s|\(^\#\!.*python\).*|\12|" `grep -rl "\#\!.*python" "$pkgdir"`