[arch-commits] Commit in haskell-reflection/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Dec 23 12:25:24 UTC 2019
Date: Monday, December 23, 2019 @ 12:25:23
Author: felixonmars
Revision: 539155
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-reflection/repos/community-staging-x86_64/
haskell-reflection/repos/community-staging-x86_64/PKGBUILD
(from rev 539154, haskell-reflection/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: haskell-reflection/repos/community-staging-x86_64/PKGBUILD (from rev 539154, haskell-reflection/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-12-23 12:25:23 UTC (rev 539155)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=reflection
+pkgname=haskell-reflection
+pkgver=2.1.5
+pkgrel=3
+pkgdesc="Reifies arbitrary terms into types that can be reflected back into terms"
+url="https://github.com/ekmett/reflection"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('4b7c909d61ba6d19f8e120e9e53de7bf9e3fb69038cfa7e3027160e4c6e22b415d1d0cce60476e14bf0a205b848d53f1751915bdebfe83a400003f4aaf6286eb')
+
+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 \
+ -ftemplate-haskell -f-slow
+ 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