# Contributor: Sergei Lukin # Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=chicken pkgver=4.12.0 pkgrel=0 pkgdesc="R5RS and R7RS compatible scheme compiler and interpreter" url="http://call-cc.org/" arch="all" license="custom" depends="gcc libc-dev $pkgname-dev $pkgname-libs" depends_dev="" makedepends="$depends_dev" install="" subpackages="$pkgname-doc $pkgname-libs $pkgname-dev $pkgname-feathers::noarch" source="http://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz" # secfixes: # 4.11.1: # - CVE-2016-6830 # - CVE-2016-6831 builddir="$srcdir"/$pkgname-$pkgver build() { # chicken does not support parallel builds. make -j1 PLATFORM=linux PREFIX=/usr \ -C "$builddir" || return 1 } package() { # chicken does not support parallel installs. make -j1 PLATFORM=linux PREFIX=/usr DESTDIR="$pkgdir" \ -C "$builddir" install || return 1 # Move documentation to /usr/share/doc. mkdir -p "$pkgdir"/usr/share/doc/ mv "$pkgdir"/usr/share/$pkgname/doc \ "$pkgdir"/usr/share/doc/$pkgname || return 1 # Move license to /usr/share/licenses mkdir -p "$pkgdir"/usr/share/licenses/$pkgname mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/ || return 1 } feathers() { pkgdesc="A debugger for compiled chicken programs" depends="tk" mkdir -p "$subpkgdir"/usr/bin/ \ "$subpkgdir"/usr/share/chicken/ mv "$pkgdir"/usr/bin/feathers \ "$subpkgdir"/usr/bin/ || return 1 mv "$pkgdir"/usr/share/chicken/feathers.tcl \ "$subpkgdir"/usr/share/chicken/ || return 1 } sha512sums="190bdc9e53aa50e93419e2483fd5baf3e2ef3bebe4e605653f2aadd9b8bbc98b192cfbb64ab1c99eeefb13a7795757f013799963bfb775862d746ed5c93d602f chicken-4.12.0.tar.gz"