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

Felix Yan felixonmars at archlinux.org
Mon Feb 8 22:36:34 UTC 2021


    Date: Monday, February 8, 2021 @ 22:36:34
  Author: felixonmars
Revision: 850343

archrelease: copy trunk to community-staging-x86_64

Added:
  happy/repos/community-staging-x86_64/
  happy/repos/community-staging-x86_64/PKGBUILD
    (from rev 850342, happy/trunk/PKGBUILD)

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

Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 850342, happy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-08 22:36:34 UTC (rev 850343)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+# Contributor: simo <simo at archlinux.org>
+# Contributor: Vesa Kaihlavirta <vegai at iki.fi>
+
+pkgname=happy
+pkgver=1.20.0
+pkgrel=3
+pkgdesc="The Parser Generator for Haskell"
+url="https://hackage.haskell.org/package/happy"
+arch=('x86_64')
+license=("custom:BSD2")
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('2c19e6e13032ead435495aab232192cf0ad9fe5e3e04c79b40b586272fb0208284815cf5c15d609f75387e7fe91ca0932b675bcaa95552f62ad08a12701649ce')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --ghc-option='-dynload=deploy' --prefix=/usr --datasubdir="$pkgname"
+  runhaskell Setup build $MAKEFLAGS
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  runhaskell Setup copy --destdir="${pkgdir}"
+  rm -r "$pkgdir/usr/share/doc"
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list