[arch-commits] Commit in haskell-singletons/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Feb 21 15:25:38 UTC 2020


    Date: Friday, February 21, 2020 @ 15:25:38
  Author: felixonmars
Revision: 577647

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 577646, haskell-singletons/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: haskell-singletons/repos/community-staging-x86_64/PKGBUILD (from rev 577646, haskell-singletons/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-21 15:25:38 UTC (rev 577647)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=singletons
+pkgname=haskell-singletons
+pkgver=2.6
+pkgrel=19
+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' 'haskell-turtle')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('6019bcd5e60718055d7a1369902c27b27a3b58c86049eaac4411bd347670f6e9835cfb680ea2126b6b4614688cb1e9ea9025dc590a9df83e1e654bb115db600d')
+
+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