Imported 'darcs' and remaining dependencies from Arch Linux.

This commit is contained in:
chaves 2011-01-29 16:34:09 +00:00
parent f1de0fbe97
commit e07a24213f
27 changed files with 825 additions and 0 deletions

40
darcs/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=darcs
pkgver=2.5
pkgrel=1
pkgdesc="Decentralized replacement for CVS with roots in quantum mechanics."
arch=(i686 x86_64)
url="http://darcs.net/"
license=('GPL')
depends=('curl' 'gmp' 'ncurses>=5.6-7')
makedepends=('ghc' 'haskell-tar' 'haskell-text' 'haskell-hashed-storage=0.5.3' 'haskell-haskeline' 'haskell-html' 'haskell-parsec=2.1.0.1' 'haskell-regex-compat')
source=("http://darcs.net/releases/$pkgname-$pkgver.tar.gz")
md5sums=('7de8b352d8b0ed50d71ac0c32d3b6d5c')
build() {
cd $srcdir/$pkgname-$pkgver
runhaskell Setup.lhs configure \
--ghc \
--prefix=/usr \
--disable-library-for-ghci \
--libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup.lhs build
}
package() {
cd $srcdir/$pkgname-$pkgver
runhaskell Setup.lhs copy \
--destdir=$pkgdir
rm -r $pkgdir/usr/lib/
chmod 755 $pkgdir/usr/share/man/man1/$pkgname.1
}

40
haskell-binary/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=haskell-binary
pkgver=0.5.0.2
pkgrel=4
pkgdesc="Binary serialisation for Haskell values using lazy ByteStrings"
url="http://hackage.haskell.org/package/binary"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/binary/$pkgver/binary-$pkgver.tar.gz)
install=haskell-binary.install
md5sums=('6bf8f3d1441602c9ab09a75e3bd6e926')
build() {
cd ${srcdir}/binary-$pkgver
runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -p --enable-split-objs --enable-shared
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
}
package() {
cd ${srcdir}/binary-0.5.0.2
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/binary
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

@ -0,0 +1,21 @@
HS_DIR=/usr/share/haskell/haskell-binary
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)
}
op=$1
shift
$op $*

42
haskell-deepseq/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=deepseq
pkgname=haskell-deepseq
pkgver=1.1.0.0
pkgrel=42
pkgdesc="Fully evaluate data structures"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh)
options=('strip' 'force')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('41194f8633be8e30cacad88146dbf7c2')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup configure -O -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
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
}

View File

@ -0,0 +1,18 @@
HS_DIR=/usr/share/haskell/haskell-deepseq
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)
}

View File

@ -0,0 +1,41 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=hashed-storage
pkgname=haskell-hashed-storage
pkgver=0.5.3
pkgrel=1
pkgdesc="Hashed file storage support code."
url="http://hackage.haskell.org/package/hashed-storage"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=('ghc=6.12.3' 'haskell-binary=0.5.0.2' 'haskell-mmap>=0.5' 'haskell-zlib' 'haskell-mtl' 'haskell-dataenc')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/hashed-storage/$pkgver/hashed-storage-$pkgver.tar.gz)
install=haskell-hashed-storage.install
md5sums=('84b9fc1b408aee53c5106d9737ca4929')
build() {
cd ${srcdir}/hashed-storage-$pkgver
runhaskell Setup configure --prefix=/usr -p --enable-split-objs --enable-shared --docdir=/usr/share/doc/${pkgname}
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
}
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
}

View File

@ -0,0 +1,18 @@
HS_DIR=/usr/share/haskell/haskell-hashed-storage
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)
}

40
haskell-html/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=html
pkgname=haskell-html
pkgver=1.0.1.2
pkgrel=6
pkgdesc="HTML combinator library"
url="http://hackage.haskell.org/package/html"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/html/$pkgver/html-$pkgver.tar.gz)
install=haskell-html.install
md5sums=('2a7de5a2af9a2f80d39825d6a95ee445')
build() {
cd ${srcdir}/html-$pkgver
runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
}
package() {
cd ${srcdir}/html-${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/html
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

@ -0,0 +1,22 @@
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)
}
op=$1
shift
$op $*

View File

@ -0,0 +1,44 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=haskeline
pkgname=haskell-haskeline
pkgver=0.6.3.1
pkgrel=1.2
pkgdesc="A command-line interface for user input, written in Haskell."
url="http://hackage.haskell.org/package/haskeline"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=('ghc=6.12.3' sh 'haskell-utf8-string=0.3.6' 'haskell-mtl=1.1.0.2' 'haskell-terminfo=0.3.1.3')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz)
install=${pkgname}.install
md5sums=('6d2aa86af220c9cd6d36948967497d93')
build() {
cd ${srcdir}/${_hkgname}-$pkgver
runhaskell Setup configure \
-O -p --enable-split-objs --enable-shared -fterminfo \
--prefix=/usr --docdir=/usr/share/doc/${pkgname}
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
}

View File

@ -0,0 +1,18 @@
HS_DIR=/usr/share/haskell/haskell-haskeline
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)
}

