File PKGBUILD of Package chicken

# $Id$
# Maintainer: Daniel Ziltener <dziltener@lyrion.ch>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: <david@pako.st>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=chicken
pkgver=5.2.0
pkgrel=1
pkgdesc='Compiler for R5RS scheme, featuring handy extensions'
arch=('x86_64' 'i686')
url='http://call-cc.org/'
license=('BSD')
depends=('gcc')
options=('staticlibs')
source=("http://code.call-cc.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.gz")
sha256sums=('819149c8ce7303a9b381d3fdc1d5765c5f9ac4dee6f627d1652f47966a8780fa')

build() {
  CFLAGS="-Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-label -Wno-unused-function -ffat-lto-objects" make -C "$pkgname-$pkgver" -j1 PLATFORM=linux PREFIX=/usr
}

package() {
  cd "$pkgname-$pkgver"
  CFLAGS="-Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-label -Wno-unused-function -ffat-lto-objects" make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
openSUSE Build Service is sponsored by