diff options
Diffstat (limited to 'community/scratch/PKGBUILD')
-rw-r--r-- | community/scratch/PKGBUILD | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/community/scratch/PKGBUILD b/community/scratch/PKGBUILD index 508442874..4ea7e23ad 100644 --- a/community/scratch/PKGBUILD +++ b/community/scratch/PKGBUILD @@ -1,24 +1,28 @@ -# $Id: PKGBUILD 77468 2012-10-10 18:12:07Z jsteel $ -# Maintainer: Jonathan Steel <mail at jsteel dot org> +# $Id: PKGBUILD 105503 2014-02-09 11:46:59Z jsteel $ +# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org> # Contributor: Muhammed Uluyol <muhammedu@gmail.com> pkgname=scratch pkgver=1.4.0.7 -pkgrel=2 +pkgrel=3 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' - 'gtk-update-icon-cache') +depends=('squeak-vm' 'shared-mime-info' 'desktop-file-utils' 'pango' + 'gtk-update-icon-cache') source=(http://download.scratch.mit.edu/$pkgname-$pkgver.src.tar.gz) md5sums=('f948e9e6de3ec9c7c7b4cc2a1975eb5a') -build() { +prepare() { cd "$srcdir"/$pkgname-$pkgver.src sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/$pkgname +} + +build() { + cd "$srcdir"/$pkgname-$pkgver.src make build } @@ -35,6 +39,10 @@ package() { 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/ + + for res in 32 48 128; do + install -D -m644 src/icons/${res}x${res}/$pkgname.png \ + "$pkgdir"/usr/share/icons/hicolor/${res}x${res}/apps/$pkgname.png + done } |