updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / byob / PKGBUILD
blob91b0649af9863f7e0231751a3a3dbb4120384b87
1 # Maintainer: Anatoly Kamchatnov <akamch at gmail dot com>
2 pkgname=byob
3 pkgver=3.1.1
4 pkgrel=1
5 pkgdesc="Build Your Own Blocks is a visual programming language based on Scratch."
6 arch=('i686' 'x86_64')
7 url="http://byob.berkeley.edu/"
8 license=('custom')
9 depends=('scratch')
11 source=('http://byob.berkeley.edu/BYOB_3_1_1_110519_w_changes.zip'
12     'http://byob.berkeley.edu/byoblib.tgz'
13     'http://byob.berkeley.edu/byob.debian')
14 md5sums=('5e357f439b03f39beab3a58f4e062ca5'
15     '9d990558fe880d28960e7f631dd7d90a'
16     'da41804df6b71cecabed59180847b521')
18 build() {
19     cd $srcdir
20     mkdir -p usr/{lib,share}/scratch
22     unzip -q BYOB_3_1_1_110519_w_changes.zip -d usr/lib/scratch
23     
24     bsdtar xzf byoblib.tgz -C usr/share/scratch
25     rm -rf usr/share/scratch/{Help,locale,README-SCRATCH.txt}
27     mkdir -p usr/share/licenses/byob
28     mv usr/share/scratch/license.txt usr/share/licenses/byob
30     install -D byob.debian usr/bin/byob
31     sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' usr/bin/byob
33     cp -Rp usr/ $pkgdir