public
Created

  • Download Gist
wingide 101 4.0.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
# Contributor: Qiang Sun <sunqiang@gmail.com>
 
pkgname=wingide-101
pkgver=4.0.0
_pkgrel=1
pkgrel=1
pkgdesc="Wing IDE is the most advanced Python IDE available today. (free edition)"
url="http://www.wingware.com"
license=("custom")
arch=(i686 x86_64)
[ "$CARCH" == "i686" ] && _pkgarch=i386 || _pkgarch=$(arch)
source=("http://wingware.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-$_pkgrel-$_pkgarch-linux.tar.gz"
"$pkgname.desktop")
options=(!strip)
md5sums=('7344a2809deadde3537a7432524c43a2'
'8a36bf9de947ee68fa8ba148d50eee4f')
[ "$CARCH" == "i686" ] && md5sums=('8d9e2e31a3d9bd915032d8fc71d50c9b'
'8a36bf9de947ee68fa8ba148d50eee4f')
 
build()
{
cd $srcdir/$pkgname-$pkgver-$_pkgrel-$_pkgarch-linux
install -d $pkgdir/opt/$pkgname $pkgdir/usr/bin \
$pkgdir/usr/share/applications $pkgdir/usr/share/pixmaps
tar -xC $pkgdir/opt/$pkgname -f binary-package-$pkgver-$pkgrel.tar
sed -e "s/^DIR=.*$/DIR=\/opt\/$pkgname/g" -i $pkgdir/opt/$pkgname/wing-101
install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/
ln -s /opt/$pkgname/wing-101 $pkgdir/usr/bin/$pkgname
ln -s /opt/$pkgname/resources/wing128.png $pkgdir/usr/share/pixmaps/$pkgname.png
}
 
# vim:syntax=sh

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.