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

Felix Yan felixonmars at archlinux.org
Fri Sep 22 06:12:51 UTC 2017


    Date: Friday, September 22, 2017 @ 06:12:50
  Author: felixonmars
Revision: 259341

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 259340, hledger-api/trunk/PKGBUILD)
  hledger-api/repos/community-staging-x86_64/
  hledger-api/repos/community-staging-x86_64/PKGBUILD
    (from rev 259340, 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 259340, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-09-22 06:12:50 UTC (rev 259341)
@@ -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=12
+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 259340, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-09-22 06:12:50 UTC (rev 259341)
@@ -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=12
+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