Date: Wednesday, July 11, 2018 @ 08:24:16 Author: felixonmars Revision: 356990
archrelease: copy trunk to community-staging-x86_64 Added: haskell-generic-deriving/repos/community-staging-x86_64/ haskell-generic-deriving/repos/community-staging-x86_64/PKGBUILD (from rev 356989, haskell-generic-deriving/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: haskell-generic-deriving/repos/community-staging-x86_64/PKGBUILD (from rev 356989, haskell-generic-deriving/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-11 08:24:16 UTC (rev 356990) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=generic-deriving +pkgname=haskell-generic-deriving +pkgver=1.12.2 +pkgrel=6 +pkgdesc="Generic programming library for generalised deriving." +url="https://github.com/dreixel/generic-deriving" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-th-abstraction') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('6abbc9508ab4c85536cba1cdc8d086952f0268527cd2db058492bc76d94bda58d99c47132c6deb56a24000b9fad0b043582dbc0af740c7731c1a4ebf510be7af') + +prepare() { + cd $_hkgname-$pkgver + sed -e 's/<.*2.13/<3/' -i $_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}" --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -fbase-4-9 + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +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" +}