[arch-commits] Commit in haskell-cairo/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 27 02:34:03 UTC 2021
Date: Thursday, May 27, 2021 @ 02:34:03
Author: felixonmars
Revision: 947815
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-cairo/repos/community-staging-x86_64/
haskell-cairo/repos/community-staging-x86_64/PKGBUILD
(from rev 947814, haskell-cairo/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 947814, haskell-cairo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-05-27 02:34:03 UTC (rev 947815)
@@ -0,0 +1,37 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-cairo
+pkgver=0.13.8.1
+pkgrel=86
+pkgdesc="Binding to the cairo library for Gtk2Hs."
+url="https://hackage.haskell.org/package/cairo"
+license=('LGPL2.1')
+arch=('x86_64')
+depends=('ghc-libs' 'cairo' 'haskell-utf8-string')
+makedepends=("haskell-gtk2hs-buildtools" "mesa" 'ghc')
+conflicts=('gtk2hs-cairo')
+provides=('gtk2hs-cairo')
+replaces=('gtk2hs-cairo')
+source=("https://hackage.haskell.org/packages/archive/cairo/${pkgver}/cairo-${pkgver}.tar.gz")
+sha512sums=('9c4ec738fe6e335f635c3fa47a26edb9264ec5a9713ff8c0109f2cf321e21331009402d3715321b63f5423e32ad90a0dd3ca9ca83544d554be5463c9784ab727')
+
+build() {
+ cd "${srcdir}/cairo-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ 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 "${srcdir}/cairo-${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"
+}
More information about the arch-commits
mailing list