Date: Friday, July 13, 2018 @ 09:03:13
  Author: felixonmars
Revision: 358493

archrelease: copy trunk to community-staging-x86_64

Added:
  hledger-api/repos/community-staging-x86_64/
  hledger-api/repos/community-staging-x86_64/PKGBUILD
    (from rev 358492, hledger-api/trunk/PKGBUILD)

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

Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 358492, 
hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-13 09:03:13 UTC (rev 358493)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+pkgname=hledger-api
+pkgver=1.10
+pkgrel=5
+pkgdesc="Web API server for the hledger accounting tool"
+url="http://hledger.org";
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'hledger' 'haskell-hledger-lib' 'haskell-aeson' 
'haskell-data-default'
+         'haskell-decimal' 'haskell-docopt' 'haskell-either' 
'haskell-microlens'
+         'haskell-microlens-platform' 'haskell-safe' 'haskell-servant-server'
+         'haskell-servant-swagger' 'haskell-swagger2' 'haskell-wai' 
'haskell-wai-extra'
+         'haskell-warp')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('8c51c80ae911782fac5108949d67d52c81bdbafc562eeea9fc817a29362da85f7dd4a2d860d2fb25bea880df786e4886dca9561c9b2b9c7d7f2a4ecef6091834')
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    runhaskell Setup configure -O --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname"
+    runhaskell Setup build
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}

Reply via email to