[arch-commits] Commit in haskell-setlocale/repos (6 files)
Jelle van der Waa
jelle at archlinux.org
Sun Dec 20 10:51:20 UTC 2015
Date: Sunday, December 20, 2015 @ 11:51:20
Author: jelle
Revision: 153761
archrelease: copy trunk to community-i686, community-x86_64
Added:
haskell-setlocale/repos/community-i686/
haskell-setlocale/repos/community-i686/PKGBUILD
(from rev 153760, haskell-setlocale/trunk/PKGBUILD)
haskell-setlocale/repos/community-i686/haskell-setlocale.install
(from rev 153760, haskell-setlocale/trunk/haskell-setlocale.install)
haskell-setlocale/repos/community-x86_64/
haskell-setlocale/repos/community-x86_64/PKGBUILD
(from rev 153760, haskell-setlocale/trunk/PKGBUILD)
haskell-setlocale/repos/community-x86_64/haskell-setlocale.install
(from rev 153760, haskell-setlocale/trunk/haskell-setlocale.install)
--------------------------------------------+
community-i686/PKGBUILD | 39 +++++++++++++++++++++++++++
community-i686/haskell-setlocale.install | 18 ++++++++++++
community-x86_64/PKGBUILD | 39 +++++++++++++++++++++++++++
community-x86_64/haskell-setlocale.install | 18 ++++++++++++
4 files changed, 114 insertions(+)
Copied: haskell-setlocale/repos/community-i686/PKGBUILD (from rev 153760, haskell-setlocale/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-12-20 10:51:20 UTC (rev 153761)
@@ -0,0 +1,39 @@
+# 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
+}
Copied: haskell-setlocale/repos/community-i686/haskell-setlocale.install (from rev 153760, haskell-setlocale/trunk/haskell-setlocale.install)
===================================================================
--- community-i686/haskell-setlocale.install (rev 0)
+++ community-i686/haskell-setlocale.install 2015-12-20 10:51:20 UTC (rev 153761)
@@ -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)
+}
Copied: haskell-setlocale/repos/community-x86_64/PKGBUILD (from rev 153760, haskell-setlocale/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-12-20 10:51:20 UTC (rev 153761)
@@ -0,0 +1,39 @@
+# 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
+}
Copied: haskell-setlocale/repos/community-x86_64/haskell-setlocale.install (from rev 153760, haskell-setlocale/trunk/haskell-setlocale.install)
===================================================================
--- community-x86_64/haskell-setlocale.install (rev 0)
+++ community-x86_64/haskell-setlocale.install 2015-12-20 10:51:20 UTC (rev 153761)
@@ -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