Commit 2206a0f4 authored by matt mooney's avatar matt mooney Committed by Allan McRae
Browse files

prototypes/haskell: update haskell prototypes



The PKGBUILD is updated to generally coincide with the wiki.
Signed-off-by: default avatarmatt mooney <mfm@muteddisk.com>
parent f1024dff
......@@ -7,12 +7,13 @@
# information on Haskell packaging.
# Maintainer: Your Name <youremail@domain.com>
pkgname=NAME
_hkgname=NAME
pkgname=$_hkgname
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/***"
url="http://hackage.haskell.org/package/$_hkgname"
license=('GPL')
depends=()
makedepends=('ghc')
......@@ -21,30 +22,31 @@ conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://hackage.haskell.org/packages/archive/***/$pkgver/***-$pkgver.tar.gz)
install=$pkgname.install
source=(http://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz)
md5sums=()
build() {
cd "$srcdir/***-$pkgver"
runhaskell Setup configure --prefix=/usr --enable-executable-stripping
runhaskell Setup build
#
# Setup registration phase for library packages. This also requires an install
# script; see proto-haskell.install.
#
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
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/***-$pkgver"
runhaskell Setup copy --destdir="$pkgdir/"
cd "$srcdir/$_hkgname-$pkgver"
install -Dm744 register.sh "$pkgdir/usr/share/haskell/$pkgname/register.sh"
install -m744 unregister.sh "$pkgdir/usr/share/haskell/$pkgname/unregister.sh"
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"
}
# vim:set ts=2 sw=2 et:
pkgname=NAME
HS_DIR="usr/share/haskell/$pkgname"
HS_DIR="usr/share/haskell/haskell-$pkgname"
post_install() {
"$HS_DIR/register.sh"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment