[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Aug 17 16:33:55 UTC 2016


    Date: Wednesday, August 17, 2016 @ 16:33:55
  Author: felixonmars
Revision: 186907

addpkg: haskell-safecopy 0.9.1-1

Added:
  haskell-safecopy/
  haskell-safecopy/repos/
  haskell-safecopy/trunk/
  haskell-safecopy/trunk/PKGBUILD

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

Added: haskell-safecopy/trunk/PKGBUILD
===================================================================
--- haskell-safecopy/trunk/PKGBUILD	                        (rev 0)
+++ haskell-safecopy/trunk/PKGBUILD	2016-08-17 16:33:55 UTC (rev 186907)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=safecopy
+pkgname=haskell-safecopy
+pkgver=0.9.1
+pkgrel=1
+pkgdesc="Binary serialization with version control."
+url="http://acid-state.seize.it/safecopy"
+license=('custom:PublicDomain')
+arch=('i686' 'x86_64')
+depends=('ghc=8.0.1' 'haskell-cereal' 'haskell-old-time' 'haskell-text' 'haskell-vector')
+source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+md5sums=('9eba38cfa1b3e9827a174043b8401ad3')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+}


Property changes on: haskell-safecopy/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list