Advertisement
brofi

PKGBUILD haskell-alsa-core

Apr 5th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.58 KB | None | 0 0
  1. # Maintainer: Andy B. <brofi.archlinux at gmail dot com>
  2.  
  3. pkgname=haskell-alsa-core
  4. _hkgname=alsa-core
  5. pkgver=0.5.0.1
  6. pkgrel=1
  7. pkgdesc="Provides access to ALSA infrastructure"
  8. url=https://hackage.haskell.org/package/alsa-core
  9. license=('BSD')
  10. arch=('i686' 'x86_64')
  11. depends=('haskell-base' 'haskell-extensible-exceptions')
  12. source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
  13. sha256sums=('eb50495ef05ecc7c06a0147da7f0d3efde832a44d23caaf5172dc114882270ab')
  14. install="${pkgname}.install"
  15. options=('staticlibs')
  16.  
  17. build() {
  18.     cd ${_hkgname}-${pkgver}
  19.  
  20.     runhaskell Setup configure -O -p --enable-library-profiling --enable-shared \
  21.         --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
  22.         --libsubdir=\$compiler/site-local/\$pkgid
  23.     runhaskell Setup build
  24.     runhaskell Setup haddock
  25.     runhaskell Setup register --gen-script
  26.     runhaskell Setup unregister --gen-script
  27.     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  28. }
  29.  
  30. package() {
  31.     cd ${_hkgname}-${pkgver}
  32.     install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
  33.     install    -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
  34.     install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
  35.     ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
  36.     runhaskell Setup copy --destdir="${pkgdir}"
  37.     install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  38.     rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement