summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrey Christoforo2015-06-20 19:55:09 +0200
committerGrey Christoforo2015-06-20 19:55:09 +0200
commita75155d7bb3f8be8014b5df1f197be20d16bb988 (patch)
treedbfce18867b98e6eccd44bdb7c174c20976fcee7
downloadaur-a75155d7bb3f8be8014b5df1f197be20d16bb988.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD46
-rw-r--r--wingide.install11
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eab6f0d5e26
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = wingide
+ pkgdesc = Wing IDE Professional is the full-featured Python IDE for professional programmers.
+ pkgver = 5.1.4
+ pkgrel = 2
+ url = http://www.wingware.com
+ install = wingide.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = hicolor-icon-theme
+ depends = libpng12
+ depends = python2
+ depends = xdg-utils
+ options = !strip
+ options = !emptydirs
+ source_i686 = http://wingware.com/pub/wingide/5.1.4/wingide-5.1.4-1-i386-linux.tar.gz
+ md5sums_i686 = 1417a9ea4ecc33b0380ba29f5db5c759
+ source_x86_64 = http://wingware.com/pub/wingide/5.1.4/wingide-5.1.4-1-x86_64-linux.tar.gz
+ md5sums_x86_64 = d3945cf39f3d6088e4d87bcf310540a8
+
+pkgname = wingide
+
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"
+}
diff --git a/wingide.install b/wingide.install
new file mode 100644
index 00000000000..7be0d2192dd
--- /dev/null
+++ b/wingide.install
@@ -0,0 +1,11 @@
+post_install() {
+ /opt/wingide/resources/linux/desktop/install-linux-desktop.sh --install
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ /opt/wingide/resources/linux/desktop/install-linux-desktop.sh --uninstall
+}