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

Felix Yan felixonmars at archlinux.org
Sun Aug 30 18:56:03 UTC 2020


    Date: Sunday, August 30, 2020 @ 18:56:02
  Author: felixonmars
Revision: 692949

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 692948, haskell-postgresql-libpq/trunk/PKGBUILD)

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

Copied: haskell-postgresql-libpq/repos/community-staging-x86_64/PKGBUILD (from rev 692948, haskell-postgresql-libpq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-30 18:56:02 UTC (rev 692949)
@@ -0,0 +1,44 @@
+# 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=12
+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')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *4.13/<5/' $_hkgname.cabal
+}
+
+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 $MAKEFLAGS
+    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