summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4bd4b780baff29ea835091b1f0419dc920a13a3 (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
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com>
pkgname=rebol
pkgver=2.7.8
pkgrel=4
pkgdesc="A cross-platform data exchange language and a multi-paradigm dynamic programming language"
arch=('i686' 'x86_64')
url="http://www.rebol.com/"
license=('custom:REBOL End User License')
groups=('devel')
makedepends=('wget')
provides=('rebol')
options=('!strip')
_source="http://www.rebol.com/downloads/v278/rebol-core-278-4-2.tar.gz"
_license="http://www.rebol.com/license.html"

if [ "$CARCH" == x86_64 ]; then
#  depends+=(lib32-glibc)
  _source="http://rebol.com/downloads/v278/rebol-core-278-4-10.tar.gz"
fi

build(){
  _arc=$(basename $_source) 
  if [ ! -f $_arc ]; then
    wget $_source
  fi
  tar xvfz $_arc  
  if [ ! -f $(basename $_license) ]; then
    wget $_license
  fi
}

package() {
  install -Dm755 $(find $srcdir -type f -name rebol) $pkgdir/usr/bin/rebol 
  install -Dm644 "$srcdir"/license.html "$pkgdir"/usr/share/licenses/"$pkgname"/license.html
}

# vim:set ts=2 sw=2 et: