5 # PKGBUILD options/directives
6 pkgname=haskell-missingh
9 pkgdesc="Large utility library"
10 url="http://software.complete.org/missingh"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
16 "haskell-hunit=1.2.2.3"
17 "haskell-array=0.3.0.2"
18 "haskell-containers=0.4.0.0"
19 "haskell-directory=1.1.0.0"
20 "haskell-filepath=1.2.0.0"
21 "haskell-hslogger=1.1.5"
23 "haskell-network=2.3.0.2"
24 "haskell-old-locale=1.0.0.2"
25 "haskell-old-time=1.0.0.6"
26 "haskell-parsec=3.1.1"
27 "haskell-process=1.0.1.5"
28 "haskell-random=1.0.0.3"
29 "haskell-regex-compat=0.93.1"
30 "haskell-unix=2.4.2.0")
32 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
33 install="${pkgname}.install"
34 sha256sums=("3e87293e00c57f28e1df8425d7b6ddb92abd2063f2d962104fd64a704d6e4ec4")
38 cd ${srcdir}/${_hkgname}-${pkgver}
40 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
41 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
42 --libsubdir=\$compiler/site-local/\$pkgid
43 runhaskell Setup build
44 runhaskell Setup haddock
45 runhaskell Setup register --gen-script
46 runhaskell Setup unregister --gen-script
47 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
51 cd ${srcdir}/${_hkgname}-${pkgver}
52 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
53 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
54 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
55 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
56 runhaskell Setup copy --destdir=${pkgdir}
57 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
58 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}