diff options
author | root <root@rshg054.dnsready.net> | 2012-02-27 23:15:24 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-27 23:15:24 +0000 |
commit | 1f567a9d58d16b76320168f0624aa55bd6320284 (patch) | |
tree | e4e7ffadc364d582fccd8543ad1543fa9741a8a7 /staging | |
parent | f6a79a3f5989efc8db63af942851c56f0c462bb1 (diff) |
Mon Feb 27 23:15:24 UTC 2012
Diffstat (limited to 'staging')
-rw-r--r-- | staging/alex/PKGBUILD | 31 | ||||
-rw-r--r-- | staging/haskell-html/PKGBUILD | 39 | ||||
-rw-r--r-- | staging/haskell-html/haskell-html.install | 19 | ||||
-rw-r--r-- | staging/haskell-quickcheck/PKGBUILD | 38 | ||||
-rw-r--r-- | staging/haskell-quickcheck/haskell-quickcheck.install | 18 | ||||
-rw-r--r-- | staging/haskell-regex-base/PKGBUILD | 37 | ||||
-rw-r--r-- | staging/haskell-regex-base/haskell-regex-base.install | 18 | ||||
-rw-r--r-- | staging/haskell-regex-compat/PKGBUILD | 37 | ||||
-rw-r--r-- | staging/haskell-regex-compat/haskell-regex-compat.install | 18 | ||||
-rw-r--r-- | staging/haskell-regex-posix/PKGBUILD | 37 | ||||
-rw-r--r-- | staging/haskell-regex-posix/haskell-regex-posix.install | 18 | ||||
-rw-r--r-- | staging/haskell-xhtml/PKGBUILD | 38 | ||||
-rw-r--r-- | staging/haskell-xhtml/haskell-xhtml.install | 19 |
13 files changed, 367 insertions, 0 deletions
diff --git a/staging/alex/PKGBUILD b/staging/alex/PKGBUILD new file mode 100644 index 000000000..cc609e757 --- /dev/null +++ b/staging/alex/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 151489 2012-02-26 17:23:04Z tdziedzic $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Vesa Kaihlavirta <vegai@iki.fi> +# Contributor: Philip Nilsson <pnilsson@nullref.se> + +pkgname=alex +pkgver=3.0.1 +pkgrel=1 +pkgdesc='a lexical analyser generator for Haskell' +arch=('i686' 'x86_64') +url='http://www.haskell.org/alex/' +license=('custom:BSD3') +depends=('gmp') +makedepends=('ghc=7.4.1-2' 'haskell-quickcheck=2.4.2-1') +source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +md5sums=('5dec239c89165d159faa2154bc0724cd') + +build() { + cd $srcdir/$pkgname-$pkgver + runghc Setup.lhs configure --prefix=/usr --datasubdir=$pkgname + runghc Setup.lhs build +} + +package() { + cd $srcdir/$pkgname-$pkgver + runghc Setup.lhs copy --destdir=$pkgdir + install -D -m644 LICENSE $pkgdir/usr/share/licenses/alex/BSD3 + + # doc/ contains only license which already installed into proper place + rm -rf $pkgdir/usr/share/doc +} diff --git a/staging/haskell-html/PKGBUILD b/staging/haskell-html/PKGBUILD new file mode 100644 index 000000000..44a3ea50b --- /dev/null +++ b/staging/haskell-html/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Arch Haskell Team <arch-haskell@haskell.org> +# Package generated by cabal2arch 0.7.6 + +_hkgname=html +pkgname=haskell-html +pkgver=1.0.1.2 +pkgrel=10 +pkgdesc="HTML combinator library" +url="http://hackage.haskell.org/package/html" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' sh) +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('2a7de5a2af9a2f80d39825d6a95ee445') + +build() { + cd ${srcdir}/${_hkgname}-${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 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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/staging/haskell-html/haskell-html.install b/staging/haskell-html/haskell-html.install new file mode 100644 index 000000000..768297e0a --- /dev/null +++ b/staging/haskell-html/haskell-html.install @@ -0,0 +1,19 @@ +HS_DIR=usr/share/haskell/haskell-html +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh &> /dev/null + exit 0 +} +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) +} diff --git a/staging/haskell-quickcheck/PKGBUILD b/staging/haskell-quickcheck/PKGBUILD new file mode 100644 index 000000000..7b27cfb0c --- /dev/null +++ b/staging/haskell-quickcheck/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Arch Haskell Team <arch-haskell@haskell.org> +# Package generated by cabal2arch 0.7.5 + +_hkgname=QuickCheck +pkgname=haskell-quickcheck +pkgver=2.4.2 +pkgrel=1 +pkgdesc="Automatic testing of Haskell programs" +url="http://hackage.haskell.org/package/QuickCheck" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' 'haskell-mtl=2.0.1.0-4' 'haskell-random=1.0.1.1-1' 'sh') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz) +install=${pkgname}.install +md5sums=('9e22f9741cbc7d9cd8d52d3928e57b67') + +build() { + cd ${srcdir}/${_hkgname}-${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 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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/staging/haskell-quickcheck/haskell-quickcheck.install b/staging/haskell-quickcheck/haskell-quickcheck.install new file mode 100644 index 000000000..c9e12fadc --- /dev/null +++ b/staging/haskell-quickcheck/haskell-quickcheck.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-quickcheck +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) +} diff --git a/staging/haskell-regex-base/PKGBUILD b/staging/haskell-regex-base/PKGBUILD new file mode 100644 index 000000000..3b8ecb4bb --- /dev/null +++ b/staging/haskell-regex-base/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Arch Haskell Team <arch-haskell@haskell.org> + +_hkgname=regex-base +pkgname=haskell-regex-base +pkgver=0.93.2 +pkgrel=5 +pkgdesc="Interface API for regex-posix,pcre,parsec,tdfa,dfa" +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-base" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' sh 'haskell-mtl=2.0.1.0-4') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz) +install=${pkgname}.install +md5sums=('e7b93b0b17eff8d3068ecb2f5d5f6ea3') + +build() { + cd ${srcdir}/${_hkgname}-${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 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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/staging/haskell-regex-base/haskell-regex-base.install b/staging/haskell-regex-base/haskell-regex-base.install new file mode 100644 index 000000000..3ad2fea28 --- /dev/null +++ b/staging/haskell-regex-base/haskell-regex-base.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-regex-base +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) +} diff --git a/staging/haskell-regex-compat/PKGBUILD b/staging/haskell-regex-compat/PKGBUILD new file mode 100644 index 000000000..c880ff4f2 --- /dev/null +++ b/staging/haskell-regex-compat/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Arch Haskell Team <arch-haskell@haskell.org> + +_hkgname=regex-compat +pkgname=haskell-regex-compat +pkgver=0.95.1 +pkgrel=1 +pkgdesc="Replaces and enhances Text.Regex" +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' 'sh' 'haskell-regex-base=0.93.2-5' 'haskell-regex-posix=0.95.1-1') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('d0573ab4e2f3de5faa61380b67333320') + +build() { + cd ${srcdir}/${_hkgname}-${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 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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/staging/haskell-regex-compat/haskell-regex-compat.install b/staging/haskell-regex-compat/haskell-regex-compat.install new file mode 100644 index 000000000..898c0bba1 --- /dev/null +++ b/staging/haskell-regex-compat/haskell-regex-compat.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-regex-compat +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) +} diff --git a/staging/haskell-regex-posix/PKGBUILD b/staging/haskell-regex-posix/PKGBUILD new file mode 100644 index 000000000..1bed15490 --- /dev/null +++ b/staging/haskell-regex-posix/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Arch Haskell Team <arch-haskell@haskell.org> + +_hkgname=regex-posix +pkgname=haskell-regex-posix +pkgver=0.95.1 +pkgrel=1 +pkgdesc="The posix regex backend for regex-base" +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' 'sh' 'haskell-regex-base=0.93.2-5') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('41cbc6d2b99837b64e0cc457c2737cc8') + +build() { + cd ${srcdir}/${_hkgname}-${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 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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/staging/haskell-regex-posix/haskell-regex-posix.install b/staging/haskell-regex-posix/haskell-regex-posix.install new file mode 100644 index 000000000..2b89fae7b --- /dev/null +++ b/staging/haskell-regex-posix/haskell-regex-posix.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-regex-posix +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) +} diff --git a/staging/haskell-xhtml/PKGBUILD b/staging/haskell-xhtml/PKGBUILD new file mode 100644 index 000000000..4ec98da52 --- /dev/null +++ b/staging/haskell-xhtml/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Arch Haskell Team <arch-haskell@haskell.org> +# Package generated by cabal2arch 0.7.6 + +_hkgname=xhtml +pkgname=haskell-xhtml +pkgver=3000.2.0.5 +pkgrel=1 +pkgdesc="Combinators for producing XHTML 1.0, including the Strict, Transitional and Frameset variants." +url="http://hackage.haskell.org/package/xhtml" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' 'sh') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz) +install=${pkgname}.install +md5sums=('d51e20de416b825aba6b874a221acfc4') + +build() { + cd ${srcdir}/${_hkgname}-${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 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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/staging/haskell-xhtml/haskell-xhtml.install b/staging/haskell-xhtml/haskell-xhtml.install new file mode 100644 index 000000000..d03b8a053 --- /dev/null +++ b/staging/haskell-xhtml/haskell-xhtml.install @@ -0,0 +1,19 @@ +HS_DIR=usr/share/haskell/haskell-xhtml +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh &> /dev/null + exit 0 +} +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) +} |