Date: Thursday, September 13, 2018 @ 22:27:24 Author: felixonmars Revision: 380707
addpkg: haskell-ghc-typelits-knownnat 0.5.1-1 Added: haskell-ghc-typelits-knownnat/ haskell-ghc-typelits-knownnat/repos/ haskell-ghc-typelits-knownnat/trunk/ haskell-ghc-typelits-knownnat/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: haskell-ghc-typelits-knownnat/trunk/PKGBUILD =================================================================== --- haskell-ghc-typelits-knownnat/trunk/PKGBUILD (rev 0) +++ haskell-ghc-typelits-knownnat/trunk/PKGBUILD 2018-09-13 22:27:24 UTC (rev 380707) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=ghc-typelits-knownnat +pkgname=haskell-ghc-typelits-knownnat +pkgver=0.5.1 +pkgrel=1 +pkgdesc="Derive KnownNat constraints from other KnownNat constraints" +url="https://github.com/clash-lang/ghc-typelits-knownnat" +license=('custom:BSD2') +arch=('x86_64') +depends=('ghc-libs' 'haskell-ghc' 'haskell-ghc-tcplugins-extra' 'haskell-ghc-typelits-natnormalise') +makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('47b35ddaa892180e6a1b8755f183c45fea3bd6a53d6cd741c9aa0c36dd9efbdf9693194aceea53a8afe07f7edb218bc606c99569a11447b0a8523ff43f8a0879') + +build() { + cd $_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 + 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 $_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-typelits-knownnat/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property