updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wingide / PKGBUILD
blob2e94f062898ba3dd3905482b6aa09e68effb2950
1 # Maintainer: Diogo Baeder <diogobaeder at yahoo dot com dot br>
2 # Contributor: Andreas Schönfelder <passtschu at freenet dot de>
3 # Contributor: Estevao Valadao <estevao@archlinux-br.org>
5 pkgname=wingide
6 pkgver=4.1.3
7 _pkgrel=1
8 pkgrel=1
9 pkgdesc="Wing IDE is the most advanced Python IDE available today."
10 url="http://www.wingware.com"
11 license=("custom")
12 arch=(i686 x86_64)
13 [ "$CARCH" == "i686" ] && _pkgarch=i386 || _pkgarch=$(arch)
14 source=("http://wingware.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-$_pkgrel-$_pkgarch-linux.tar.gz"
15         "$pkgname.desktop")
16 options=(!strip)
17 md5sums=('0070fdbd84f4aa5e1e5a2abc80106ee1'
18          '9b54e2824d79a5ce0823a525a9863790')
19 [ "$CARCH" == "i686" ] && md5sums=('d3be750bad2a9f0d76f02317f59af06d'
20                                    '9b54e2824d79a5ce0823a525a9863790')
22 package() 
24     cd $srcdir/$pkgname-$pkgver-$_pkgrel-$_pkgarch-linux
25     install -d $pkgdir/opt/$pkgname $pkgdir/usr/bin \
26         $pkgdir/usr/share/applications $pkgdir/usr/share/pixmaps
27     tar -xC $pkgdir/opt/$pkgname -f binary-package-$pkgver-$_pkgrel.tar
28     sed -e "s/^DIR=.*$/DIR=\/opt\/$pkgname/g" -i $pkgdir/opt/$pkgname/wing
29     install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/
30     ln -s /opt/$pkgname/wing $pkgdir/usr/bin/$pkgname
31     ln -s /opt/$pkgname/resources/wing128.png $startdir/pkg/usr/share/pixmaps/$pkgname.png