[arch-commits] Commit in haskell-postgresql-libpq/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Nov 15 00:10:16 UTC 2020
Date: Sunday, November 15, 2020 @ 00:10:16
Author: felixonmars
Revision: 754318
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 754317, haskell-postgresql-libpq/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: haskell-postgresql-libpq/repos/community-staging-x86_64/PKGBUILD (from rev 754317, haskell-postgresql-libpq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-15 00:10:16 UTC (rev 754318)
@@ -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.3
+pkgrel=1
+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=('2a600ebc694fde0bd1bb9760113ce9c7dcbad1a447c46356b1174ee7a76e910955c265a2ace5e687eb36f11a57a4ec832178706fa878695cc848df3dc9833562')
+
+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