summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfca5a304b4356ebe1341d7b0bb0df8360522001 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=artanis
_pkgver=0.2.12-f39e-dirty
pkgver=${_pkgver//-/_}
pkgrel=1
pkgdesc="A fast monolithic web-framework of Scheme"
url="http://web-artanis.com/"
depends=('guile')
arch=('x86_64')
license=('GPL')
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-${_pkgver}.tar.bz2")
md5sums=('b2306e4ae14c75d5bb9ee829d58d0612')
options=('!strip')

build() {
  cd $pkgname-$_pkgver 
  GUILE_EFFECTIVE_VERSION=2.2 ./configure --prefix=/usr
  make
  make docs
}

check() {
  cd $pkgname-$_pkgver
  export GUILE_LOAD_PATH=$GUILE_LOAD_PATH:.
  guile -c '(display (@ (artanis artanis) artanis-version))'
}

package() {
  cd $pkgname-$_pkgver
  make DESTDIR=$pkgdir install
  # repair
  cp -r $pkgdir/{share,bin} $pkgdir/usr
  rm -r $pkgdir/{share,bin}
}