This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment