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

Felix Yan felixonmars at archlinux.org
Thu Jun 17 21:39:42 UTC 2021


    Date: Thursday, June 17, 2021 @ 21:39:42
  Author: felixonmars
Revision: 964800

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

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

Copied: haskell-postgresql-libpq/repos/community-staging-x86_64/PKGBUILD (from rev 964799, haskell-postgresql-libpq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-17 21:39:42 UTC (rev 964800)
@@ -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.3
+pkgrel=5
+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' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('2a600ebc694fde0bd1bb9760113ce9c7dcbad1a447c46356b1174ee7a76e910955c265a2ace5e687eb36f11a57a4ec832178706fa878695cc848df3dc9833562')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    uusi -u base $_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