[arch-commits] Commit in haskell-aeson-compat/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Aug 7 04:03:05 UTC 2018
Date: Tuesday, August 7, 2018 @ 04:03:05
Author: felixonmars
Revision: 370014
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-aeson-compat/repos/community-staging-x86_64/
haskell-aeson-compat/repos/community-staging-x86_64/PKGBUILD
(from rev 370013, haskell-aeson-compat/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: haskell-aeson-compat/repos/community-staging-x86_64/PKGBUILD (from rev 370013, haskell-aeson-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-07 04:03:05 UTC (rev 370014)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=aeson-compat
+pkgname=haskell-aeson-compat
+pkgver=0.3.8
+pkgrel=14
+pkgdesc="Compatibility layer for aeson"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-attoparsec-iso8601'
+ 'haskell-base-compat' 'haskell-exceptions' 'haskell-hashable' 'haskell-scientific'
+ 'haskell-tagged' 'haskell-time-locale-compat' 'haskell-unordered-containers'
+ 'haskell-vector')
+makedepends=('ghc' 'haskell-base-orphans' 'haskell-quickcheck' 'haskell-quickcheck-instances'
+ 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('36687acb148fd7c71a0cc99f77116518ef539754f151707cc5f6c1b4dfb7b3245338b32d83d68a3e0663d92644fb6d4eadff2d2ba88cad1a22b98aa3c35cc215')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/<.*0.8/<1/' $_hkgname.cabal
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --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
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ 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"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list