[arch-commits] Commit in haskell-postgresql-libpq/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Dec 9 22:28:45 UTC 2018


    Date: Sunday, December 9, 2018 @ 22:28:44
  Author: felixonmars
Revision: 413357

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-postgresql-libpq/repos/community-staging-x86_64/
  haskell-postgresql-libpq/repos/community-staging-x86_64/PKGBUILD
    (from rev 413356, haskell-postgresql-libpq/trunk/PKGBUILD)

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

Copied: haskell-postgresql-libpq/repos/community-staging-x86_64/PKGBUILD (from rev 413356, haskell-postgresql-libpq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-12-09 22:28:44 UTC (rev 413357)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=postgresql-libpq
+pkgname=haskell-postgresql-libpq
+pkgver=0.9.4.2
+pkgrel=4
+pkgdesc="Low-level binding to libpq"
+url="https://github.com/phadej/postgresql-libpq"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' "postgresql-libs")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8bb811d8a25a09e232391412a78125a419db00bd293eaff8f0d3c652a65a5d312e3f42fae41babe9edf820adead5c243dc5a055ab16d7f9725c861b464a8d4f4')
+
+build() {
+    cd $_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 \
+            -f-use-pkg-config
+    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 $_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