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

Felix Yan felixonmars at archlinux.org
Wed Feb 14 18:37:45 UTC 2018


    Date: Wednesday, February 14, 2018 @ 18:37:44
  Author: felixonmars
Revision: 294520

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-zip-archive/repos/community-staging-x86_64/
  haskell-zip-archive/repos/community-staging-x86_64/PKGBUILD
    (from rev 294519, haskell-zip-archive/trunk/PKGBUILD)

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

Copied: haskell-zip-archive/repos/community-staging-x86_64/PKGBUILD (from rev 294519, haskell-zip-archive/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-14 18:37:44 UTC (rev 294520)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=zip-archive
+pkgname=haskell-zip-archive
+pkgver=0.3.2.3
+pkgrel=1
+pkgdesc="Library for creating and modifying zip archives."
+url="https://github.com/jgm/zip-archive"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-digest' 'haskell-mtl' 'haskell-old-time' 'haskell-temporary'
+         'haskell-text' 'haskell-zlib')
+makedepends=('ghc' 'haskell-hunit' 'unzip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jgm/zip-archive/archive/$pkgver.tar.gz")
+sha512sums=('f63ae19c22467714d548a444483bc867c785c1a7dd24b321909c208f5b8a72e0152a0c76bedb2b3334fd84bb7ad48fe2c2455b553278004c9a9090f5f071f8e3')
+
+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 \
+            -f-executable -fsplitbase
+    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