Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
haskell-os-string


Commits:
54c87090 by Felix Yan at 2024-09-03T20:53:38+03:00
upgpkg: 2.0.6-2: rebuild with ansi-terminal 0.11.5 (rebuild pass 1, specified 
--nocheck)

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,13 +1,13 @@
 pkgbase = haskell-os-string
        pkgdesc = Library for manipulating Operating system strings.
        pkgver = 2.0.6
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/haskell/os-string
        arch = x86_64
        license = BSD
+       checkdepends = haskell-quickcheck
+       checkdepends = haskell-quickcheck-classes-base
        makedepends = ghc
-       makedepends = haskell-quickcheck
-       makedepends = haskell-quickcheck-classes-base
        depends = ghc-libs
        source = 
https://hackage.haskell.org/packages/archive/os-string/2.0.6/os-string-2.0.6.tar.gz
        sha256sums = 
22fcc7d5fc66676b5dfc57b714d2caf93cce2d5a79d242168352f9eb0fe2f18a


=====================================
PKGBUILD
=====================================
@@ -3,26 +3,33 @@
 _hkgname=os-string
 pkgname=haskell-os-string
 pkgver=2.0.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Library for manipulating Operating system strings."
 url="https://github.com/haskell/os-string";
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-classes-base')
+makedepends=('ghc')
+checkdepends=('haskell-quickcheck' 'haskell-quickcheck-classes-base')
 
source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
 sha256sums=('22fcc7d5fc66676b5dfc57b714d2caf93cce2d5a79d242168352f9eb0fe2f18a')
 
 build() {
   cd $_hkgname-$pkgver
 
+  if (( CHECKFUNC )); then
+    _opts=('--enable-tests')
+  else
+    _opts=('--disable-tests')
+  fi
+
   runhaskell Setup configure -O --enable-shared --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' 
 
-  runhaskell Setup build
+  runhaskell Setup build $MAKEFLAGS
   runhaskell Setup register --gen-script
   runhaskell Setup unregister --gen-script
   sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
@@ -31,7 +38,7 @@ build() {
 
 check() {
   cd $_hkgname-$pkgver
-  runhaskell Setup test
+  runhaskell Setup test --show-details=direct
 }
 
 package() {
@@ -42,4 +49,4 @@ package() {
   runhaskell Setup copy --destdir="$pkgdir"
   install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
   rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
-}
\ No newline at end of file
+}



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-os-string/-/commit/54c87090b57cd722204ebb8dd9c77d691b7ae38c

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-os-string/-/commit/54c87090b57cd722204ebb8dd9c77d691b7ae38c
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to