diff --git a/pkgbuild/haskell-alsa-mixer/PKGBUILD b/pkgbuild/haskell-alsa-mixer/PKGBUILD index 19fc219..8c6c3d9 100644 --- a/pkgbuild/haskell-alsa-mixer/PKGBUILD +++ b/pkgbuild/haskell-alsa-mixer/PKGBUILD @@ -1,21 +1,21 @@ # Maintainer: Cedric Girard _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 diff --git a/pkgbuild/haskell-alsa-mixer/haskell-alsa-mixer.install b/pkgbuild/haskell-alsa-mixer/haskell-alsa-mixer.install new file mode 100644 index 0000000..3304426 --- /dev/null +++ b/pkgbuild/haskell-alsa-mixer/haskell-alsa-mixer.install @@ -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) +}