1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
5 pkgdesc="Simple IDE for Go to edit code and build projects"
7 url="http://code.google.com/p/golangide/"
11 if [ "$CARCH" == "x86_64" ]
13 source=("http://$pkgname.googlecode.com/files/liteide-linux-x86_64-x$pkgver.tar.bz2"
16 md5sums=('51306523cd3f031854e6b7b2c8588acb'
17 '61cc285d9aa94bacc8c3bebc58f6565d'
18 '7f459be003d754a3a2c34be91b8c0b1f')
20 source=("http://$pkgname.googlecode.com/files/liteide-linux-x86-x$pkgver.tar.bz2"
23 md5sums=('2d36b054f5540d39c47a3b16a6e46c0c'
24 '61cc285d9aa94bacc8c3bebc58f6565d'
25 '7f459be003d754a3a2c34be91b8c0b1f')
31 msg2 "Fixing insecure RPATH..."
32 find . -name "*.so" -type f -exec sed -i 's|/home/win|/usr/lib/|g' {} \;
33 find . -name liteide -type f -exec sed -i 's|/home/win|/usr/lib/|g' {} \;
39 msg2 "Creating directories..."
40 mkdir -p "$pkgdir/usr/lib/liteide"
41 mkdir -p "$pkgdir/usr/share/liteide"
42 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
44 msg2 "Packaging executables..."
45 install -Dm755 bin/goastview "$pkgdir/usr/bin/goastview"
46 install -Dm755 bin/godocview "$pkgdir/usr/bin/godocview"
47 install -Dm755 bin/goexec "$pkgdir/usr/bin/goexec"
48 install -Dm755 bin/gopromake "$pkgdir/usr/bin/gopromake"
49 install -Dm755 bin/liteide "$pkgdir/usr/bin/golangide"
51 msg2 "Packaging resources..."
52 cp -r share/liteide/* "$pkgdir/usr/share/liteide"
54 msg2 "Packaging libraries and plugins..."
55 cp -r lib/liteide/* "$pkgdir/usr/lib/liteide"
57 msg2 "Packaging docs..."
58 cp -r share/liteide/doc/*.{html,css} "$pkgdir/usr/share/doc/$pkgname"
60 msg2 "Packaging license..."
61 install -Dm644 LICENSE.LGPL \
62 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL"
64 msg2 "Packaging license exception..."
65 install -Dm644 LGPL_EXCEPTION.TXT \
66 "$pkgdir/usr/share/licenses/$pkgname/LGPL_EXCEPTION.TXT"
70 msg2 "Packaging menu entry and icon..."
71 install -Dm644 "$pkgname.desktop" \
72 "$pkgdir/usr/share/applications/$pkgname.desktop"
73 install -Dm644 "$pkgname.png" \
74 "$pkgdir/usr/share/pixmaps/$pkgname.png"
77 rm -rf "$pkgdir/usr/share/$pkgname/doc"
80 # vim:set ts=2 sw=2 et: