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

Felix Yan felixonmars at archlinux.org
Sun Dec 9 19:49:11 UTC 2018


    Date: Sunday, December 9, 2018 @ 19:49:11
  Author: felixonmars
Revision: 413053

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 413052, happy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-12-09 19:49:11 UTC (rev 413053)
@@ -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.9
+pkgrel=7
+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