41
haskell-mmap/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=mmap
pkgname=haskell-mmap
pkgver=0.5.7
pkgrel=1
pkgdesc="Memory mapped files for POSIX and Windows"
url="http://hackage.haskell.org/package/mmap"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=('ghc=6.12.3' sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/mmap/$pkgver/mmap-$pkgver.tar.gz)
install=haskell-mmap.install
md5sums=('1f74b3f59617332b06e277f5212423c1')
build() {
cd ${srcdir}/mmap-$pkgver
runhaskell Setup configure --prefix=/usr -p --enable-shared --enable-split-objs --docdir=/usr/share/doc/${pkgname}
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
}
package() {
cd ${srcdir}/mmap-${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

@ -0,0 +1,18 @@
HS_DIR=/usr/share/haskell/haskell-mmap
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)
}

View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=regex-base
pkgname=haskell-regex-base
pkgrel=1.1
pkgver=0.93.2
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=6.12.3 sh 'haskell-mtl=1.1.0.2')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/regex-base/$pkgver/regex-base-$pkgver.tar.gz)
install=haskell-regex-base.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}
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
}

View File

@ -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)
}

View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=regex-compat
pkgname=haskell-regex-compat
pkgver=0.93.1
pkgrel=1.1
pkgdesc="Replaces and enhances Text.Regex"
url="http://hackage.haskell.org/package/regex-compat"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh 'haskell-regex-base' 'haskell-regex-posix')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/regex-compat/$pkgver/regex-compat-$pkgver.tar.gz)
install=haskell-regex-compat.install
md5sums=('d6becec95ea8098cab663116fdce60a5')
build() {
cd ${srcdir}/${_hkgname}-$pkgver
runhaskell Setup configure -O -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
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
}

View File

@ -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)
}

View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=regex-posix
pkgname=haskell-regex-posix
pkgver=0.94.2
pkgrel=1.1
pkgdesc="The posix regex backend for regex-base"
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-posix"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh 'haskell-regex-base=0.93.2')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/regex-posix/$pkgver/regex-posix-$pkgver.tar.gz)
install=haskell-regex-posix.install
md5sums=('e3ebbd6b66fdb2f8c4f0ad95c4580852')
build() {
cd ${srcdir}/${_hkgname}-$pkgver
runhaskell Setup configure -O -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
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
}

View File

@ -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)
}

42
haskell-tar/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=haskell-tar
pkgrel=2.2
pkgver=0.3.1.0
pkgdesc="Reading, writing and manipulating \".tar\" archive files."
url="http://hackage.haskell.org/package/tar"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=()
depends=('ghc=6.12.3' 'haskell-cabal' 'haskell-bytestring' 'haskell-directory' 'haskell-filepath' 'haskell-old-time')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/tar/${pkgver}/tar-0.3.1.0.tar.gz)
install=haskell-tar.install
md5sums=('10b54856495f9ef0a42aa270085c7d5e')
build() {
cd ${srcdir}/tar-${pkgver}
runhaskell Setup configure -O -p --enable-shared --enable-split-objs --prefix=/usr --docdir=/usr/share/doc/${pkgname}
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}/tar-${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/tar
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

@ -0,0 +1,18 @@
HS_DIR=usr/share/haskell/haskell-tar
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)
}

42
haskell-terminfo/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=terminfo
pkgname=haskell-terminfo
pkgver=0.3.1.3
pkgrel=2.2
pkgdesc="Haskell bindings to the terminfo library."
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/terminfo"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=('ghc=6.12.3' sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/terminfo/$pkgver/terminfo-$pkgver.tar.gz)
install=${pkgname}.install
md5sums=('8c0e052340f628b76f5687fa23379628')
build() {
cd ${srcdir}/${_hkgname}-$pkgver
runhaskell Setup configure -O -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
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
}

View File

@ -0,0 +1,18 @@
HS_DIR=usr/share/haskell/haskell-terminfo
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)
}

43
haskell-text/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_hkgname=text
pkgname=haskell-text
pkgver=0.10.0.0
pkgrel=1
pkgdesc="An efficient packed Unicode text type."
url="http://hackage.haskell.org/package/text"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=('ghc=6.12.3' sh 'haskell-deepseq>=1.1.0.0')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('453cf09bae3d6aafdd8a4510ddff1fa5')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup configure -O -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
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
}

View File

@ -0,0 +1,18 @@
HS_DIR=usr/share/haskell/haskell-text
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)
}

40
haskell-zlib/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Frenández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=haskell-zlib
pkgver=0.5.2.0
pkgrel=5
pkgdesc="Compression and decompression in the gzip and zlib formats"
url="http://hackage.haskell.org/package/zlib"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 'zlib' sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/zlib/${pkgver}/zlib-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('19859e241dc18ef1501a5d44d8523507')
build() {
cd ${srcdir}/zlib-$pkgver
runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
}
package() {
cd ${srcdir}/zlib-$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/zlib
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

@ -0,0 +1,21 @@
HS_DIR=/usr/share/haskell/haskell-zlib
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)
}
op=$1
shift
$op $*