updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / haskell-sifflet-lib / PKGBUILD
blob9c0bb3626f5472c51093b6efa2662583a7264edb
1 # custom variables
2 _hkgname=sifflet-lib
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=haskell-sifflet-lib
7 pkgver=1.2.4
8 pkgrel=24
9 pkgdesc="Library of modules shared by sifflet and its
10 tests and its exporters."
11 url="http://mypage.iu.edu/~gdweber/software/sifflet/"
12 license=("BSD3")
13 arch=('i686' 'x86_64')
14 makedepends=()
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"
20          "haskell-hxt=9.1.4-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"
24          "gtk2")
25 options=('strip')
26 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
27 install="${pkgname}.install"
28 sha256sums=("36502edf3a4579267511f3c9061187a175c13b052da5b6cde8c6728409671d56")
30 # PKGBUILD functions
31 build() {
32     cd ${srcdir}/${_hkgname}-${pkgver}
33     
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
44 package() {
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}