Date: Monday, February 5, 2018 @ 06:12:39
  Author: felixonmars
Revision: 289117

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-contravariant-extras/repos/community-staging-x86_64/
  haskell-contravariant-extras/repos/community-staging-x86_64/PKGBUILD
    (from rev 289116, haskell-contravariant-extras/trunk/PKGBUILD)

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

Copied: haskell-contravariant-extras/repos/community-staging-x86_64/PKGBUILD 
(from rev 289116, haskell-contravariant-extras/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-02-05 06:12:39 UTC (rev 289117)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=contravariant-extras
+pkgname=haskell-contravariant-extras
+pkgver=0.3.3.1
+pkgrel=12
+pkgdesc="Extras for the \"contravariant\" package"
+url="https://github.com/nikita-volkov/contravariant-extras";
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-base-prelude" "haskell-contravariant" 
"haskell-tuple-th")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('23656af8fd866b2459fe9e2b503d814316213f0bff5c92fbb1af1f64e27faceb81f07ce92eb82a9766e47c9b9bc0342fa7ede424c470af9de042d612b9801c26')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --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
+}
+
+package() {
+    cd "${srcdir}/${_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"
+}

Reply via email to