summaryrefslogtreecommitdiff
path: root/community/scratch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-10 03:34:10 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-10 03:34:10 +0000
commitffe0bbfd85b1341f3b15f809ea92f330d2f7cea3 (patch)
treecdffed6dff9284dc6ea35a558ec820639918e6cd /community/scratch
parent22a7afa9198d103fd181636ffff9ded8e066e2e2 (diff)
Mon Feb 10 03:32:23 UTC 2014
Diffstat (limited to 'community/scratch')
-rw-r--r--community/scratch/PKGBUILD22
-rw-r--r--community/scratch/scratch.install4
2 files changed, 19 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
}
diff --git a/community/scratch/scratch.install b/community/scratch/scratch.install
index 7fe49829c..8db29369c 100644
--- a/community/scratch/scratch.install
+++ b/community/scratch/scratch.install
@@ -4,6 +4,10 @@ post_install() {
gtk-update-icon-cache -qf /usr/share/icons/hicolor
}
+post_upgrade() {
+ post_install
+}
+
post_remove() {
post_install
}