[arch-commits] Commit in (5 files)

Jelle van der Waa jelle at archlinux.org
Sun Dec 20 10:33:02 UTC 2015


    Date: Sunday, December 20, 2015 @ 11:33:02
  Author: jelle
Revision: 153759

Add new dep of XMonad

Added:
  haskell-setlocale/
  haskell-setlocale/repos/
  haskell-setlocale/trunk/
  haskell-setlocale/trunk/PKGBUILD
  haskell-setlocale/trunk/haskell-setlocale.install

---------------------------+
 PKGBUILD                  |   38 ++++++++++++++++++++++++++++++++++++++
 haskell-setlocale.install |   18 ++++++++++++++++++
 2 files changed, 56 insertions(+)

Added: haskell-setlocale/trunk/PKGBUILD
===================================================================
--- haskell-setlocale/trunk/PKGBUILD	                        (rev 0)
+++ haskell-setlocale/trunk/PKGBUILD	2015-12-20 10:33:02 UTC (rev 153759)
@@ -0,0 +1,38 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Øyvind 'Mr.Elendig' Heggstad <mrelendig at har-ikkje.net>
+
+pkgname=haskell-setlocale
+_hkgname=setlocale
+pkgver=1.0.0.3
+pkgrel=2
+pkgdesc="Haskell bindings to setlocale"
+url="http://hackage.haskell.org/package/setlocale"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=('ghc')
+options=('staticlibs')
+install=${pkgname}.install
+source=(http://hackage.haskell.org/packages/archive/setlocale/${pkgver}/setlocale-${pkgver}.tar.gz)
+md5sums=('348690842f5233f0e42e16bd615f777e')
+
+build() {
+    cd ${srcdir}/setlocale-${pkgver}
+    runhaskell Setup configure -O --enable-library-profiling --enable-split-objs --enable-shared \
+       --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup haddock
+    runhaskell Setup register   --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd ${srcdir}/setlocale-${pkgver}
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/$_hkgname
+    runhaskell Setup copy --destdir=${pkgdir}
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
+}

Added: haskell-setlocale/trunk/haskell-setlocale.install
===================================================================
--- haskell-setlocale/trunk/haskell-setlocale.install	                        (rev 0)
+++ haskell-setlocale/trunk/haskell-setlocale.install	2015-12-20 10:33:02 UTC (rev 153759)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-setlocale
+post_install() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}



More information about the arch-commits mailing list