summaryrefslogtreecommitdiff
path: root/community/golangide
diff options
context:
space:
mode:
Diffstat (limited to 'community/golangide')
-rw-r--r--community/golangide/PKGBUILD72
-rw-r--r--community/golangide/golangide.sh5
2 files changed, 39 insertions, 38 deletions
diff --git a/community/golangide/PKGBUILD b/community/golangide/PKGBUILD
index f034f60c8..81aee4a30 100644
--- a/community/golangide/PKGBUILD
+++ b/community/golangide/PKGBUILD
@@ -1,4 +1,4 @@
-#$Id: PKGBUILD 81406 2012-12-19 18:29:25Z arodseth $
+#$Id: PKGBUILD 81475 2012-12-21 17:01:26Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: spambanane <happy.house@gmx.de>
# Contributor: Matteo <matteo.dek@gmail.com>
@@ -6,78 +6,78 @@
pkgname=golangide
pkgver=15
pkgrel=1
-_hgrev=1011
-pkgdesc='Simple IDE for Go to edit code and build projects'
+pkgdesc='IDE for editing and building projects written in the Go programming language'
license=('LGPL')
arch=('x86_64' 'i686')
url='https://github.com/visualfc/liteide'
-depends=('go' 'libpng12' 'glib2')
+depends=('go' 'libpng12' 'glib2' 'qt' 'qjson' 'qtwebkit')
makedepends=('gendesk')
options=('!strip')
_name=('Golang IDE')
-_genericname=('Integrated development environment')
-
-if [ "$CARCH" == "x86_64" ]; then
- source=("http://$pkgname.googlecode.com/files/liteidex${pkgver}.linux-amd64.hg${_hgrev}.tar.bz2"
- 'golangide.png'
- 'golangide.sh')
- sha256sums=('cb024050d1b41533c91722c005d08e99834585c3826e0b62cb55ec672b48f519'
- '47c52b22326034bd3d6a7b11b05a53c8b3838c08e145171cf5cad2ca00260697'
- '79eaede6c031e87a94627fb126a0aefab1feb971995d648436f142b3d684f1b2')
-else
- source=("http://$pkgname.googlecode.com/files/liteidex${pkgver}.linux-386.hg${_hgrev}.tar.bz2"
- 'golangide.png'
- 'golangide.sh')
- sha256sums=('b41d9be3935524f38a3c8ba9db1014412e0daf7d57e2b8c2bee1de4572b67d18'
+source=("$pkgname.tgz::https://nodeload.github.com/visualfc/liteide/tar.gz/master"
+ 'golangide.png'
+ 'golangide.sh')
+sha256sums=('23158d09d5d3c439a07d12532dc8cdbc963c65dde1739f2e19b611a7d2f8944e'
'47c52b22326034bd3d6a7b11b05a53c8b3838c08e145171cf5cad2ca00260697'
- '79eaede6c031e87a94627fb126a0aefab1feb971995d648436f142b3d684f1b2')
-fi
+ '9b1844a1e3a611760c2d2072b539cca0d2eed1584e1bf04a7fdd8d171e3cd775')
build() {
cd "$srcdir"
+
+ msg2 'Generating .desktop file'
gendesk -n
- cd "liteide"
- # Fixing insecure RPATH
+ msg2 'Compiling...'
+ cd "liteide-master/build"
+ chmod +x build_linux.sh webkit_linux.sh
+ QTDIR=/usr ./build_linux.sh
+ QTDIR=/usr ./webkit_linux.sh
+
+ # Fixing insecure RPATH, need to test if this is still needed
+ msg2 'Fixing...'
+ cd "../liteidex"
find . -name "*.so" -type f -exec sed -i 's|/home/win|/usr/lib/|g' {} \;
find . -name liteide -type f -exec sed -i 's|/home/win|/usr/lib/|g' {} \;
}
package() {
- cd "$srcdir/liteide"
+ cd "$srcdir/liteide-master/liteidex"
- msg2 "Creating directories..."
+ msg2 'Creating directories...'
mkdir -p "$pkgdir/usr/lib/liteide"
mkdir -p "$pkgdir/usr/share/liteide"
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
- msg2 "Packaging executables..."
- for binary in goastview goapi goexec godocview liteide; do
+ msg2 'Packaging executables...'
+ for binary in goastview goapi goexec godocview liteidex; do
install -Dm755 "bin/$binary" "$pkgdir/usr/bin/$binary"
done
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
- msg2 "Packaging resources..."
- cp -r share/liteide/* "$pkgdir/usr/share/liteide"
+ msg2 'Packaging resources...'
+ cp -r deploy/* "$pkgdir/usr/share/liteide"
+ cp -r os_deploy/* "$pkgdir/usr/share/liteide"
- msg2 "Packaging libraries and plugins..."
- cp -r lib/liteide/* "$pkgdir/usr/lib/liteide"
+ msg2 'Packaging libraries and plugins...'
+ cp -r liteide/lib/liteide/* "$pkgdir/usr/lib/liteide"
+ cp -r liteide/bin/libliteapp.* "$pkgdir/usr/lib/"
+ chmod -x "$pkgdir/usr/lib/liteide/plugins/"*
- msg2 "Packaging license and license exception..."
+ msg2 'Packaging license and license exception...'
install -Dm644 LICENSE.LGPL \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL"
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 LGPL_EXCEPTION.TXT \
- "$pkgdir/usr/share/licenses/$pkgname/LGPL_EXCEPTION.TXT"
+ "$pkgdir/usr/share/licenses/$pkgname/LGPL_EXCEPTION"
- cd ..
+ cd ../..
- msg2 "Packaging menu entry and icon..."
+ msg2 'Packaging menu entry and icon...'
install -Dm644 "$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$pkgname.png" \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
- msg2 "Cleaning up..."
+ msg2 'Cleaning up...'
rm -rf "$pkgdir/usr/share/$pkgname/doc"
}
diff --git a/community/golangide/golangide.sh b/community/golangide/golangide.sh
index 824126c45..70705e5f3 100644
--- a/community/golangide/golangide.sh
+++ b/community/golangide/golangide.sh
@@ -1,6 +1,7 @@
#!/bin/sh
+# The libqjson issue has been reported upstream
if [ ! -z $GOROOT -a -e $GOROOT ]; then
- /usr/bin/liteide $@
+ LD_PRELOAD=/usr/lib/libqjson.so /usr/bin/liteidex $@
else
- GOROOT=/usr/lib/go /usr/bin/liteide $@
+ GOROOT=/usr/lib/go LD_PRELOAD=/usr/lib/libqjson.so /usr/bin/liteidex $@
fi