[arch-commits] Commit in haskell-cairo/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Mar 31 22:27:44 UTC 2020
Date: Tuesday, March 31, 2020 @ 22:27:43
Author: felixonmars
Revision: 608468
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 608467, haskell-cairo/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 608467, haskell-cairo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-31 22:27:43 UTC (rev 608468)
@@ -0,0 +1,37 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-cairo
+pkgver=0.13.8.0
+pkgrel=19
+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=('472cfae63dfe66c9bdb3b44918987f3b001a0f2d7749aa30276d1736da97b2c70e8731af88f3ab9e512fd12d631ab096d18fd4067f9fdac9ea3dd85ccc938c46')
+
+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