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

Felix Yan felixonmars at archlinux.org
Wed May 16 16:46:01 UTC 2018


    Date: Wednesday, May 16, 2018 @ 16:46:01
  Author: felixonmars
Revision: 322972

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 322971, happy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-05-16 16:46:01 UTC (rev 322972)
@@ -0,0 +1,32 @@
+# $Id$
+# 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.9
+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=('dbaa27a874454d74d2cd88427ce6338ea6b465cc5bf55cb2699491d907bd9ddf7f4871ef1f8a5f10705ecacec581c23c328935962ea388e62a256a1e90c7d1f7')
+
+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