Date: Tuesday, August 15, 2017 @ 06:08:31 Author: felixonmars Revision: 250585
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-gsasl/repos/community-staging-i686/ haskell-gsasl/repos/community-staging-i686/PKGBUILD (from rev 250584, haskell-gsasl/trunk/PKGBUILD) haskell-gsasl/repos/community-staging-x86_64/ haskell-gsasl/repos/community-staging-x86_64/PKGBUILD (from rev 250584, haskell-gsasl/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) Copied: haskell-gsasl/repos/community-staging-i686/PKGBUILD (from rev 250584, haskell-gsasl/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-08-15 06:08:31 UTC (rev 250585) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=gsasl +pkgname=haskell-gsasl +pkgver=0.3.6 +pkgrel=4 +pkgdesc="Bindings for GNU libgsasl" +url="https://john-millikin.com/software/haskell-gsasl/" +license=("GPL3") +arch=('i686' 'x86_64') +depends=('ghc-libs' "gsasl") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha256sums=('786036025e5d5649c029c1db23c395e1592c073a58848ae4afe4f2797de1f931') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --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}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} Copied: haskell-gsasl/repos/community-staging-x86_64/PKGBUILD (from rev 250584, haskell-gsasl/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-08-15 06:08:31 UTC (rev 250585) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=gsasl +pkgname=haskell-gsasl +pkgver=0.3.6 +pkgrel=4 +pkgdesc="Bindings for GNU libgsasl" +url="https://john-millikin.com/software/haskell-gsasl/" +license=("GPL3") +arch=('i686' 'x86_64') +depends=('ghc-libs' "gsasl") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha256sums=('786036025e5d5649c029c1db23c395e1592c073a58848ae4afe4f2797de1f931') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --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}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +}