[arch-commits] Commit in haskell-x509-validation/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Mar 4 07:27:26 UTC 2018
Date: Sunday, March 4, 2018 @ 07:27:22
Author: felixonmars
Revision: 302315
upgpkg: haskell-x509-validation 1.6.10-1
rebuild with x509-validation,1.6.10
Modified:
haskell-x509-validation/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-04 05:45:31 UTC (rev 302314)
+++ PKGBUILD 2018-03-04 07:27:22 UTC (rev 302315)
@@ -4,24 +4,24 @@
_hkgname=x509-validation
pkgname=haskell-x509-validation
-pkgver=1.6.9
-pkgrel=30
+pkgver=1.6.10
+pkgrel=1
pkgdesc="X.509 Certificate and CRL validation"
url="https://github.com/vincenthz/hs-certificate"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-asn1-encoding" "haskell-asn1-types" "haskell-byteable" "haskell-cryptonite"
- "haskell-data-default-class" "haskell-hourglass" "haskell-memory" "haskell-mtl"
- "haskell-pem" "haskell-x509" "haskell-x509-store")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-asn1-encoding' 'haskell-asn1-types' 'haskell-byteable'
+ 'haskell-cryptonite' 'haskell-data-default-class' 'haskell-hourglass' 'haskell-memory'
+ 'haskell-mtl' 'haskell-pem' 'haskell-x509' 'haskell-x509-store')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('8cc00db183ded5d37654fe6643c0a90639c5d43e8e78b403b6bf24fae94acc070e1f2e9eea2044c4b350687f41bbc45c9130e4011e8d77633062de870b5d4be1')
+sha512sums=('f46dc7aeea1c1650ce8711d87f95d2b61bd0ead64df5176aa4ba0a9be435c4aa76a7a2f02acb58b7cdafd533a387e43ffb7078d7c84b1f5b90dd76b68da248ae')
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
@@ -30,8 +30,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