blob: 682499ed6986b5bc4e2384818b42bc9e5ef93e28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Marcelo Garlet Millani <marcelogmillani at gmail dot com>
_hkgname=descrilo
pkgname=haskell-descrilo
pkgver=0.1.0.6
pkgrel=1
pkgdesc='Loads a list of items with fields'
url="http://hackage.haskell.org/package/${_hkgname}"
license=('GPL3')
arch=('i686' 'x86_64') # should work for any arch which haskell may be compiled to
depends=("ghc")
source=( "http://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz" )
#options=('staticlibs')
install=${pkgname}.install
sha256sums=('a24597e81f0aa526a1fbc1eb1f9f5b372ca06f001f0bb7028ee8f182913cdd98')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup configure -O --enable-shared --prefix=/usr \
--docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid \
--ghc-option -dynamic
runhaskell Setup build
runhaskell Setup haddock --haddock-options "--optghc -dynamic"
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
package() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup copy --destdir=${pkgdir}
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
mkdir -p ${pkgdir}/usr/share/man/man5
install -D -m 0644 descrilo.5 ${pkgdir}/usr/share/man/man5/
gzip ${pkgdir}/usr/share/man/man5/descrilo.5
rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
}
|