Date: Sunday, December 9, 2018 @ 22:27:53 Author: felixonmars Revision: 413355
archrelease: copy trunk to community-staging-x86_64 Added: haskell-cpphs/repos/community-staging-x86_64/ haskell-cpphs/repos/community-staging-x86_64/PKGBUILD (from rev 413354, haskell-cpphs/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: haskell-cpphs/repos/community-staging-x86_64/PKGBUILD (from rev 413354, haskell-cpphs/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-12-09 22:27:53 UTC (rev 413355) @@ -0,0 +1,36 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=cpphs +pkgname=haskell-cpphs +pkgver=1.20.8 +pkgrel=13 +pkgdesc="A liberalised re-implementation of cpp, the C pre-processor." +url="http://projects.haskell.org/cpphs/" +license=("LGPL") +arch=('x86_64') +depends=('ghc-libs' "haskell-old-locale" "haskell-old-time" "haskell-polyparse") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('ec9323f9e1cb6de450d8af6b6b98005bf46427c2926694e1cba942fd54a03d9d36a7e8f2541eb095949110ddaf6317597699b7c4472942a509d496cb9b4da747') + +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 + 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" +}