[arch-commits] Commit in haskell-aeson-qq/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 1 03:36:18 UTC 2019
Date: Thursday, August 1, 2019 @ 03:36:17
Author: felixonmars
Revision: 495926
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-aeson-qq/repos/community-staging-x86_64/
haskell-aeson-qq/repos/community-staging-x86_64/PKGBUILD
(from rev 495925, haskell-aeson-qq/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: haskell-aeson-qq/repos/community-staging-x86_64/PKGBUILD (from rev 495925, haskell-aeson-qq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-08-01 03:36:17 UTC (rev 495926)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=aeson-qq
+pkgname=haskell-aeson-qq
+pkgver=0.8.2
+pkgrel=130
+pkgdesc="JSON quasiquoter for Haskell"
+url="https://github.com/sol/aeson-qq"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-compat' 'haskell-attoparsec' 'haskell-scientific'
+ 'haskell-vector' 'haskell-aeson' 'haskell-src-meta')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('bae36bcda3adc946253f373158a7e2b1604bb0d1dfb733295be08c2497c22d2b114849dc02a7846dac30394f112181fc8531837f005d004d8bdf6f3bd79724a3')
+
+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