build() {
cd $startdir/src/${pkgname}-${pkgver}
- runhaskell Setup.lhs configure --prefix=/usr || return 1
- runhaskell Setup.lhs build || return 1
- runhaskell Setup.lhs copy --destdir=$startdir/pkg || return 1
+ ghc --make Setup.lhs
+ ./Setup configure --prefix=/usr || return 1
+ ./Setup build || return 1
+ ./Setup copy --destdir=$startdir/pkg || return 1
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
}