Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
haskell-prettyprinter-ansi-terminal


Commits:
82c67fba by Felix Yan at 2025-07-30T21:26:22+08:00
upgpkg: 1.1.3-227: rebuild with optparse-applicative 0.18.1.0 (rebuild pass 1, 
specified --nocheck)

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,12 +1,12 @@
 pkgbase = haskell-prettyprinter-ansi-terminal
        pkgdesc = ANSI terminal backend for the prettyprinter package.
        pkgver = 1.1.3
-       pkgrel = 226
+       pkgrel = 227
        url = 
https://github.com/quchen/prettyprinter/tree/master/prettyprinter-ansi-terminal
        arch = x86_64
        license = custom:BSD2
+       checkdepends = haskell-doctest
        makedepends = ghc
-       makedepends = haskell-doctest
        depends = ghc-libs
        depends = haskell-ansi-terminal
        depends = haskell-prettyprinter


=====================================
PKGBUILD
=====================================
@@ -3,21 +3,28 @@
 _hkgname=prettyprinter-ansi-terminal
 pkgname=haskell-prettyprinter-ansi-terminal
 pkgver=1.1.3
-pkgrel=226
+pkgrel=227
 pkgdesc="ANSI terminal backend for the prettyprinter package."
 
url="https://github.com/quchen/prettyprinter/tree/master/prettyprinter-ansi-terminal";
 license=('custom:BSD2')
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-prettyprinter')
-makedepends=('ghc' 'haskell-doctest')
+makedepends=('ghc')
+checkdepends=('haskell-doctest')
 
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
 
sha512sums=('985e965f78c767234b9f30e9cc1590d037e00d211385ebfa833b96f9b9aa092840e2587236d848c66ff1c58c97748f6ae9bd5cc02ea5175aa66d2654392ea1b6')
 
 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 \
             -f-buildReadme
     runhaskell Setup build $MAKEFLAGS



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-prettyprinter-ansi-terminal/-/commit/82c67fbac63a750be4236ec51e6cfa5d77889998

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-prettyprinter-ansi-terminal/-/commit/82c67fbac63a750be4236ec51e6cfa5d77889998
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to