updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / haskell-configfile / PKGBUILD
blobf1e3e92faf43e1567cfb2155a2cd6e138f45baf6
1 # custom variables
2 _hkgname=ConfigFile
3 _licensefile=COPYRIGHT
5 # PKGBUILD options/directives
6 pkgname=haskell-configfile
7 pkgver=1.1.1
8 pkgrel=1
9 pkgdesc="Configuration file reading & writing"
10 url="http://software.complete.org/configfile"
11 license=("LGPL")
12 arch=('i686' 'x86_64')
13 makedepends=()
14 depends=("ghc=7.0.3-2"
15          "haskell-missingh=1.1.1.0-2"
16          "haskell-mtl=2.0.1.0-3.1"
17          "haskell-parsec=3.1.1-2.1")
18 options=('strip')
19 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
20 install="${pkgname}.install"
21 sha256sums=("55067e4b6d5f532d6e28c739869742a011490905e24894da9015368aed825e70")
23 # PKGBUILD functions
24 build() {
25     cd ${srcdir}/${_hkgname}-${pkgver}
26     
27     runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
28         --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
29         --libsubdir=\$compiler/site-local/\$pkgid
30     runhaskell Setup build
31     #runhaskell Setup haddock
32     runhaskell Setup register --gen-script
33     runhaskell Setup unregister --gen-script
34     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
37 package() {
38     cd ${srcdir}/${_hkgname}-${pkgver}
39     install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
40     install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
41     #install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
42     #ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
43     runhaskell Setup copy --destdir=${pkgdir}
44     install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
45     #rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}