[arch-commits] Commit in haskell-singletons/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 11 10:48:30 UTC 2018
Date: Thursday, October 11, 2018 @ 10:48:29
Author: felixonmars
Revision: 392358
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-singletons/repos/community-staging-x86_64/
haskell-singletons/repos/community-staging-x86_64/PKGBUILD
(from rev 392357, haskell-singletons/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: haskell-singletons/repos/community-staging-x86_64/PKGBUILD (from rev 392357, haskell-singletons/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-10-11 10:48:29 UTC (rev 392358)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=singletons
+pkgname=haskell-singletons
+pkgver=2.4.1
+pkgrel=4
+pkgdesc="A framework for generating singleton types"
+url="https://github.com/goldfirere/singletons"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-th-desugar' 'haskell-syb')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-golden')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('a44288fd023135780d2d5e77dd57a844f9f0535dc07b7fc3bf03e97ffa5ae655fe955f1429860526828729782364f14009efc136899c5a7532722d3540a1af1c')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ # TODO: make it work :/
+ # sed -i '/XEmptyCase/a \ , "-dynamic"' tests/SingletonsTestSuiteUtils.hs
+}
+
+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 || warning "Tests failed"
+}
+
+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