summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ef5c113e4581fe1d58c05ec4c0ff610b574d3de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Erick Pires <rckkas@gmail.com>
# Contributor: Laurent Laffont <laurent.laffont@gmail.com>

pkgname=phratch
pkgver=4.1
pkgrel=1
pkgdesc="Phratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art — and share your creations on the web. Port of Scratch on Pharo."
arch=(i686 x86_64)
source=($pkgname-$pkgver.tar.gz)
url="http://www.phratch.com"
license=('MIT')
makedepends=('gendesk')
depends=('pharo-vm')

source=('Phratch.zip::http://phratch.com/download/Phratch4.1-linux.zip' 'phratch.desktop')

md5sums=('aec0d828e291ebbe0a225d5b12576c80' '97c22472ed23597881c547a67c8eee95')

prepare() {
    gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc"
}


package() {
    cd $srcdir/
    mkdir -p $pkgdir/usr/share/phratch/
    unzip Phratch.zip -d $pkgdir/usr/share/phratch/

    mkdir -p $pkgdir/usr/bin/
    mkdir -p $pkgdir/usr/share/pixmaps/

    chgrp users $pkgdir/usr/share/phratch/Phratch/shared/Pharo4.0.changes
    chmod 775 $pkgdir/usr/share/phratch/Phratch/shared/Pharo4.0.changes

    ln -s /usr/share/phratch/Phratch/phratch $pkgdir/usr/bin/phratch

    cp $pkgdir/usr/share/phratch/Phratch/icons/Pharo.png $pkgdir/usr/share/pixmaps/$pkgname.png
    install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}