[arch-commits] Commit in chicken/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Tue Feb 19 15:45:16 UTC 2019


    Date: Tuesday, February 19, 2019 @ 15:45:15
  Author: arodseth
Revision: 434553

upgpkg: chicken 5.0.0-2

Modified:
  chicken/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-19 14:42:22 UTC (rev 434552)
+++ PKGBUILD	2019-02-19 15:45:15 UTC (rev 434553)
@@ -4,25 +4,39 @@
 
 pkgname=chicken
 pkgver=5.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Feature rich R5RS Scheme compiler and interpreter'
-arch=('x86_64')
-url='http://call-cc.org/'
-conflicts=('mono') # /usr/bin/csc
-license=('BSD')
-depends=('tk')
-makedepends=('chicken')
-options=('staticlibs')
+arch=(x86_64)
+url='https://call-cc.org/'
+license=(BSD)
+depends=(tk)
+makedepends=(chicken)
+options=(staticlibs)
 source=("https://code.call-cc.org/releases/$pkgver/$pkgname-$pkgver.tar.gz")
 sha256sums=('a8b94bb94c5d6a4348cedd75dc334ac80924bcd9a7a7a3d6af5121e57ef66595')
 
 build() {
-  make -C "$pkgname-$pkgver" PLATFORM=linux PREFIX=/usr -j1
+  make -j1 -C $pkgname-$pkgver \
+    PLATFORM=linux \
+    CSC_PROGRAM=chicken-csc \
+    CSI_PROGRAM=chicken-csi \
+    PREFIX=/usr
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  make PLATFORM=linux DESTDIR="$pkgdir" PREFIX=/usr -j1 install
+  cd $pkgname-$pkgver
+
+  # Chicken had csc and csi first, but then mono introduced a conflict and
+  # does not seem to want to change this. OpenBSD renamed csc and csi to
+  # chicken-csc and chicken-csi 2018-12-12.
+  make -j1 \
+    PLATFORM=linux \
+    DESTDIR="$pkgdir" \
+    PREFIX=/usr \
+    CSC_PROGRAM=chicken-csc \
+    CSI_PROGRAM=chicken-csi \
+    install
+
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 



More information about the arch-commits mailing list