1 # Maintainer: David Runge <dvzrv@archlinux.org>
7 pkgdesc="Haskell Open Sound Control"
9 url="https://github.com/rd--/hosc"
11 depends=('ghc-libs' 'haskell-blaze-builder' 'haskell-data-binary-ieee754' 'haskell-network')
13 #source=("$pkgname-$pkgver.tar.gz::https://github.com/rd--/hosc/archive/${pkgver}.tar.gz")
14 source=("https://hackage.haskell.org/packages/archive/$_name/$pkgver/$_name-$pkgver.tar.gz")
15 sha512sums=('f04ea2cbb8a946c6aef246c4785518dd32f134c6d96643487402864d96a468244917091d36e8bf220ca64c5aab019ee859291354c3d8e50860d4169e9a6d0081')
18 mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
24 runhaskell Setup configure -O \
26 --enable-executable-dynamic \
27 --disable-library-vanilla \
29 --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
31 --dynlibdir=/usr/lib \
32 --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
34 runhaskell Setup build $MAKEFLAGS
35 runhaskell Setup register --gen-script
36 runhaskell Setup unregister --gen-script
37 sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
38 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
43 runhaskell Setup test --show-details=direct
48 runhaskell Setup copy --destdir="${pkgdir}"
49 install -vDm 744 register.sh "$pkgdir/usr/share/haskell/register/$pkgname.sh"
50 install -vDm 744 unregister.sh "$pkgdir/usr/share/haskell/unregister/$pkgname.sh"