updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / haskell-happstack-ixset / PKGBUILD
blob39ef822e032091c7aeb2de8456171b87f4b18bc9
1 # custom variables
2 _hkgname=happstack-ixset
3 _licensefile=COPYING
5 # PKGBUILD options/directives
6 pkgname=haskell-happstack-ixset
7 pkgver=6.0.1
8 pkgrel=24
9 pkgdesc="Efficient relational queries on Haskell sets."
10 url="http://happstack.com"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=()
14 depends=("ghc=7.0.3-2"
15          "haskell-happstack-data=6.0.0-20"
16          "haskell-happstack-util=6.0.2-1"
17          "haskell-mtl=2.0.1.0-3.1"
18          "haskell-syb=0.3-2.1"
19          "haskell-syb-with-class=0.6.1.2-1")
20 options=('strip')
21 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
22 install="${pkgname}.install"
23 sha256sums=("d122eeff5fa0e0321a8a76d2b1ff39f9d99cc70df5dc13be9db970e723b0d0c2")
25 # PKGBUILD functions
26 build() {
27     cd ${srcdir}/${_hkgname}-${pkgver}
28     
29     runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
30         --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
31         --libsubdir=\$compiler/site-local/\$pkgid
32     runhaskell Setup build
33     runhaskell Setup haddock
34     runhaskell Setup register --gen-script
35     runhaskell Setup unregister --gen-script
36     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
39 package() {
40     cd ${srcdir}/${_hkgname}-${pkgver}
41     install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
42     install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
43     install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
44     ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
45     runhaskell Setup copy --destdir=${pkgdir}
46     install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
47     rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}