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