X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=archlinuxppc.git;a=blobdiff_plain;f=haskell-x11%2FPKGBUILD;fp=haskell-x11%2FPKGBUILD;h=863316d31a3907e9567cb739304ad29af61fb700;hp=0000000000000000000000000000000000000000;hb=0850412dee34fa3cb14736d1280894e20f4e57e9;hpb=42f5ba5fb79cff7221b0d21a942ef875c18102e0 diff --git a/haskell-x11/PKGBUILD b/haskell-x11/PKGBUILD new file mode 100644 index 0000000..863316d --- /dev/null +++ b/haskell-x11/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 33071 2010-11-22 11:15:13Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: shild +# Maintainer: Vesa Kaihlavirta + +pkgname=haskell-x11 +pkgver=1.5.0.0 +pkgrel=5 +pkgdesc="A Haskell binding to the X11 graphics library." +arch=(i686 x86_64) +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11" +license=('BSD') +options=('strip' 'force') +conflicts=(haskell-x11-extras) +install=hsmod.install +source=(http://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz) +md5sums=('ec6670f5ce1812206903c8a0fd9df04c') + +build() { + _ghcver=`pacman -Q ghc | cut -d\ -f 2 | cut -f 1 -d -` + depends=("ghc=${_ghcver}" 'libx11') + + cd $srcdir/X11-$pkgver + + runhaskell Setup.hs configure --ghc --prefix=/usr \ + --libsubdir=\$compiler/site-local/\$pkgid + + runhaskell Setup.hs build + runhaskell Setup haddock + + runhaskell Setup.hs register --gen-script + runhaskell Setup.hs unregister --gen-script + sed -i 's/ghc-pkg unregister/ghc-pkg unregister --force/' 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 + runhaskell Setup.hs copy --destdir=$pkgdir + + install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/BSD3 +}