5 # PKGBUILD options/directives
6 pkgname=haskell-sifflet-lib
9 pkgdesc="Library of modules shared by sifflet and its
10 tests and its exporters."
11 url="http://mypage.iu.edu/~gdweber/software/sifflet/"
13 arch=('i686' 'x86_64')
15 depends=("ghc=7.0.3-2"
16 "haskell-cairo=0.12.1-2"
17 "haskell-fgl=5.4.2.3-4.1"
18 "haskell-glib=0.12.1-2"
19 "haskell-gtk=0.12.1-2"
21 "haskell-mtl=2.0.1.0-3.1"
22 "haskell-parsec=3.1.1-2.1"
23 "haskell-unix=2.4.2.0-2"
26 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
27 install="${pkgname}.install"
28 sha256sums=("36502edf3a4579267511f3c9061187a175c13b052da5b6cde8c6728409671d56")
32 cd ${srcdir}/${_hkgname}-${pkgver}
34 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
35 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
36 --libsubdir=\$compiler/site-local/\$pkgid
37 runhaskell Setup build
38 runhaskell Setup haddock
39 runhaskell Setup register --gen-script
40 runhaskell Setup unregister --gen-script
41 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
45 cd ${srcdir}/${_hkgname}-${pkgver}
46 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
47 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
48 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
49 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
50 runhaskell Setup copy --destdir=${pkgdir}
51 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
52 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}