[arch-commits] Commit in haskell-cairo/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 28 16:17:48 UTC 2017
Date: Thursday, December 28, 2017 @ 16:17:47
Author: felixonmars
Revision: 276507
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 276506, haskell-cairo/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 276506, haskell-cairo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-28 16:17:47 UTC (rev 276507)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-cairo
+pkgver=0.13.4.2
+pkgrel=2
+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-mtl' 'haskell-utf8-string' 'haskell-text')
+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=('e2d4aee4d13b99d3ed5d52dd5ebef73576fbd96c1f69b0596c1d15c7a657918e5662007dec845e4fc4e435d814303c9bf02acf6cdc7df6b0f37e26f519da59a5')
+
+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