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

Felix Yan felixonmars at archlinux.org
Mon May 6 12:36:27 UTC 2019


    Date: Monday, May 6, 2019 @ 12:36:27
  Author: felixonmars
Revision: 460823

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 460822, haskell-cairo/trunk/PKGBUILD)

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

Copied: haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 460822, haskell-cairo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-06 12:36:27 UTC (rev 460823)
@@ -0,0 +1,37 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-cairo
+pkgver=0.13.6.0
+pkgrel=10
+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=('3f8c9d4bd5d219a25c5da07fd7b79abcf041a5a656989eac9d1b3512a319d41f11b84c7a66faeee876c66d3744579f0764df23eccb6ed4959a59d5568e6f9b28')
+
+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
+    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