[arch-commits] Commit in haskell-reflection/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Mar 15 14:05:09 UTC 2020
Date: Sunday, March 15, 2020 @ 14:05:07
Author: felixonmars
Revision: 598087
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 598086, haskell-reflection/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: haskell-reflection/repos/community-staging-x86_64/PKGBUILD (from rev 598086, haskell-reflection/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-15 14:05:07 UTC (rev 598087)
@@ -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=18
+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