[arch-commits] Commit in haskell-glib/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 2 02:20:09 UTC 2017
Date: Saturday, December 2, 2017 @ 02:20:08
Author: felixonmars
Revision: 271258
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-glib/repos/community-staging-x86_64/
haskell-glib/repos/community-staging-x86_64/PKGBUILD
(from rev 271257, haskell-glib/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-glib/repos/community-staging-x86_64/PKGBUILD (from rev 271257, haskell-glib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-02 02:20:08 UTC (rev 271258)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-glib
+pkgver=0.13.5.0
+pkgrel=1
+pkgdesc="Binding to the GLIB library for Gtk2Hs."
+url="https://hackage.haskell.org/package/glib"
+license=('LGPL2.1')
+arch=('x86_64')
+depends=('ghc-libs' 'glib2' 'haskell-utf8-string' 'haskell-text')
+makedepends=('ghc' "haskell-gtk2hs-buildtools")
+provides=('gtk2hs-glib')
+replaces=('gtk2hs-glib')
+conflicts=('gtk2hs-glib')
+source=(https://hackage.haskell.org/packages/archive/glib/$pkgver/glib-$pkgver.tar.gz)
+sha512sums=('33619e6681dbc6cc204c0bac21db051f05f3044912fed34035859583b6d447e91b537e68eb0994ade66ad4f276c3a9b7c88823e0ba4c43c087e604f2ea90cdbd')
+
+build() {
+ cd "${srcdir}/glib-${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
+ 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}/glib-${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