5 # PKGBUILD options/directives
9 pkgdesc="Snap: A Haskell Web Framework: project starter executable and glue code library"
10 url="http://snapframework.com/"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
15 "haskell-monadcatchio-transformers=0.2.2.3-1"
16 "haskell-attoparsec=0.9.1.2-1"
17 "haskell-blaze-builder=0.3.0.1-18"
18 "haskell-bytestring-nums=0.3.5-1"
19 "haskell-cereal=0.3.4.0-1"
20 "haskell-directory-tree=0.10.0-1"
21 "haskell-dlist=0.5-18"
22 "haskell-enumerator=0.4.15-1"
23 "haskell-heist=0.5.3-3"
24 "haskell-hint=0.3.3.3-1"
25 "haskell-mtl=2.0.1.0-3.1"
26 "haskell-snap-core=0.5.5-4"
27 "haskell-snap-server=0.5.5-5"
28 "haskell-text=0.11.0.5-2.1"
29 "haskell-unix=2.4.2.0-2"
30 "haskell-unix-compat=0.2.2.1-1"
31 "haskell-zlib=0.5.3.1-2.1")
33 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
34 install="${pkgname}.install"
35 sha256sums=("e90379547ec5e4e4a315ede3c1e87b2d26562124f921fbb23d94c78063ea041b")
39 cd ${srcdir}/${_hkgname}-${pkgver}
41 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
42 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
43 --libsubdir=\$compiler/site-local/\$pkgid
44 runhaskell Setup build
45 runhaskell Setup haddock
46 runhaskell Setup register --gen-script
47 runhaskell Setup unregister --gen-script
48 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
52 cd ${srcdir}/${_hkgname}-${pkgver}
53 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
54 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
55 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
56 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
57 runhaskell Setup copy --destdir=${pkgdir}
58 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
59 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}