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

Felix Yan felixonmars at archlinux.org
Sun Jun 30 09:54:30 UTC 2019


    Date: Sunday, June 30, 2019 @ 09:54:29
  Author: felixonmars
Revision: 486197

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-dlist/repos/community-staging-x86_64/
  haskell-dlist/repos/community-staging-x86_64/PKGBUILD
    (from rev 486196, haskell-dlist/trunk/PKGBUILD)

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

Copied: haskell-dlist/repos/community-staging-x86_64/PKGBUILD (from rev 486196, haskell-dlist/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-06-30 09:54:29 UTC (rev 486197)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Don Stewart <dons at galois.com>
+# Contributor: Lex Black <autumn-wind at web dot de>
+
+_hkgname=dlist
+pkgname=haskell-dlist
+pkgver=0.8.0.6
+pkgrel=8
+pkgdesc="Differences lists"
+url="https://hackage.haskell.org/package/dlist"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('67df94aa155229b58297ba11cdf3d7846e988d61a3d49ba1573c99a85afbab0ca0f0a793be514704ffec63f655ec7e77ae5c7301d4938d8752067b5ae5146783')
+
+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