[arch-commits] Commit in haskell-vector-binary-instances/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Oct 15 13:23:40 UTC 2018


    Date: Monday, October 15, 2018 @ 13:23:40
  Author: felixonmars
Revision: 394137

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-vector-binary-instances/repos/community-staging-x86_64/
  haskell-vector-binary-instances/repos/community-staging-x86_64/PKGBUILD
    (from rev 394136, haskell-vector-binary-instances/trunk/PKGBUILD)

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

Copied: haskell-vector-binary-instances/repos/community-staging-x86_64/PKGBUILD (from rev 394136, haskell-vector-binary-instances/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-10-15 13:23:40 UTC (rev 394137)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=vector-binary-instances
+pkgname=haskell-vector-binary-instances
+pkgver=0.2.5
+pkgrel=2
+pkgdesc="Instances of Data.Binary for vector"
+url="https://github.com/bos/vector-binary-instances"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('5a352b1316a10cdc8928ebe267a35d9ccea62aaedcc9978c84400d84b023e38daa734f52535229f51db6d7b5da0a7757b2d8b3eaf346d57717e9aac0298736bd')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/<.*4.11/<5/' $_hkgname.cabal
+}
+
+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"
+}



More information about the arch-commits mailing list