summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6245b31fc8b7fa856daa50955c0f0cb64079ca01 (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
# Maintainer: Mort Yao <soi@mort.ninja>
# Contributor: Rudolf Olah <omouse@gmail.com>

pkgname=kawa-svn
pkgver=8533
pkgrel=1
pkgdesc="Kawa is a JVM-based Scheme compiler"
url="http://www.gnu.org/software/kawa/"

conflicts=('kawa')
provides=('kawa')
depends=('java-environment')
makedepends=('subversion' 'texinfo')
arch=('i686' 'x86_64')
license=('X11/MIT')

source=()
md5sums=()

_svntrunk=svn://sourceware.org/svn/kawa/trunk
_svnmod=kawa

build() {
  cd $startdir/src
  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  fi
  cd $startdir/src/$_svnmod
  ./configure --prefix=/usr
  make || return 1
}

package() {
  cd $startdir/src
  make DESTDIR=$startdir/pkg/ install
}