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

Jürgen Hötzel juergen at gemini.archlinux.org
Sat Dec 11 13:21:58 UTC 2021


    Date: Saturday, December 11, 2021 @ 13:21:57
  Author: juergen
Revision: 431863

upgpkg: bigloo 4.4c_2-1

Modified:
  bigloo/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-11 12:27:59 UTC (rev 431862)
+++ PKGBUILD	2021-12-11 13:21:57 UTC (rev 431863)
@@ -3,7 +3,8 @@
 # Contributor: Kevin Piche <kevin at archlinux.org>
 
 pkgname=bigloo
-pkgver=4.4a
+pkgver=4.4c_2
+_src_ver=${pkgver/_/-}
 pkgrel=1
 pkgdesc="Fast scheme compiler"
 arch=('x86_64')
@@ -13,17 +14,17 @@
 makedepends=('emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi' 'chrpath')
 optdepends=('emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi')
 options=('!makeflags')
-source=("ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('9159f323054fb45849f5de8f569d29245e4d7b10a5ac0b3ab352fb48ac52fc1c')
+source=("ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${pkgname}-${_src_ver}.tar.gz")
+sha256sums=('3e139639812f7cf9293e77ce250311a38a4a2cac516a7bfb38f964a06ef3300c')
 
 elisp_dir=/usr/share/emacs/site-lisp/bigloo
 
 prepare() {
-  sed -i 's/$(GCLIB)/c/' "${srcdir}/${pkgname}-${pkgver}/configure"
+  sed -i 's/$(GCLIB)/c/' "${srcdir}/${pkgname}-${_src_ver}/configure"
 }
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgname}-${_src_ver}"
   ./configure --prefix=/usr \
     --docdir=/usr/share/doc/bigloo \
     --mandir=/usr/share/man \
@@ -45,12 +46,12 @@
 }
 
 check() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgname}-${_src_ver}"
   make test
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgname}-${_src_ver}"
 
   make DESTDIR="${pkgdir}" install install-bee
   make -C manuals DESTDIR="${pkgdir}" install-bee
@@ -58,11 +59,11 @@
   # Remove references to the build root
   sed -e "s|^BOOTDIR=.*|BOOTDIR=/usr|g" \
       -e "s|^BOOTBINDIR=.*|BOOTBINDIR=/usr/bin|g" \
-      -e "s|^BOOTLIBDIR=.*|BOOTLIBDIR=/usr/lib/bigloo/${pkgver}|g" \
+      -e "s|^BOOTLIBDIR=.*|BOOTLIBDIR=/usr/lib/bigloo/${_src_ver}|g" \
       -e "s|^BGLBUILDBINDIR=.*|BGLBUILDBINDIR=/usr/bin|g" \
-      -e "s|^BGLBUILDLIBDIR=.*|BGLBUILDLIBDIR=/usr/lib/bigloo/${pkgver}|g" \
+      -e "s|^BGLBUILDLIBDIR=.*|BGLBUILDLIBDIR=/usr/lib/bigloo/${_src_ver}|g" \
       -e "s|^\(BIGLOO=.*\)\.sh|\1|" \
       -e "s|^\(BGL.*=.*\)\.sh|\1|" \
-      -i  "${pkgdir}/usr/lib/bigloo/${pkgver}/Makefile.config"
+      -i  "${pkgdir}/usr/lib/bigloo/${_src_ver%-*}/Makefile.config"
 
 }



More information about the arch-commits mailing list