Date: Monday, March 12, 2018 @ 16:47:52
  Author: felixonmars
Revision: 306429

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-safecopy/repos/community-staging-x86_64/PKGBUILD (from rev 
306428, haskell-safecopy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-12 16:47:52 UTC (rev 306429)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=safecopy
+pkgname=haskell-safecopy
+pkgver=0.9.4
+pkgrel=1
+pkgdesc="Binary serialization with version control."
+url="http://acid-state.seize.it/safecopy";
+license=('custom:PublicDomain')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-cereal' 'haskell-old-time' 'haskell-text' 
'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('de0da88d05f91a09c64184a6e5d15102d7a715781491d6fc68fb8f0cc26334dcf51f47d06ca8193e95101656aa622b43a308dd2a356eef2dc3755c366bc56b7e')
+
+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}"
+}

Reply via email to