Date: Wednesday, December 23, 2020 @ 20:54:46 Author: felixonmars Revision: 785195
archrelease: copy trunk to community-staging-x86_64 Added: alex/repos/community-staging-x86_64/ alex/repos/community-staging-x86_64/PKGBUILD (from rev 785194, alex/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: alex/repos/community-staging-x86_64/PKGBUILD (from rev 785194, alex/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-12-23 20:54:46 UTC (rev 785195) @@ -0,0 +1,39 @@ +# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Vesa Kaihlavirta <ve...@iki.fi> +# Contributor: Philip Nilsson <pnils...@nullref.se> + +pkgname=alex +pkgver=3.2.6 +pkgrel=2 +pkgdesc='Lexical analyser generator for Haskell' +arch=(x86_64) +url='https://hackage.haskell.org/package/alex' +license=(BSD) +depends=(ghc-libs) +makedepends=(ghc happy) +source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('05b6e55e9a1c348aea599d1130780a3d2a0a7c5f1db00b2c98bd34737cac9d48842fb1b1f98947a99d99013f94e39a6ffee1af8546f02fb2d32fcf362ff0f83c') + +build() { + cd $pkgname-$pkgver + runghc Setup.hs configure \ + --prefix=/usr \ + --datasubdir=$pkgname \ + --enable-executable-dynamic \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + runghc Setup.hs build +} + +package() { + cd $pkgname-$pkgver + runghc Setup.hs copy --destdir="$pkgdir" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/alex/BSD3" + + # Doc only contains the license + rm -rf "$pkgdir/usr/share/doc" +} + +# getver: hackage.haskell.org/package/alex/changelog +# vim: ts=2 sw=2 et: