Advertisement
brofi

PKGBUILD haskell-alsa-mixer

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