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

Felix Yan felixonmars at archlinux.org
Mon Sep 25 01:41:29 UTC 2017


    Date: Monday, September 25, 2017 @ 01:41:28
  Author: felixonmars
Revision: 260478

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

-----------------------------------+
 community-staging-i686/PKGBUILD   |   36 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

Copied: hledger-api/repos/community-staging-i686/PKGBUILD (from rev 260477, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-09-25 01:41:28 UTC (rev 260478)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.3.1
+pkgrel=13
+pkgdesc="Web API server for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' '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=('4425cfa786b6d6b7db9a48c1d816cff313bd1258c83b882aadd2fd53fe9fa3986158a6254761a787dd993528454f04f31aaad53bbed6a347c6f048d96ded0996')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    sed -i 's/instance ToSchema Price/instance ToSchema Price where\n  declareNamedSchema = genericDeclareNamedSchemaUnrestricted defaultSchemaOptions/' hledger-api.hs
+}
+
+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"
+}

Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 260477, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-09-25 01:41:28 UTC (rev 260478)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.3.1
+pkgrel=13
+pkgdesc="Web API server for the hledger accounting tool"
+url="http://hledger.org"
+license=("GPL")
+arch=('i686' '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=('4425cfa786b6d6b7db9a48c1d816cff313bd1258c83b882aadd2fd53fe9fa3986158a6254761a787dd993528454f04f31aaad53bbed6a347c6f048d96ded0996')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    sed -i 's/instance ToSchema Price/instance ToSchema Price where\n  declareNamedSchema = genericDeclareNamedSchemaUnrestricted defaultSchemaOptions/' hledger-api.hs
+}
+
+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