diff options
author | Daniel Nagy | 2015-06-08 20:29:34 +0200 |
---|---|---|
committer | Daniel Nagy | 2015-06-08 20:29:34 +0200 |
commit | 5a9e4dd5ae180b7d5b58a760899dfe428980f52c (patch) | |
tree | 7913d42d9b52a8885e0f065e4baa60f3a9689887 | |
download | aur-haskell-happstack-server.tar.gz |
import to aur4
-rw-r--r-- | .SRCINFO | 50 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | haskell-happstack-server.install | 18 |
3 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ad33e91ab2a6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,50 @@ +pkgbase = haskell-happstack-server + pkgdesc = Web related tools and services. + pkgver = 7.4.1 + pkgrel = 3 + url = http://hackage.haskell.org/package/happstack-server + install = haskell-happstack-server.install + arch = i686 + arch = x86_64 + license = custom:BSD3 + depends = ghc + depends = haskell-base64-bytestring>=1.0 + depends = haskell-blaze-html>=0.5 + depends = haskell-bytestring + depends = haskell-containers + depends = haskell-directory + depends = haskell-exceptions + depends = haskell-extensible-exceptions + depends = haskell-filepath + depends = haskell-hslogger>=1.0.2 + depends = haskell-html + depends = haskell-monad-control>=0.3 + depends = haskell-mtl>=2.0 + depends = haskell-network>=2.2.3 + depends = haskell-network-uri + depends = haskell-old-locale + depends = haskell-parsec<4 + depends = haskell-process + depends = haskell-sendfile>=0.7.1 + depends = haskell-syb + depends = haskell-system-filepath>=0.3.1 + depends = haskell-template-haskell + depends = haskell-text>=0.10 + depends = haskell-text<0.12 + depends = haskell-threads>=0.5 + depends = haskell-time + depends = haskell-time-compat + depends = haskell-transformers>=0.1.3 + depends = haskell-transformers-base<0.5 + depends = haskell-transformers-compat + depends = haskell-unix + depends = haskell-utf8-string>=0.3.4 + depends = haskell-xhtml + depends = haskell-zlib + options = strip + options = staticlibs + source = http://hackage.haskell.org/packages/archive/happstack-server/7.4.1/happstack-server-7.4.1.tar.gz + md5sums = 5b3ceda986b072cc4a8abb9c0f521842 + +pkgname = haskell-happstack-server + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c71e18801bed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Daniel Nagy <danielnagy at gmx de> +# Contributor: Nicola Squartini <tensor5@gmail.com> + +_hkgname=happstack-server +pkgname=haskell-happstack-server +pkgver=7.4.1 +pkgrel=3 +pkgdesc="Web related tools and services." +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('i686' 'x86_64') +makedepends=() +depends=('ghc' 'haskell-base64-bytestring>=1.0' 'haskell-blaze-html>=0.5' + 'haskell-bytestring' 'haskell-containers' 'haskell-directory' 'haskell-exceptions' 'haskell-extensible-exceptions' + 'haskell-filepath' 'haskell-hslogger>=1.0.2' 'haskell-html' 'haskell-monad-control>=0.3' + 'haskell-mtl>=2.0' 'haskell-network>=2.2.3' 'haskell-network-uri' 'haskell-old-locale' 'haskell-parsec<4' 'haskell-process' + 'haskell-sendfile>=0.7.1' 'haskell-syb' 'haskell-system-filepath>=0.3.1' 'haskell-template-haskell' 'haskell-text>=0.10' + 'haskell-text<0.12' 'haskell-threads>=0.5' 'haskell-time' 'haskell-time-compat' 'haskell-transformers>=0.1.3' + 'haskell-transformers-base<0.5' 'haskell-transformers-compat' 'haskell-unix' 'haskell-utf8-string>=0.3.4' + 'haskell-xhtml' 'haskell-zlib') +options=('strip' 'staticlibs') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('5b3ceda986b072cc4a8abb9c0f521842') +build() { + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --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}/${_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} + install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/haskell-happstack-server.install b/haskell-happstack-server.install new file mode 100644 index 000000000000..025948c3127f --- /dev/null +++ b/haskell-happstack-server.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-happstack-server +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) +} |