updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / self / PKGBUILD
blobd296b86008a8f8d9050d64cae7979f3031a38409
1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: http://parcs.ath.cx:99/pub/patrick/to.php?self
4 pkgname=self
5 pkgver=4.4
6 pkgrel=3
7 pkgdesc="a prototype-based dynamic object-oriented programming language"
8 url="http://selflanguage.org/"
9 arch=('i686' 'x86_64')
10 license=('BSD')
11 source=("http://selflanguage.org/files/releases/4.4/Self-${pkgver}.tar.gz"
12         "http://selflanguage.org/files/releases/4.4/Clean-4.4.snap"
13         "http://selflanguage.org/files/releases/4.4/Demo-4.4.snap")
14 md5sums=('9d7afe2c0b44c8fb9a8016ae1786cb34'
15          'ed7bea51882d92eba65cf37501ad4eef'
16          '160ab5fd1ea37918bdf677b71e9edb9e')
17 if [ "$CARCH" = "x86_64" ]; then
18     depends=(lib32-libx11 lib32-gcc-libs)
19 else
20     depends=(libx11)
23 package() {
24     cd "$srcdir/Self-${pkgver}"
25     install -Dm755 Self "${pkgdir}/usr/share/self/0/Self"
26     cd ..
27     for snapshot in Clean* Demo*; do
28       install -m644 "${snapshot}" "${pkgdir}/usr/share/self/0"
29     done
30     mkdir -p "${pkgdir}/usr/bin"
31     ln -s "/usr/share/self/0/Self" "${pkgdir}/usr/bin"