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

Felix Yan felixonmars at archlinux.org
Sat May 25 06:46:49 UTC 2019


    Date: Saturday, May 25, 2019 @ 06:46:49
  Author: felixonmars
Revision: 469805

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

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

Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 469804, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-25 06:46:49 UTC (rev 469805)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.14
+pkgrel=53
+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=('551ad15b39adbcd1c3548bb75acd83193f6a99d8bab15cdc7ef34aa022dfd4d19b14c105ae88e4fdef93eca5ace7791e7b19d3eff532ada7079b4e071bd4ab69')
+
+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