Date: Saturday, September 3, 2022 @ 08:54:46 Author: felixonmars Revision: 1291174
archrelease: copy trunk to community-staging-x86_64 Added: hasktags/repos/community-staging-x86_64/ hasktags/repos/community-staging-x86_64/PKGBUILD (from rev 1291173, hasktags/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: hasktags/repos/community-staging-x86_64/PKGBUILD (from rev 1291173, hasktags/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-09-03 08:54:46 UTC (rev 1291174) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hasktags +pkgver=0.72.0 +pkgrel=16 +pkgdesc="Produces ctags \"tags\" and etags \"TAGS\" files for Haskell programs" +url="https://github.com/MarcWeber/hasktags" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-json' 'haskell-microlens-platform' 'haskell-optparse-applicative' + 'haskell-utf8-string') +makedepends=('ghc' 'haskell-hunit') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('dfbcf85174391db182525285474d8d8b4d78229d6f55d14868ba8d13beb9ad0dff74f4aedea23fdfaa41f59867cf96e801e2a7d9009df95874fdcb5a2fa89b38') + +build() { + cd $pkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + -f-debug --ghc-option='-pie' + runhaskell Setup build $MAKEFLAGS + 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 $pkgname-$pkgver + runhaskell Setup test --show-details=direct +} + +package() { + cd $pkgname-$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 +}