[arch-commits] Commit in haskell-postgresql-binary/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Aug 16 09:19:48 UTC 2017
Date: Wednesday, August 16, 2017 @ 09:19:47
Author: felixonmars
Revision: 251302
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-postgresql-binary/repos/community-staging-i686/
haskell-postgresql-binary/repos/community-staging-i686/PKGBUILD
(from rev 251301, haskell-postgresql-binary/trunk/PKGBUILD)
haskell-postgresql-binary/repos/community-staging-x86_64/
haskell-postgresql-binary/repos/community-staging-x86_64/PKGBUILD
(from rev 251301, haskell-postgresql-binary/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
Copied: haskell-postgresql-binary/repos/community-staging-i686/PKGBUILD (from rev 251301, haskell-postgresql-binary/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-16 09:19:47 UTC (rev 251302)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=postgresql-binary
+pkgname=haskell-postgresql-binary
+pkgver=0.12.1
+pkgrel=30
+pkgdesc="Encoders and decoders for the PostgreSQL's binary format"
+url="https://github.com/nikita-volkov/postgresql-binary"
+license=("MIT")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-aeson" "haskell-base-prelude" "haskell-binary-parser"
+ "haskell-bytestring-strict-builder" "haskell-loch-th" "haskell-network-ip"
+ "haskell-placeholders" "haskell-scientific" "haskell-text" "haskell-unordered-containers"
+ "haskell-uuid" "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('b4af6c71593f130da0ff6c462682fb570a4bd8108809eeb7a8cca45e2e340fd815dd3a94d72293a60f2072ed16f68bcb25a33009e742eca1383b934c4700f306')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-postgresql-binary/repos/community-staging-x86_64/PKGBUILD (from rev 251301, haskell-postgresql-binary/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-16 09:19:47 UTC (rev 251302)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=postgresql-binary
+pkgname=haskell-postgresql-binary
+pkgver=0.12.1
+pkgrel=30
+pkgdesc="Encoders and decoders for the PostgreSQL's binary format"
+url="https://github.com/nikita-volkov/postgresql-binary"
+license=("MIT")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-aeson" "haskell-base-prelude" "haskell-binary-parser"
+ "haskell-bytestring-strict-builder" "haskell-loch-th" "haskell-network-ip"
+ "haskell-placeholders" "haskell-scientific" "haskell-text" "haskell-unordered-containers"
+ "haskell-uuid" "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('b4af6c71593f130da0ff6c462682fb570a4bd8108809eeb7a8cca45e2e340fd815dd3a94d72293a60f2072ed16f68bcb25a33009e742eca1383b934c4700f306')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list