Date: Thursday, September 13, 2018 @ 22:20:56 Author: felixonmars Revision: 380694
addpkg: haskell-ghc-tcplugins-extra 0.3-1 Added: haskell-ghc-tcplugins-extra/ haskell-ghc-tcplugins-extra/repos/ haskell-ghc-tcplugins-extra/trunk/ haskell-ghc-tcplugins-extra/trunk/PKGBUILD ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Added: haskell-ghc-tcplugins-extra/trunk/PKGBUILD =================================================================== --- haskell-ghc-tcplugins-extra/trunk/PKGBUILD (rev 0) +++ haskell-ghc-tcplugins-extra/trunk/PKGBUILD 2018-09-13 22:20:56 UTC (rev 380694) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <[email protected]> + +_hkgname=ghc-tcplugins-extra +pkgname=haskell-ghc-tcplugins-extra +pkgver=0.3 +pkgrel=1 +pkgdesc="Utilities for writing GHC type-checker plugins" +url="https://github.com/clash-lang/ghc-tcplugins-extra" +license=('custom:BSD2') +arch=('x86_64') +depends=('ghc-libs' 'haskell-ghc') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('67b2787962ed7a7336ca32181f09fc9a7bf045e47fbb77419d848bbe2f635bb5b1b6acbf00a384113e9af0f87f5e101101e685bbb99ea2b3e1741abec0082c88') + +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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +} Property changes on: haskell-ghc-tcplugins-extra/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
