1 # Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
4 pkgname=haskell-data-default
7 pkgdesc="A class for types with a default value"
8 url="https://hackage.haskell.org/package/${_hkgname}"
11 depends=('ghc-libs' 'haskell-data-default-class' 'haskell-data-default-instances-containers' 'haskell-data-default-instances-dlist' 'haskell-data-default-instances-old-locale')
13 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
14 sha512sums=('a31260c71178641e41f16fc504620f19ad04a44d2d095c96225b6027184c01ec0bf47effab5344816e438d7c37e34189255a9d3a5d643219b37054dde679d1bd')
17 cd ${srcdir}/${_hkgname}-${pkgver}
18 runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
19 --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
20 --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid -fnetwork-uri
21 runhaskell Setup build $MAKEFLAGS
22 runhaskell Setup register --gen-script
23 runhaskell Setup unregister --gen-script
24 sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
25 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
31 install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
32 install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
33 runhaskell Setup copy --destdir="$pkgdir"
34 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
35 rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE