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

Felix Yan felixonmars at archlinux.org
Tue Mar 20 07:20:19 UTC 2018


    Date: Tuesday, March 20, 2018 @ 07:20:18
  Author: felixonmars
Revision: 309488

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

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

Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 309487, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-03-20 07:20:18 UTC (rev 309488)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.5
+pkgrel=101
+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-decimal'
+         'haskell-docopt' 'haskell-either' 'haskell-microlens' 'haskell-microlens-platform'
+         'haskell-safe' 'haskell-servant-server' 'haskell-servant-swagger' 'haskell-swagger2'
+         'haskell-text' 'haskell-wai' 'haskell-wai-extra' 'haskell-warp')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('237eb5f6b88c1d8fc3647e6ce5d2d1db70abaf4c5f3b3c3392327333a539df49227d2063f0d55ac9cd4c9982c566f3733412b683a87c762b064f4b1c5aa1daae')
+
+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"
+}



More information about the arch-commits mailing list