mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
|
# Contributor: shild <sxp@bk.ru>
|
||
|
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
||
|
pkgname=haskell-x11
|
||
|
pkgver=1.4.5
|
||
|
pkgrel=2
|
||
|
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')
|
||
|
depends=(sh)
|
||
|
makedepends=('ghc=6.10.4')
|
||
|
options=('strip')
|
||
|
conflicts=(haskell-x11-extras)
|
||
|
install=hsmod.install
|
||
|
source=(http://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz)
|
||
|
md5sums=('73a4ba56b8cef69ce3659ab452e4530b')
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/X11-$pkgver
|
||
|
|
||
|
runhaskell Setup.hs configure --ghc --prefix=/usr \
|
||
|
--libsubdir=\$compiler/site-local/\$pkgid || return 1
|
||
|
|
||
|
runhaskell Setup.hs build || return 1
|
||
|
|
||
|
runhaskell Setup.hs register --gen-script
|
||
|
runhaskell Setup.hs unregister --gen-script
|
||
|
|
||
|
install -D -m744 register.sh $startdir/pkg/usr/share/haskell/$pkgname/register.sh
|
||
|
install -m744 unregister.sh $startdir/pkg/usr/share/haskell/$pkgname/unregister.sh
|
||
|
runhaskell Setup.hs copy --destdir=$startdir/pkg || return 1
|
||
|
|
||
|
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/BSD3
|
||
|
}
|