5 # PKGBUILD options/directives
9 pkgdesc="An xhtml templating system"
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-attoparsec-text=0.8.5.1-19"
18 "haskell-blaze-builder=0.3.0.1-18"
19 "haskell-directory-tree=0.10.0-1"
20 "haskell-mtl=2.0.1.0-3.1"
21 "haskell-text=0.11.0.5-2.1"
22 "haskell-transformers=0.2.2.0-3.1"
23 "haskell-xmlhtml=0.1.5.2-2")
25 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
26 install="${pkgname}.install"
27 sha256sums=("61e00f489de77d552b97bd0d97a60ed5056418c182ac06842f294811118104d7")
31 cd ${srcdir}/${_hkgname}-${pkgver}
33 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
34 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
35 --libsubdir=\$compiler/site-local/\$pkgid
36 runhaskell Setup build
37 runhaskell Setup haddock
38 runhaskell Setup register --gen-script
39 runhaskell Setup unregister --gen-script
40 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
44 cd ${srcdir}/${_hkgname}-${pkgver}
45 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
46 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
47 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
48 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
49 runhaskell Setup copy --destdir=${pkgdir}
50 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
51 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}