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

Felix Yan felixonmars at archlinux.org
Thu Apr 23 09:00:33 UTC 2020


    Date: Thursday, April 23, 2020 @ 09:00:32
  Author: felixonmars
Revision: 617821

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 617820, happy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-23 09:00:32 UTC (rev 617821)
@@ -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.19.12
+pkgrel=6
+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=('20f36b17adf7330852fd4c05335adbf31e6f19907b4ec247c85a40ee1f8496c6dc432055026696906b149cec7f982b88c9a2eeedf14a11d34b1f6f73272e5208')
+
+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
+}
+
+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