summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGrey Christoforo2015-06-20 19:55:09 +0200
committerGrey Christoforo2015-06-20 19:55:09 +0200
commita75155d7bb3f8be8014b5df1f197be20d16bb988 (patch)
treedbfce18867b98e6eccd44bdb7c174c20976fcee7 /PKGBUILD
downloadaur-a75155d7bb3f8be8014b5df1f197be20d16bb988.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2e7f6f929c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+
+pkgname=wingide
+pkgver=5.1.4
+pkgrel=2
+_pkgrel=1
+pkgdesc="Wing IDE Professional is the full-featured Python IDE for professional programmers."
+url="http://www.wingware.com"
+license=('custom')
+arch=('i686' 'x86_64')
+[ "$CARCH" = 'i686' ] && _pkgarch=i386
+[ "$CARCH" = 'x86_64' ] && _pkgarch=x86_64
+source_x86_64=("http://wingware.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-$_pkgrel-x86_64-linux.tar.gz")
+source_i686=("http://wingware.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-$_pkgrel-i386-linux.tar.gz")
+depends=('hicolor-icon-theme' 'libpng12' 'python2' 'xdg-utils')
+options=(!strip !emptydirs)
+md5sums_i686=('1417a9ea4ecc33b0380ba29f5db5c759')
+md5sums_x86_64=('d3945cf39f3d6088e4d87bcf310540a8')
+install=${pkgname}.install
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver-$_pkgrel-$_pkgarch-linux"
+ sed -i 's/python/python2/' wing-install.py
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver-$_pkgrel-$_pkgarch-linux"
+ ./wing-install.py \
+ --install-binary \
+ --winghome "${pkgdir}/opt/${pkgname}" \
+ --bin-dir ${pkgdir}/usr/bin > /dev/null 2>&1
+
+ # Correct the WINGHOME environment variable
+ sed -i "s|${pkgdir}||" ${pkgdir}/opt/${pkgname}/wingdbstub.py
+ sed -i "s|${pkgdir}||" ${pkgdir}/opt/${pkgname}/wing
+
+ # Correct ARCH environment variable
+ sed -i 's|ARCH=`arch`|ARCH=`uname -m`|' ${pkgdir}/opt/wingide/run-wing.sh
+ # Fix a bug in the script
+ sed -i "s|'x86_64'\]|'x86_64' \]|" ${pkgdir}/opt/wingide/run-wing.sh
+
+ # Correct the file permissions
+ chown -R root:root "${pkgdir}/opt/${pkgname}"
+ chmod +x ${pkgdir}/opt/${pkgname}/resources/linux/desktop/install-linux-desktop.sh
+ # Install the LICENSE
+ install -D -m 644 "${pkgdir}/opt/${pkgname}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}