# Contributor: River Dillon # Maintainer: River Dillon pkgname=alex pkgver=3.2.7.4 pkgrel=0 pkgdesc="lexical analyser generator for Haskell" url="https://www.haskell.org/alex/" arch="x86_64 aarch64" # limited by ghc license="BSD-3-Clause" makedepends="ghc libffi-dev" subpackages="$pkgname-doc" source=" https://hackage.haskell.org/package/alex-$pkgver/alex-$pkgver.tar.gz " build() { # ghc version path export PATH="$PATH:/usr/lib/llvm14/bin" runhaskell Setup.hs configure \ "--prefix=/usr" \ "--datasubdir=$pkgname" \ "--docdir=\$datadir/doc/$pkgname" \ "--enable-tests" runhaskell Setup.hs build -j "--ghc-options=-j -O1" } check() { runhaskell Setup.hs test } package() { docdir="usr/share/doc/$pkgname" runhaskell Setup.hs copy "--destdir=$pkgdir" rm "$pkgdir/$docdir/LICENSE" # no need to include a standard license } sha512sums=" 8d78d932058a3f8a0f429f31073ec820f8c75607555c5700467f581d9145296544bc846d018e682fdd57c064cb209f36a9e46dd9057aa93081994b5c4a94aaaa alex-3.2.7.4.tar.gz "