summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69bad80f099ff2f2c318fcb14e7ec5d14bfba530 (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
40
41
# Contributor: Samadi van Koten
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=chicken-git
pkgver=5.1.1.r5049.126a315f
pkgrel=1
pkgdesc='Feature rich R5RS Scheme compiler and interpreter'
arch=('x86_64')
url='http://call-cc.org/'
license=('custom:bsd')
depends=('chicken')
makedepends=('git')
conflicts=('chicken')
provides=('chicken')
source=('git://code.call-cc.org/chicken-core.git')
sha256sums=('SKIP')
options=('staticlibs')

pkgver() {
  cd chicken-core
  echo "$(cat buildversion).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd chicken-core
  make PLATFORM=linux \
       CSC_PROGRAM=chicken-csc \
       CSI_PROGRAM=chicken-csi \
       PREFIX='/usr'
}

package() {
  cd chicken-core
  make PLATFORM=linux \
       DESTDIR="$pkgdir/" \
       PREFIX='/usr' \
       CSC_PROGRAM=chicken-csc \
       CSI_PROGRAM=chicken-csi install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  rmdir "$pkgdir"/usr/share/chicken/doc/manual
}