[arch-commits] Commit in happy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 31 17:13:17 UTC 2018
Date: Thursday, May 31, 2018 @ 17:13:16
Author: felixonmars
Revision: 335047
archrelease: copy trunk to community-staging-x86_64
Added:
happy/repos/community-staging-x86_64/
happy/repos/community-staging-x86_64/PKGBUILD
(from rev 335046, happy/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: happy/repos/community-staging-x86_64/PKGBUILD (from rev 335046, happy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-31 17:13:16 UTC (rev 335047)
@@ -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=4
+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