Date: Friday, October 9, 2020 @ 11:22:21 Author: felixonmars Revision: 722450
addpkg: haskell-implicit-hie 0.1.1.0-1 Added: haskell-implicit-hie/ haskell-implicit-hie/repos/ haskell-implicit-hie/trunk/ haskell-implicit-hie/trunk/PKGBUILD ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Added: haskell-implicit-hie/trunk/PKGBUILD =================================================================== --- haskell-implicit-hie/trunk/PKGBUILD (rev 0) +++ haskell-implicit-hie/trunk/PKGBUILD 2020-10-09 11:22:21 UTC (rev 722450) @@ -0,0 +1,46 @@ +# This file was generated by arch-hs, please check it manually. +# Maintainer: Your Name <yourem...@domain.com> + +_hkgname=implicit-hie +pkgname=haskell-implicit-hie +pkgver=0.1.1.0 +pkgrel=1 +pkgdesc="Auto generate hie-bios cradles & hie.yaml" +url="https://github.com/Avi-D-coder/implicit-hie#readme" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-attoparsec' 'haskell-filepattern' 'haskell-yaml') +makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-attoparsec') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha256sums=('cbebe4be837a96851041ea44c12fa8d6a1f75665fbbb0735d13b5cc6170f1e11') + +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 \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + + 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 -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +} \ No newline at end of file