Date: Wednesday, October 5, 2022 @ 20:28:29
  Author: felixonmars
Revision: 1321630

addpkg: haskell-hex 0.2.0-1

Modified:
  haskell-hex/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-05 20:25:19 UTC (rev 1321629)
+++ PKGBUILD    2022-10-05 20:28:29 UTC (rev 1321630)
@@ -3,22 +3,22 @@
 
 _hkgname=hex
 pkgname=haskell-hex
-pkgver=0.1.2
-pkgrel=13
+pkgver=0.2.0
+pkgrel=1
 pkgdesc="Convert strings into hexadecimal and back."
-url="https://hackage.haskell.org/package/${_hkgname}";
+url="https://github.com/taruti/haskell-hex";
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs')
 makedepends=('ghc')
 
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
-sha512sums=('30608035819260b94759d644644b92a7145defa000685de53323ab4e765250ead410010e4ab96e99b97af647e97394c86edaf92cb811aa5df8228669b8ff9b4d')
+sha512sums=('7edbeabbc028d328b86b89f992fcf7bd0a3aaa8e02a2a04b0c470387f2b299dc8c1c9ddbff0c8b04afd4e87e7e8495e16b87d1455a37b32361894e2dc2e8b553')
 
 build() {
     cd $_hkgname-$pkgver
     
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -27,6 +27,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
     

Reply via email to