diff options
Diffstat (limited to 'community/golangide/PKGBUILD')
-rw-r--r-- | community/golangide/PKGBUILD | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/community/golangide/PKGBUILD b/community/golangide/PKGBUILD index 7b8128956..6b896a69d 100644 --- a/community/golangide/PKGBUILD +++ b/community/golangide/PKGBUILD @@ -1,36 +1,43 @@ -#$Id: PKGBUILD 85352 2013-03-01 10:31:59Z andrea $ +#$Id: PKGBUILD 90350 2013-05-11 18:38:52Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: spambanane <happy.house@gmx.de> # Contributor: Matteo <matteo.dek@gmail.com> pkgname=golangide -pkgver=17 -pkgrel=2 +pkgver=18.1 +pkgrel=1 pkgdesc='IDE for editing and building projects written in the Go programming language (now LiteIDE X)' license=('LGPL') arch=('x86_64' 'i686') url='https://github.com/visualfc/liteide' -depends=('go' 'libpng12' 'glib2' 'qt4' 'qjson') +depends=('go' 'libpng12' 'glib2' 'qt5-base' 'qt5-webkit') makedepends=('gendesk') options=('!strip') -_name=('Golang IDE') -# http://$pkgname.googlecode.com/files/liteidex$pkgver.linux-386-webkit.tar.bz2 -# http://$pkgname.googlecode.com/files/liteidex$pkgver.linux-amd64-webkit.tar.bz2 -source=("$pkgname.tgz::https://nodeload.github.com/visualfc/liteide/tar.gz/master" +source=("$pkgname.tgz::https://github.com/visualfc/liteide/archive/x$pkgver.zip" 'golangide.png' 'golangide.sh') -sha256sums=('88fae4a43a82ecb12739bfe6612d736fa963d8beaf30dccfb305c335929c3871' +sha256sums=('4ca6438099314789f4cd8fd3acc8016d8e32594634a6d0f130f5666dcb0a3d6c' '47c52b22326034bd3d6a7b11b05a53c8b3838c08e145171cf5cad2ca00260697' - 'aa5ea27f9c3626431a9cb45e5267771a1eeff48b2e3927c0574eaef9302cfd74') + '93ef16d59054ef9b37f8781e90f7d0f83d726779d2029660dfd21e84d808bf04') +_name=('Golang IDE') -build() { +prepare() { cd "$srcdir" - msg2 'Generating .desktop file...' + gendesk -n - msg2 'Compiling...' - cd liteide-master/build + cd "$srcdir/liteide-x$pkgver/build" + head -n-3 build_linux.sh > build_linux_fixed.sh + mv build_linux_fixed.sh build_linux.sh + head -n-4 webkit_linux.sh > webkit_linux_fixed.sh + mv webkit_linux_fixed.sh webkit_linux.sh chmod +x build_linux.sh webkit_linux.sh +} + +build() { + cd "$srcdir/liteide-x$pkgver/build" + + msg2 'Compiling...' QTDIR=/usr ./build_linux.sh QTDIR=/usr ./webkit_linux.sh @@ -47,7 +54,7 @@ package() { mkdir -p "$pkgdir/usr/share/liteide" mkdir -p "$pkgdir/usr/share/doc/$pkgname" - cd "$srcdir/liteide-master/build/liteide" + cd "$srcdir/liteide-x$pkgver/build/liteide" msg2 'Packaging executables...' for binary in goastview goapi goexec godocview liteide; do @@ -55,7 +62,7 @@ package() { done install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" - cd "$srcdir/liteide-master/liteidex" + cd "$srcdir/liteide-x$pkgver/liteidex" msg2 'Packaging resources...' cp -r deploy/* "$pkgdir/usr/share/liteide" |