[arch-commits] Commit in haskell-simple-sendfile/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Dec 11 07:35:51 UTC 2017
Date: Monday, December 11, 2017 @ 07:35:50
Author: felixonmars
Revision: 273658
upgpkg: haskell-simple-sendfile 0.2.26-1
rebuild with simple-sendfile,0.2.26
Modified:
haskell-simple-sendfile/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-11 07:32:02 UTC (rev 273657)
+++ PKGBUILD 2017-12-11 07:35:50 UTC (rev 273658)
@@ -4,22 +4,23 @@
_hkgname=simple-sendfile
pkgname=haskell-simple-sendfile
-pkgver=0.2.25
-pkgrel=7
+pkgver=0.2.26
+pkgrel=1
pkgdesc="Cross platform library for the sendfile system call"
url="https://hackage.haskell.org/package/${_hkgname}"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-network")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-network')
+makedepends=('ghc' 'haskell-hunit' 'haskell-conduit' 'haskell-conduit-extra' 'haskell-resourcet'
+ 'haskell-hspec')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('4e31bd6843e74988b5f132e77557e4db0da833cd7f0e8ee6dfa460a495afa1de18325deddb0ca71b959b704f090292ca4eb4c2bf06cd96fd27fc78a4d3f79eeb')
+sha512sums=('53692cb8eb79c0e1993af1e14c13659679a8613bc5631f6e172f2fe10ab2764f80edc5ef58fe5e8b9e836a4c7eaff49336c3c927ef742a64e3fb4b9b014e811f')
build() {
cd "${srcdir}/${_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 \
-fallow-bsd
runhaskell Setup build
@@ -29,9 +30,14 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd "${srcdir}/${_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"
runhaskell Setup copy --destdir="${pkgdir}"
More information about the arch-commits
mailing list