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


Commits:
8401250e by Felix Yan at 2024-02-26T12:36:45+00:00
upgpkg: 0.7.0.7-2: rebuild with GHC 9.2.8, doctest-parallel 0.3.1, 
filepath-bytestring 1.4.2.1.13, ghc-lib-parser 9.2.8.20230729, 
ghc-lib-parser-ex 9.2.1.1, resolv 0.2.0.2

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,12 @@
 pkgbase = haskell-docopt
        pkgdesc = A command-line interface parser that will make you smile
        pkgver = 0.7.0.7
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/docopt/docopt.hs
        arch = x86_64
        license = MIT
        makedepends = ghc
+       makedepends = uusi
        makedepends = haskell-hunit
        makedepends = haskell-aeson
        makedepends = haskell-ansi-terminal


=====================================
PKGBUILD
=====================================
@@ -4,24 +4,29 @@
 _hkgname=docopt
 pkgname=haskell-docopt
 pkgver=0.7.0.7
-pkgrel=1
+pkgrel=2
 pkgdesc="A command-line interface parser that will make you smile"
 url="https://github.com/docopt/docopt.hs";
 license=("MIT")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc' 'haskell-hunit' 'haskell-aeson' 'haskell-ansi-terminal' 
'haskell-split')
+makedepends=('ghc' 'uusi' 'haskell-hunit' 'haskell-aeson' 
'haskell-ansi-terminal' 'haskell-split')
 
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
 
sha512sums=('8fe1fe8307e2400e5f411fdd871bb0a431596e52185533043359b350fd183e5e9b62d1d22fa6e7433d20f9779848dae0c240cebd9dc83a08507c8fe231354762')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    uusi -u template-haskell
+}
+
 build() {
     cd $_hkgname-$pkgver
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname 
--enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
             -ftemplate-haskell
-    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
@@ -30,7 +35,7 @@ build() {
 
 check() {
     cd $_hkgname-$pkgver
-    runhaskell Setup test
+    runhaskell Setup test --show-details=direct
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-docopt/-/commit/8401250ed440ce6b45fb1fc8bb00d1ecb6d40c6a

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


Reply via email to