Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added gitit. WARNING: Takes at least 3GB of RAM to link the executable.

  • Loading branch information...
commit aa7dab7d67b570bf0343b2ad5c08278196b0d6d1 1 parent 8afffad
@LeifW LeifW authored
Showing with 51 additions and 0 deletions.
  1. +33 −0 habs/gitit/PKGBUILD
  2. +18 −0 habs/gitit/gitit.install
View
33 habs/gitit/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
+_hkgname=gitit
+pkgname=gitit
+pkgver=0.8
+pkgrel=1
+pkgdesc="Wiki using happstack, git or darcs, and pandoc."
+url="http://hackage.haskell.org/package/${_hkgname}"
+license=('GPL')
+arch=('i686' 'x86_64')
+makedepends=()
+depends=('gmp' 'ghc' 'haskell-configfile<1.1' 'haskell-hstringtemplate<0.7' 'haskell-http=4000.1.1' 'haskell-sha<1.5' 'haskell-bytestring=0.9.1.10' 'haskell-cgi=3001.1.7.4' 'haskell-containers=0.4.0.0' 'haskell-directory=1.1.0.0' 'haskell-feed<0.4' 'haskell-filepath=1.2.0.0' 'haskell-filestore<0.5' 'haskell-ghc-paths' 'haskell-happstack-server<6.1' 'haskell-happstack-util<6.1' 'haskell-highlighting-kate>=0.2.7.1' 'haskell-hslogger<1.2' 'haskell-json<0.5' 'haskell-mtl=2.0.1.0' 'haskell-network=2.3.0.2' 'haskell-old-locale=1.0.0.2' 'haskell-old-time=1.0.0.6' 'haskell-pandoc>=1.8' 'haskell-pandoc-types>=1.8' 'haskell-parsec=3.1.1' 'haskell-pretty=1.0.1.2' 'haskell-process=1.0.1.5' 'haskell-random=1.0.0.3' 'haskell-recaptcha>=0.1' 'haskell-safe' 'haskell-syb=0.3' 'haskell-time=1.2.0.3' 'haskell-url<2.2' 'haskell-utf8-string<0.4' 'haskell-xhtml=3000.2.0.1' 'haskell-xml>=1.3.5' 'haskell-xss-sanitize<0.3' 'haskell-zlib=0.5.3.1')
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+install=${pkgname}.install
+md5sums=('002bc921a92f92c28758099d8e95332d')
+build() {
+ cd ${srcdir}/${_hkgname}-${pkgver}
+ runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared --enable-executable-dynamic \
+ --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}/${_hkgname}-${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}
+}
View
18 habs/gitit/gitit.install
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/gitit
+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)
+}
Please sign in to comment.
Something went wrong with that request. Please try again.