[arch-commits] Commit in alex/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Feb 8 22:37:18 UTC 2021


    Date: Monday, February 8, 2021 @ 22:37:17
  Author: felixonmars
Revision: 850345

archrelease: copy trunk to community-staging-x86_64

Added:
  alex/repos/community-staging-x86_64/
  alex/repos/community-staging-x86_64/PKGBUILD
    (from rev 850344, alex/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: alex/repos/community-staging-x86_64/PKGBUILD (from rev 850344, alex/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-08 22:37:17 UTC (rev 850345)
@@ -0,0 +1,39 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Vesa Kaihlavirta <vegai at iki.fi>
+# Contributor: Philip Nilsson <pnilsson at nullref.se>
+
+pkgname=alex
+pkgver=3.2.6
+pkgrel=3
+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:


More information about the arch-commits mailing list