5 # PKGBUILD options/directives
9 pkgdesc="Creation of type-safe, RESTful web applications."
10 url="http://www.yesodweb.com/"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
15 "haskell-attoparsec-text=0.8.5.1-19"
16 "haskell-blaze-builder=0.3.0.1-18"
17 "haskell-blaze-html=0.4.2.0-1"
18 "haskell-hamlet=0.10.4-1"
19 "haskell-http-types=0.6.6-1"
20 "haskell-monad-control=0.2.0.3-2"
21 "haskell-parsec=3.1.1-2.1"
22 "haskell-shakespeare-css=0.10.2-2"
23 "haskell-shakespeare-js=0.10.2-2"
24 "haskell-shakespeare-text=0.10.2-2"
25 "haskell-text=0.11.0.5-2.1"
26 "haskell-transformers=0.2.2.0-3.1"
27 "haskell-unix-compat=0.2.2.1-1"
29 "haskell-wai-extra=0.4.4-1"
30 "haskell-warp=0.4.5-5"
31 "haskell-yesod-auth=0.7.5-3"
32 "haskell-yesod-core=0.9.3.3-1"
33 "haskell-yesod-form=0.3.3-1"
34 "haskell-yesod-json=0.2.1-8"
35 "haskell-yesod-persistent=0.2.1-8")
37 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
38 install="${pkgname}.install"
39 sha256sums=("e0568d773823128bf98810c94148b1031d7b89c3e14d070ec87eee9b9db7c429")
43 cd ${srcdir}/${_hkgname}-${pkgver}
45 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
46 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
47 --libsubdir=\$compiler/site-local/\$pkgid
48 runhaskell Setup build
49 runhaskell Setup haddock
50 runhaskell Setup register --gen-script
51 runhaskell Setup unregister --gen-script
52 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
56 cd ${srcdir}/${_hkgname}-${pkgver}
57 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
58 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
59 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
60 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
61 runhaskell Setup copy --destdir=${pkgdir}
62 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
63 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}