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

Felix Yan felixonmars at archlinux.org
Sat Dec 30 11:23:36 UTC 2017


    Date: Saturday, December 30, 2017 @ 11:23:35
  Author: felixonmars
Revision: 277050

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

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

Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 277049, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-30 11:23:35 UTC (rev 277050)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.4
+pkgrel=34
+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=('e71231c8d4602affdfcdd229fe488331c4f827c9274d17e0e711eea853e4dbc51bb47652081ae7d822e836b8932970fc01169649f1652716c00036be45a8e547')
+
+prepare() {
+    sed -i 's/, swagger2 >= 2.0 && < 2.2/, swagger2 >= 2.0/' $pkgname-$pkgver/$pkgname.cabal
+}
+
+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