5 # PKGBUILD options/directives
6 pkgname=haskell-language-c
9 pkgdesc="Analysis and generation of C code"
10 url="http://www.sivity.net/projects/language.c/"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
18 "haskell-array=0.3.0.2"
19 "haskell-bytestring=0.9.1.10"
20 "haskell-containers=0.4.0.0"
21 "haskell-directory=1.1.0.0"
22 "haskell-filepath=1.2.0.0"
23 "haskell-pretty=1.0.1.2"
24 "haskell-process=1.0.1.5"
27 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
28 install="${pkgname}.install"
29 sha256sums=("bdc6680ef0b66454989245b626c437d08e1b5378e522fa160b538a8bd03568e2")
33 cd ${srcdir}/${_hkgname}-${pkgver}
35 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
36 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
37 --libsubdir=\$compiler/site-local/\$pkgid
38 runhaskell Setup build
39 runhaskell Setup haddock
40 runhaskell Setup register --gen-script
41 runhaskell Setup unregister --gen-script
42 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
46 cd ${srcdir}/${_hkgname}-${pkgver}
47 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
48 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
49 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
50 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
51 runhaskell Setup copy --destdir=${pkgdir}
52 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
53 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}