[arch-commits] Commit in haskell-adjunctions/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jan 30 11:25:55 UTC 2018
Date: Tuesday, January 30, 2018 @ 11:25:49
Author: felixonmars
Revision: 288236
upgpkg: haskell-adjunctions 4.4-1
rebuild with adjunctions,4.4
Modified:
haskell-adjunctions/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-30 11:15:25 UTC (rev 288235)
+++ PKGBUILD 2018-01-30 11:25:49 UTC (rev 288236)
@@ -4,25 +4,25 @@
_hkgname=adjunctions
pkgname=haskell-adjunctions
-pkgver=4.3
-pkgrel=45
+pkgver=4.4
+pkgrel=1
pkgdesc="Adjunctions and representable functors"
url="https://github.com/ekmett/adjunctions/"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-comonad" "haskell-contravariant" "haskell-distributive"
- "haskell-free" "haskell-mtl" "haskell-profunctors" "haskell-semigroupoids"
- "haskell-semigroups" "haskell-tagged" "haskell-transformers-compat"
- "haskell-void")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-comonad' 'haskell-contravariant' 'haskell-distributive'
+ 'haskell-free' 'haskell-mtl' 'haskell-profunctors' 'haskell-semigroupoids'
+ 'haskell-semigroups' 'haskell-tagged' 'haskell-transformers-compat'
+ 'haskell-void')
+makedepends=('ghc' 'haskell-generic-deriving' 'haskell-hspec')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('8045848e84627f4458b7784c5f50d81e6482daa9a9fea58eec32630cca825fc9a616474992b1ff74bb16f1ae4aeb464fa0ee1906d0e613f341138b39cda8ffa7')
+sha512sums=('30f4fb8a30d8428e032d322a9a627e7ebc44b2c737e87670907134a5aa6019145f2c3e6b2e7f8e00d5ffbe1ce4b4a5c812c3ee976257419d7d429b19db28918c')
build() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ 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
@@ -31,8 +31,13 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ cd $_hkgname-$pkgver
install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
More information about the arch-commits
mailing list