Date: Thursday, February 7, 2019 @ 19:29:43
  Author: felixonmars
Revision: 430323

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 430322, hledger-api/trunk/PKGBUILD)

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

Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 430322, 
hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-02-07 19:29:43 UTC (rev 430323)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+pkgname=hledger-api
+pkgver=1.13
+pkgrel=4
+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=('26a692f759c7d15c055e4a2b212fce9694e3dc9a61a4e28d93e02bc96996c815d20c9650abe81b2385d22a8a2824ab17734aeda40dceeb0b414c2ecd0114b3d6')
+
+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