Date: Sunday, November 26, 2017 @ 07:26:25 Author: felixonmars Revision: 268758
archrelease: copy trunk to community-staging-x86_64 Added: haskell-optional-args/repos/community-staging-x86_64/ haskell-optional-args/repos/community-staging-x86_64/PKGBUILD (from rev 268757, haskell-optional-args/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-optional-args/repos/community-staging-x86_64/PKGBUILD (from rev 268757, haskell-optional-args/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-11-26 07:26:25 UTC (rev 268758) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> + +_hkgname=optional-args +pkgname=haskell-optional-args +pkgver=1.0.1 +pkgrel=5 +pkgdesc="Optional function arguments" +url="https://github.com/Gabriel439/Haskell-Optional-Args-Library" +license=('custom:BSD3') +arch=('x86_64') +depends=('ghc-libs') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('447aff69cdc9c87ee0cb2cccfe09084d4c9a8db7993b2f80bd4316eaf31ac167e40783933949df1cbf37b5975a798c9dd9fed0235537ed316ac5af9267721f2b') + +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" +}