[arch-commits] Commit in haskell-distributive/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jan 3 15:26:16 UTC 2021
Date: Sunday, January 3, 2021 @ 15:26:16
Author: felixonmars
Revision: 805397
upgpkg: haskell-distributive 0.6.2.1-1: rebuild with distributive 0.6.2.1
Modified:
haskell-distributive/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-03 15:21:58 UTC (rev 805396)
+++ PKGBUILD 2021-01-03 15:26:16 UTC (rev 805397)
@@ -3,22 +3,22 @@
_hkgname=distributive
pkgname=haskell-distributive
-pkgver=0.6.2
-pkgrel=67
+pkgver=0.6.2.1
+pkgrel=1
pkgdesc="Distributive functors -- Dual to Traversable"
url="https://github.com/ekmett/distributive/"
license=("BSD")
arch=('x86_64')
-depends=('ghc-libs' "haskell-base-orphans" "haskell-tagged")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-base-orphans' 'haskell-tagged')
+makedepends=('ghc' 'haskell-generic-deriving' 'haskell-hspec' 'haskell-hspec-discover')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('aff03270f8e9ce062ef6efb7d8cc27a811a286a6107dedd931850ff7abe271725cde8f27c1a7ea76c63a0888931a0ac058b5607d2097ef5b65b4ce95538d1fe1')
+sha512sums=('387c7b6e0b2f917fd68d52ffbc79b9db21e488629309bfaf0dc77450bfd37c0f7f8a29458532616b5395552f84f3727b462cb2876e5aca79101e2c752b26e0a7')
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 \
-ftagged -f-semigroups
runhaskell Setup build $MAKEFLAGS
@@ -28,6 +28,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list