updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / haskell-yesod-auth / PKGBUILD
blobafd3124089e0225e5fcd2dae1efb347de32f75de
1 # custom variables
2 _hkgname=yesod-auth
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=haskell-yesod-auth
7 pkgver=0.7.5
8 pkgrel=3
9 pkgdesc="Authentication for Yesod."
10 url="http://www.yesodweb.com/"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=()
14 depends=("ghc=7.0.3-2"
15          "haskell-sha=1.5.0.0-2"
16          "haskell-aeson-native=0.3.3.1-2"
17          "haskell-authenticate=0.10.2.2-2"
18          "haskell-blaze-html=0.4.2.0-1"
19          "haskell-control-monad-attempt=0.3.0-19"
20          "haskell-hamlet=0.10.4-1"
21          "haskell-http-enumerator=0.7.0-6"
22          "haskell-mime-mail=0.3.0-2"
23          "haskell-persistent=0.6.4-1"
24          "haskell-persistent-template=0.6.3-2"
25          "haskell-puremd5=2.1.0.3-25"
26          "haskell-pwstore-fast=2.2-5"
27          "haskell-shakespeare-css=0.10.2-2"
28          "haskell-text=0.11.0.5-2.1"
29          "haskell-transformers=0.2.2.0-3.1"
30          "haskell-wai=0.4.2-4"
31          "haskell-yesod-core=0.9.3.3-1"
32          "haskell-yesod-form=0.3.3-1"
33          "haskell-yesod-json=0.2.1-8"
34          "haskell-yesod-persistent=0.2.1-8")
35 options=('strip')
36 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
37 install="${pkgname}.install"
38 sha256sums=("66618cec75ef730d336dce7640e7e598604cb4414674ea5a55d56815c01f5ada")
40 # PKGBUILD functions
41 build() {
42     cd ${srcdir}/${_hkgname}-${pkgver}
43     
44     runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
45         --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
46         --libsubdir=\$compiler/site-local/\$pkgid
47     runhaskell Setup build
48     runhaskell Setup haddock
49     runhaskell Setup register --gen-script
50     runhaskell Setup unregister --gen-script
51     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
54 package() {
55     cd ${srcdir}/${_hkgname}-${pkgver}
56     install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
57     install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
58     install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
59     ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
60     runhaskell Setup copy --destdir=${pkgdir}
61     install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
62     rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}