Date: Saturday, December 30, 2017 @ 11:46:05 Author: felixonmars Revision: 277082
archrelease: copy trunk to community-staging-x86_64 Added: haskell-xml-types/repos/community-staging-x86_64/ haskell-xml-types/repos/community-staging-x86_64/PKGBUILD (from rev 277081, haskell-xml-types/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-xml-types/repos/community-staging-x86_64/PKGBUILD (from rev 277081, haskell-xml-types/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-12-30 11:46:05 UTC (rev 277082) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=xml-types +pkgname=haskell-xml-types +pkgver=0.3.6 +pkgrel=11 +pkgdesc="Basic types for representing XML" +url="https://john-millikin.com/software/haskell-xml/" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' "haskell-text") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('552f2230e55bc8e45a62e06bbe8c0cb7844c5d73185303b3290632a816c5956b781fff1b0a679ce33b1759f1b9c815dab8063f6b9ced0c9e94ac314cf77b34ea') + +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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt" +}