[arch-commits] Commit in haskell-haddock-library/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Sep 10 20:07:27 UTC 2015
Date: Thursday, September 10, 2015 @ 22:07:27
Author: foutrelis
Revision: 139815
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-haddock-library/repos/community-staging-i686/
haskell-haddock-library/repos/community-staging-i686/PKGBUILD
(from rev 139814, haskell-haddock-library/trunk/PKGBUILD)
haskell-haddock-library/repos/community-staging-i686/haskell-haddock-library.install
(from rev 139814, haskell-haddock-library/trunk/haskell-haddock-library.install)
haskell-haddock-library/repos/community-staging-x86_64/
haskell-haddock-library/repos/community-staging-x86_64/PKGBUILD
(from rev 139814, haskell-haddock-library/trunk/PKGBUILD)
haskell-haddock-library/repos/community-staging-x86_64/haskell-haddock-library.install
(from rev 139814, haskell-haddock-library/trunk/haskell-haddock-library.install)
----------------------------------------------------------+
community-staging-i686/PKGBUILD | 40 +++++++++++++
community-staging-i686/haskell-haddock-library.install | 20 ++++++
community-staging-x86_64/PKGBUILD | 40 +++++++++++++
community-staging-x86_64/haskell-haddock-library.install | 20 ++++++
4 files changed, 120 insertions(+)
Copied: haskell-haddock-library/repos/community-staging-i686/PKGBUILD (from rev 139814, haskell-haddock-library/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-10 20:07:27 UTC (rev 139815)
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 124882 2014-12-29 22:07:40Z spupykin $
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=haskell-haddock-library
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="A documentation-generation tool for Haskell libraries"
+url="http://www.haskell.org/haddock/"
+license=("BSD3")
+arch=('i686' 'x86_64')
+makedepends=()
+depends=("ghc=7.10.1")
+options=('strip' 'staticlibs')
+install="${pkgname}.install"
+source=("http://hackage.haskell.org/packages/archive/haddock-library/${pkgver}/haddock-library-${pkgver}.tar.gz")
+sha256sums=('a62848b4c291eec9cbdff3031cc71b454b880d8e742cfb15bc06ed3e61c4c84d')
+
+build() {
+ cd "${srcdir}/haddock-library-${pkgver}"
+
+ runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd "${srcdir}/haddock-library-${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/haddock-library"
+ 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-haddock-library/repos/community-staging-i686/haskell-haddock-library.install (from rev 139814, haskell-haddock-library/trunk/haskell-haddock-library.install)
===================================================================
--- community-staging-i686/haskell-haddock-library.install (rev 0)
+++ community-staging-i686/haskell-haddock-library.install 2015-09-10 20:07:27 UTC (rev 139815)
@@ -0,0 +1,20 @@
+# custom variables
+pkgname=haskell-haddock-library
+HS_DIR=usr/share/haskell/${pkgname}
+
+# functions
+post_install() {
+ ${HS_DIR}/register.sh
+}
+
+pre_upgrade() {
+ ${HS_DIR}/unregister.sh
+}
+
+post_upgrade() {
+ ${HS_DIR}/register.sh
+}
+
+pre_remove() {
+ ${HS_DIR}/unregister.sh
+}
Copied: haskell-haddock-library/repos/community-staging-x86_64/PKGBUILD (from rev 139814, haskell-haddock-library/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-10 20:07:27 UTC (rev 139815)
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 124882 2014-12-29 22:07:40Z spupykin $
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=haskell-haddock-library
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="A documentation-generation tool for Haskell libraries"
+url="http://www.haskell.org/haddock/"
+license=("BSD3")
+arch=('i686' 'x86_64')
+makedepends=()
+depends=("ghc=7.10.1")
+options=('strip' 'staticlibs')
+install="${pkgname}.install"
+source=("http://hackage.haskell.org/packages/archive/haddock-library/${pkgver}/haddock-library-${pkgver}.tar.gz")
+sha256sums=('a62848b4c291eec9cbdff3031cc71b454b880d8e742cfb15bc06ed3e61c4c84d')
+
+build() {
+ cd "${srcdir}/haddock-library-${pkgver}"
+
+ runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd "${srcdir}/haddock-library-${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/haddock-library"
+ 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-haddock-library/repos/community-staging-x86_64/haskell-haddock-library.install (from rev 139814, haskell-haddock-library/trunk/haskell-haddock-library.install)
===================================================================
--- community-staging-x86_64/haskell-haddock-library.install (rev 0)
+++ community-staging-x86_64/haskell-haddock-library.install 2015-09-10 20:07:27 UTC (rev 139815)
@@ -0,0 +1,20 @@
+# custom variables
+pkgname=haskell-haddock-library
+HS_DIR=usr/share/haskell/${pkgname}
+
+# functions
+post_install() {
+ ${HS_DIR}/register.sh
+}
+
+pre_upgrade() {
+ ${HS_DIR}/unregister.sh
+}
+
+post_upgrade() {
+ ${HS_DIR}/register.sh
+}
+
+pre_remove() {
+ ${HS_DIR}/unregister.sh
+}
More information about the arch-commits
mailing list