Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
haskell-wherefrom-compat


Commits:
d0bc1bfe by Felix Yan at 2025-09-29T06:08:17+00:00
upgpkg: 0.1.1.1-5: rebuild with base-compat 0.14.1, base-compat-batteries 
0.14.1 (rebuild pass 1, specified --nocheck)

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,14 +1,14 @@
 pkgbase = haskell-wherefrom-compat
        pkgdesc = A compatibility layer for GHC's 'wherefrom' function
        pkgver = 0.1.1.1
-       pkgrel = 4
+       pkgrel = 5
        url = https://codeberg.org/teo/wherefrom-compat.git
        arch = x86_64
        license = BSD-2-Clause
+       checkdepends = haskell-tasty
+       checkdepends = haskell-tasty-hunit
        makedepends = ghc
        makedepends = uusi
-       makedepends = haskell-tasty
-       makedepends = haskell-tasty-hunit
        depends = ghc-libs
        source = 
https://hackage.haskell.org/packages/archive/wherefrom-compat/0.1.1.1/wherefrom-compat-0.1.1.1.tar.gz
        sha256sums = 
c1e3e22e9730a683a7fbc450b5944d97dc34650af8a8c72000170d56ca9eb388


=====================================
PKGBUILD
=====================================
@@ -3,13 +3,14 @@
 _hkgname=wherefrom-compat
 pkgname=haskell-wherefrom-compat
 pkgver=0.1.1.1
-pkgrel=4
+pkgrel=5
 pkgdesc="A compatibility layer for GHC's 'wherefrom' function"
 url="https://codeberg.org/teo/wherefrom-compat.git";
 license=("BSD-2-Clause")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc' 'uusi' 'haskell-tasty' 'haskell-tasty-hunit')
+makedepends=('ghc' 'uusi')
+checkdepends=('haskell-tasty' 'haskell-tasty-hunit')
 
source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
 sha256sums=('c1e3e22e9730a683a7fbc450b5944d97dc34650af8a8c72000170d56ca9eb388')
 
@@ -21,8 +22,14 @@ prepare() {
 build() {
   cd $_hkgname-$pkgver
 
+  if (( CHECKFUNC )); then
+    _opts=('--enable-tests')
+  else
+    _opts=('--disable-tests')
+  fi
+
   runhaskell Setup configure -O --enable-shared --enable-debug-info 
--enable-executable-dynamic --disable-library-vanilla \
-    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname 
--enable-tests \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname 
"${_opts[@]}" \
     --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
     --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
     --ghc-option='-pie' 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-wherefrom-compat/-/commit/d0bc1bfe2f77df09f44b187ff61e6881deb99238

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-wherefrom-compat/-/commit/d0bc1bfe2f77df09f44b187ff61e6881deb99238
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to