updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / haskell-missingh / PKGBUILD
blob654fb0d4268a82953173f3da3ebd4882a4332c04
1 # custom variables
2 _hkgname=MissingH
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=haskell-missingh
7 pkgver=1.1.1.0
8 pkgrel=2
9 pkgdesc="Large utility library"
10 url="http://software.complete.org/missingh"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=()
14 depends=("ghc=7.0.3-2"
15          "sh"
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"
22          "haskell-mtl=2.0.1.0"
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")
31 options=('strip')
32 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
33 install="${pkgname}.install"
34 sha256sums=("3e87293e00c57f28e1df8425d7b6ddb92abd2063f2d962104fd64a704d6e4ec4")
36 # PKGBUILD functions
37 build() {
38     cd ${srcdir}/${_hkgname}-${pkgver}
39     
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
50 package() {
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}