diff options
Diffstat (limited to 'community/processing')
-rw-r--r-- | community/processing/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/community/processing/PKGBUILD b/community/processing/PKGBUILD new file mode 100644 index 000000000..7950df9c0 --- /dev/null +++ b/community/processing/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 93145 2013-06-25 20:18:20Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> + +pkgname=processing +pkgver=2.0.1 +pkgrel=1 +arch=('x86_64' 'i686') +pkgdesc='Programming language and environment for creating images, animations and interactions' +url='http://www.processing.org/' +license=('GPL' 'LGPL') +depends=('libgl' 'sh' 'libxxf86vm') +makedepends=('gendesk') +options=(!strip) + +#if [ "$CARCH" == "x86_64" ]; then + source=("http://download.$pkgname.org/$pkgname-$pkgver-linux64.tgz" + "$pkgname.png::http://wiki.$pkgname.org/skins/${pkgname}skin/${pkgname}_wiki_logo.png") + sha256sums=('cd1c723e3521b679b8e36d4f04718adcf515d759cb69fc9dfe9020e1a1b2ad1b' + '019ae700333409acbc628779747ab8f153f6647de25e4de3a9bd4a42d0d8056a') +#else +# source=("http://download.$pkgname.org/$pkgname-$pkgver-linux32.tgz" +# "$pkgname.png::http://wiki.$pkgname.org/skins/${pkgname}skin/${pkgname}_wiki_logo.png") +# sha256sums=('99c3e49d235a70c59da3f032c59ca5271177b076aa8f2bff1735a14b7c4adfec' +# '019ae700333409acbc628779747ab8f153f6647de25e4de3a9bd4a42d0d8056a') +#fi + +prepare() { + cd "$srcdir" + + gendesk --pkgname="$pkgname" --pkgdesc="$pkgdesc" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin/" + cp -r * "$pkgdir/usr/share/$pkgname/" + ln -s "/usr/share/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" + ln -s "/usr/share/$pkgname/$pkgname-java" "$pkgdir/usr/bin/$pkgname-java" + install -Dm644 "$srcdir/$pkgname.png" \ + "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm644 "$srcdir/$pkgname.desktop" \ + "$pkgdir/usr/share/applications/$pkgname.desktop" +} + +# vim:set ts=2 sw=2 et: |