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

Alexander Rødseth arodseth at gemini.archlinux.org
Tue Jan 18 13:42:45 UTC 2022


    Date: Tuesday, January 18, 2022 @ 13:42:44
  Author: arodseth
Revision: 1108875

upgpkg: gambit-c 4.9.4-1

Modified:
  gambit-c/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-18 13:42:39 UTC (rev 1108874)
+++ PKGBUILD	2022-01-18 13:42:44 UTC (rev 1108875)
@@ -2,33 +2,36 @@
 # Contributor: Christian Babeux <christian.babeux at 0x80.ca>
 
 pkgname=gambit-c
-pkgver=4.9.3
-pkgrel=2
+pkgver=4.9.4
+pkgrel=1
 pkgdesc='Efficient implementation of the Scheme programming language'
 arch=(x86_64)
 url='https://github.com/gambit/gambit'
-license=(LGPL Apache)
+license=(Apache LGPL)
 options=(staticlibs)
-makedepends=(git)
-source=("$pkgname-$pkgver.tgz::https://www.iro.umontreal.ca/~${pkgname%-c}/download/${pkgname%-c}/v${pkgver%.*}/source/${pkgname/-c/-v}${pkgver//./_}-devel.tgz")
-sha256sums=('4321ea0042f349eef673d2607a39c24f72e223aaf63f60298fffb7365f60fe53')
+makedepends=(git setconf)
+source=("${pkgname/-c}-$pkgver.tar.gz::https://gambitscheme.org/latest/gambit-v${pkgver//./_}.tgz")
+b2sums=('f2d638a8ab901fb9d14d2f91291dd732e66913f18dc4e6c9c50af7aa1aafa49e97bdd7a704dfd1f14fa71aa16a859fe9b7a7bcbc5ee5953a1dac56966071148b')
 
+prepare() {
+  setconf -d ${pkgname/-c}-$pkgver/include/stamp-release.h \
+    ___STAMP_RELEASE_VERSION=\"v$pkgver\"
+}
+
 build() {
-  cd "${pkgname/-c/-v}${pkgver//./_}-devel"
-
+  cd ${pkgname/-c}-$pkgver
   ./configure \
-    --prefix=/usr \
     --docdir=/usr/share/doc/gambit-c \
+    --enable-gcc-opts \
+    --enable-single-host \
     --infodir=/usr/share/info \
     --libdir=/usr/lib/gambit-c \
-    --enable-gcc-opts \
-    --enable-single-host
+    --prefix=/usr
   make
 }
 
 package() {
-  make -C "${pkgname/-c/-v}${pkgver//./_}-devel" install DESTDIR="$pkgdir"
-
+  make -C ${pkgname/-c}-$pkgver install DESTDIR="$pkgdir"
   # /usr/bin/gsc conflicts with ghostscript
   mv "$pkgdir/usr/bin/gsc" "$pkgdir/usr/bin/gambitc"
   ln -sf /usr/bin/gambitc "$pkgdir/usr/bin/gsc-script"
@@ -35,4 +38,3 @@
 }
 
 # getver: github.com/gambit/gambit/releases/latest
-# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list