Updated haskell-network

This commit is contained in:
Stephen 2012-06-16 23:52:23 +00:00
parent bc043851cb
commit c49c38db65
8 changed files with 124 additions and 176 deletions

View File

@ -1,47 +1,35 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
_hkgname=deepseq
pkgname=haskell-deepseq
_basename=haskell
_pkgname=deepseq
pkgver=1.3.0.0
ghcver=7.4.1
pkgrel=1
pkgdesc="Fully evaluate data structures"
url="http://hackage.haskell.org/package/deepseq"
license=('BSD')
pkgrel=2
pkgdesc="Deep evaluation of data structures"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=$ghcver)
install=$pkgname.install
source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz)
makedepends=()
depends=('ghc' 'haskell-array')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('a711fa94f1869074366ac69b53c2fa5b')
build() {
cd $srcdir/$_pkgname-$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
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/$_pkgname-$pkgver
install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh
install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh
install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries
ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname
runhaskell Setup copy --destdir=$pkgdir
# Legal.
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE
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
}

View File

@ -1,18 +1,18 @@
HS_DIR=/usr/share/haskell/haskell-deepseq
HS_DIR=usr/share/haskell/haskell-deepseq
post_install() {
${HS_DIR}/register.sh
(cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
(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)
(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)
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}

View File

@ -1,47 +1,35 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
_hkgname=mtl
pkgname=haskell-mtl
_basename=haskell
_pkgname=mtl
pkgver=2.0.1.0
ghcver=7.4.1
pkgrel=2
pkgdesc="Monad transformer library"
url="http://hackage.haskell.org/package/mtl"
license=('BSD')
pkgver=2.1.1
pkgrel=1
pkgdesc="Monad classes, using functional dependencies"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=$ghcver haskell-transformers)
install=$pkgname.install
source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz)
md5sums=('934fa813625ef7e88a6a96a09815ff95')
makedepends=()
depends=('ghc' 'haskell-transformers')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('0654be687f1492a2ff30cf6f3fb7eed0')
build() {
cd $srcdir/$_pkgname-$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
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/$_pkgname-$pkgver
install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh
install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh
install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries
ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname
runhaskell Setup copy --destdir=$pkgdir
# Legal.
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE
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
}

View File

@ -1,21 +1,18 @@
HS_DIR=/usr/share/haskell/haskell-mtl
HS_DIR=usr/share/haskell/haskell-mtl
post_install() {
${HS_DIR}/register.sh
(cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
(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)
(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)
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
op=$1
shift
$op $*

View File

@ -1,14 +1,14 @@
# Maintainer: Stephen McIntosh stephenmac7[at]gmail[dot]com
_hkgname=network
pkgname=haskell-network
pkgver=2.3.0.13
pkgver=2.3.0.14
pkgrel=1
pkgdesc="Low-level networking interface"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=()
depends=('ghc' 'haskell-bytestring' 'haskell-parsec' 'haskell-unix')
depends=('ghc' 'haskell-bytestring' 'haskell-parsec')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install

View File

@ -1,7 +1,7 @@
# Maintainer:
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
_hkgname=parsec
pkgname=haskell-parsec
pkgver=3.1.2
pkgver=3.1.3
pkgrel=2
pkgdesc="Monadic parser combinators"
url="http://hackage.haskell.org/package/${_hkgname}"

View File

@ -1,47 +1,35 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
_hkgname=text
pkgname=haskell-text
_basename=haskell
_pkgname=text
pkgver=0.11.2.0
ghcver=7.4.1
pkgver=0.11.2.2
pkgrel=1
pkgdesc="An efficient packed Unicode text type"
url="http://hackage.haskell.org/package/$_pkgname"
license=('BSD')
pkgdesc="An efficient packed Unicode text type."
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=$ghcver haskell-deepseq)
install=$pkgname.install
source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz)
md5sums=('7a0985e4da1a94e73d03324e82c24b25')
makedepends=()
depends=('ghc' 'haskell-array' 'haskell-bytestring' 'haskell-deepseq')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('a0609d6e1b2674aff49e276d46d8111a')
build() {
cd $srcdir/$_pkgname-$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
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/$_pkgname-$pkgver
install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh
install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh
install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries
ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname
runhaskell Setup copy --destdir=$pkgdir
# Legal.
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE
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
}

View File

@ -1,48 +1,35 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
_hkgname=transformers
pkgname=haskell-transformers
_basename=haskell
_pkgname=transformers
pkgver=0.2.2.0
ghcver=7.4.1
pkgrel=2
pkgver=0.3.0.0
pkgrel=1
pkgdesc="Concrete functor and monad transformers"
url="http://hackage.haskell.org/package/$_pkgname"
license=('BSD')
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=$ghcver)
install=$pkgname.install
source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz)
md5sums=('3470ac66116900cd1ba84d3744474e49')
makedepends=()
depends=('ghc')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('852dc0b79cc2bcb39136287d3dd385e5')
build() {
cd $srcdir/$_pkgname-$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
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/$_pkgname-$pkgver
install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh
install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh
install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries
ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname
runhaskell Setup copy --destdir=$pkgdir
# Legal.
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE
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
}