Date: Monday, May 21, 2018 @ 07:58:26 Author: felixonmars Revision: 325853
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hinotify/repos/community-staging-x86_64/PKGBUILD (from rev 325852, haskell-hinotify/trunk/PKGBUILD) Deleted: haskell-hinotify/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 83 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 44 insertions(+), 39 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-21 07:58:02 UTC (rev 325852) +++ PKGBUILD 2018-05-21 07:58:26 UTC (rev 325853) @@ -1,39 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=hinotify -pkgname=haskell-hinotify -pkgver=0.3.9 -pkgrel=8 -pkgdesc="Haskell binding to inotify" -url="https://github.com/kolmodin/hinotify.git" -license=("custom:BSD3") -arch=('x86_64') -depends=('ghc-libs' "haskell-async") -makedepends=('ghc') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('cea1fd7304e3fd56cec67b5d17cec6d462cf581ce44b518208a5c07758aadbf85392efd4918dd2fbbbf6b2b433272386eeee13ba0ce1101111ada15fe8942a9a') - -build() { - cd "${srcdir}/${_hkgname}-${pkgver}" - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid - runhaskell Setup build - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script - sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh -} - -package() { - cd "${srcdir}/${_hkgname}-${pkgver}" - - install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" - install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" - runhaskell Setup copy --destdir="${pkgdir}" - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-hinotify/repos/community-staging-x86_64/PKGBUILD (from rev 325852, haskell-hinotify/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-21 07:58:26 UTC (rev 325853) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=hinotify +pkgname=haskell-hinotify +pkgver=0.3.9 +pkgrel=9 +pkgdesc="Haskell binding to inotify" +url="https://github.com/kolmodin/hinotify.git" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-async") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('cea1fd7304e3fd56cec67b5d17cec6d462cf581ce44b518208a5c07758aadbf85392efd4918dd2fbbbf6b2b433272386eeee13ba0ce1101111ada15fe8942a9a') + +prepare () { + cd $_hkgname-$pkgver + sed -i 's/<.*2.2/<3/' $_hkgname.cabal +} + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}