diff options
Diffstat (limited to 'community/scratch/PKGBUILD')
-rw-r--r-- | community/scratch/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/scratch/PKGBUILD b/community/scratch/PKGBUILD new file mode 100644 index 000000000..6d9d6baef --- /dev/null +++ b/community/scratch/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 76325 2012-09-15 22:35:36Z jsteel $ +# Maintainer: Jonathan Steel <mail at jsteel dot org> +# Contributor: Muhammed Uluyol <muhammedu@gmail.com> + +pkgname=scratch +pkgver=1.4.0.7 +pkgrel=1 +pkgdesc="Create and share your own interactive stories, games, music and art" +arch=('i686' 'x86_64') +url="http://scratch.mit.edu" +license=('GPL2') +install=$pkgname.install +depends=('squeak-vm' 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils' 'pango') +source=(http://download.scratch.mit.edu/$pkgname-$pkgver.src.tar.gz) +md5sums=('f948e9e6de3ec9c7c7b4cc2a1975eb5a') + +build() { + cd "$srcdir"/$pkgname-$pkgver.src + + sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/$pkgname + + make build +} + +package() { + cd "$srcdir"/$pkgname-$pkgver.src + + install -Dm755 src/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm644 Scratch.image "$pkgdir"/usr/lib/$pkgname/Scratch.image + install -m644 Scratch.ini "$pkgdir"/usr/lib/$pkgname/Scratch.ini + install -Dm644 src/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop + install -Dm644 src/man/$pkgname.1.gz "$pkgdir"/usr/share/man/man1/$pkgname.1.gz + install -Dm644 src/$pkgname.xml "$pkgdir"/usr/share/mime/packages/$pkgname.xml + install -dm755 "$pkgdir"/usr/share/{$pkgname,icons/hicolor} + + cp -rp Help locale Media Projects README "$pkgdir"/usr/share/$pkgname/ + cp -rp src/icons/* "$pkgdir"/usr/share/icons/hicolor/ + cp -rp Plugins "$pkgdir"/usr/lib/$pkgname/ +} |