Upgraded haskell-alsa-mixer to 0.1.2

This commit is contained in:
Cedric Girard 2011-06-15 10:29:49 +02:00
parent da0cc381b0
commit bc2b8dbda1
2 changed files with 22 additions and 4 deletions

View File

@ -1,21 +1,21 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
_hkgname=alsa-mixer
pkgname=haskell-alsa-mixer
pkgver=0.1.1
pkgver=0.1.2
pkgrel=1
pkgdesc="Bindings to the ALSA simple mixer API."
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=()
depends=('ghc' 'haskell-alsa-core<0.6' 'alsa-lib')
depends=('ghc' 'haskell-alsa-core<0.6' 'alsa-lib' 'c2hs')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('a1e4408ed30083d8388d46c7edb63a09')
md5sums=('839b461c977d21c61ee49a1ed1d67482')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
runhaskell Setup configure -O --enable-split-objs --enable-shared \
runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \
--prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup haddock

View File

@ -0,0 +1,18 @@
HS_DIR=usr/share/haskell/haskell-alsa-mixer
post_install() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_upgrade() {
${HS_DIR}/unregister.sh
}
post_upgrade() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_remove() {
${HS_DIR}/unregister.sh
}
post_remove() {
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}