[arch-commits] Commit in haskell-conversion-bytestring/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sat May 14 04:10:37 UTC 2022


    Date: Saturday, May 14, 2022 @ 04:10:36
  Author: felixonmars
Revision: 1203200

upgpkg: haskell-conversion-bytestring 1.0.1.1-1: rebuild with conversion-bytestring 1.0.1.1

Modified:
  haskell-conversion-bytestring/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-14 04:06:25 UTC (rev 1203199)
+++ PKGBUILD	2022-05-14 04:10:36 UTC (rev 1203200)
@@ -2,22 +2,27 @@
 
 _hkgname=conversion-bytestring
 pkgname=haskell-conversion-bytestring
-pkgver=1.0.1
-pkgrel=23
+pkgver=1.0.1.1
+pkgrel=1
 pkgdesc="Conversion instances for the bytestring library"
 url="https://github.com/nikita-volkov/conversion-bytestring"
 license=('MIT')
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-base-prelude' 'haskell-conversion')
-makedepends=('ghc')
+makedepends=('ghc' 'uusi')
 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('317f167c29935d2138f29ae38dab755559a5a0ef9d707d7d56a107fc4b9bd545a73cd873ee5fbb2bdac02670407bb2bec6cfe69c18775eba0d2c99e17cbbc3ca')
+sha512sums=('12945dbdeea1c3c98f060b2723df989c9f03c6d94afe74d82c3f81b3bf6b88860a6a0e2312f6a8d8fe37eabe35e9ac100b168ea26ad0209ee872f65f6a835aa3')
 
+prepare() {
+    cd $_hkgname-$pkgver
+    gen-setup
+}
+
 build() {
     cd $_hkgname-$pkgver
     
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
     runhaskell Setup build $MAKEFLAGS
     runhaskell Setup register --gen-script
@@ -26,6 +31,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
 package() {
     cd $_hkgname-$pkgver
     



More information about the arch-commits mailing list