Date: Wednesday, February 27, 2019 @ 12:02:08 Author: felixonmars Revision: 436368
archrelease: copy trunk to community-staging-x86_64 Added: haskell-docopt/repos/community-staging-x86_64/ haskell-docopt/repos/community-staging-x86_64/PKGBUILD (from rev 436367, haskell-docopt/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-docopt/repos/community-staging-x86_64/PKGBUILD (from rev 436367, haskell-docopt/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-02-27 12:02:08 UTC (rev 436368) @@ -0,0 +1,39 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=docopt +pkgname=haskell-docopt +pkgver=0.7.0.5 +pkgrel=20 +pkgdesc="A command-line interface parser that will make you smile" +url="https://github.com/docopt/docopt.hs" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' "haskell-th-lift") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('68c46287573cbf6cb0e2f01ba117f70a6598e3581f1ca2de6920909b37d8851651d41438a51ae363cb51bd06422e9dba4aa948320e32f904c4b950e764c7e635') + +build() { + cd $_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 \ + -ftemplate-haskell + 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 $_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" +}