diff options
author | root <root@rshg054.dnsready.net> | 2012-11-25 01:27:50 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-25 01:27:50 -0800 |
commit | 7078408fce09d86886894f26c22cc36fc16aa4cc (patch) | |
tree | f905a603edb7119736dc6fbc704ec059d821dd77 /community/golangide | |
parent | c65624e6d74bffd70dcd67cc28448b5a50596efb (diff) |
Sun Nov 25 01:27:22 PST 2012
Diffstat (limited to 'community/golangide')
-rw-r--r-- | community/golangide/PKGBUILD | 82 | ||||
-rw-r--r-- | community/golangide/golangide.png | bin | 0 -> 7430 bytes | |||
-rw-r--r-- | community/golangide/golangide.sh | 6 |
3 files changed, 88 insertions, 0 deletions
diff --git a/community/golangide/PKGBUILD b/community/golangide/PKGBUILD new file mode 100644 index 000000000..fc087c24d --- /dev/null +++ b/community/golangide/PKGBUILD @@ -0,0 +1,82 @@ +#$Id: PKGBUILD 80553 2012-11-25 02:17:39Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: spambanane <happy.house@gmx.de> +# Contributor: Matteo <matteo.dek@gmail.com> +pkgname=golangide +pkgver=14.0 +pkgrel=1 +_hgrev=828 +pkgdesc='Simple IDE for Go to edit code and build projects' +license=('LGPL') +arch=('x86_64' 'i686') +url='http://code.google.com/p/golangide/' +depends=('go' 'libpng12' 'glib2') +makedepends=('gendesk') +if [ "$CARCH" == "x86_64" ]; then + source=("http://$pkgname.googlecode.com/files/liteidex${pkgver}.linux-amd64.hg${_hgrev}.tar.bz2" + 'golangide.png' + 'golangide.sh') + sha256sums=('8f166ae5b97c4484bfa47932a716e28c78547944db4f2d0e222d21694c510e5b' + '47c52b22326034bd3d6a7b11b05a53c8b3838c08e145171cf5cad2ca00260697' + '8054157f7d1b61a9d97c045f271f935636feb4939249d1bf1ab1b39f18a15207') +else + source=("http://$pkgname.googlecode.com/files/liteidex${pkgver}.linux-386.hg${_hgrev}.tar.bz2" + 'golangide.png' + 'golangide.sh') + sha256sums=('3b2e565aecc141affc7d10d3aa3e2efe06866559091690b6fe13b9a664eb81c0' + '47c52b22326034bd3d6a7b11b05a53c8b3838c08e145171cf5cad2ca00260697' + '8054157f7d1b61a9d97c045f271f935636feb4939249d1bf1ab1b39f18a15207') +fi +options=('!strip') +_name=('Golang IDE') +_genericname=('Integrated development environment') + +build() { + cd "$srcdir" + gendesk -n + + cd "liteide" + # Fixing insecure RPATH + 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" + + 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 + 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 libraries and plugins..." + cp -r lib/liteide/* "$pkgdir/usr/lib/liteide" + + msg2 "Packaging license and license exception..." + install -Dm644 LICENSE.LGPL \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL" + install -Dm644 LGPL_EXCEPTION.TXT \ + "$pkgdir/usr/share/licenses/$pkgname/LGPL_EXCEPTION.TXT" + + cd .. + + 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..." + rm -rf "$pkgdir/usr/share/$pkgname/doc" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/golangide/golangide.png b/community/golangide/golangide.png Binary files differnew file mode 100644 index 000000000..1aed5e1dd --- /dev/null +++ b/community/golangide/golangide.png diff --git a/community/golangide/golangide.sh b/community/golangide/golangide.sh new file mode 100644 index 000000000..486c8590b --- /dev/null +++ b/community/golangide/golangide.sh @@ -0,0 +1,6 @@ +#!/bin/sh +if [ ! -z $GOROOT -a -e $GOROOT ]; then + /usr/bin/liteide +else + GOROOT=/usr/lib/go /usr/bin/liteide +fi |