[arch-commits] Commit in hledger-api/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jul 4 21:09:20 UTC 2018
Date: Wednesday, July 4, 2018 @ 21:09:20
Author: felixonmars
Revision: 352207
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 352206, hledger-api/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 352206, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-04 21:09:20 UTC (rev 352207)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.9.1
+pkgrel=46
+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=('95015d582907be112b2cf910139850f147e2efd96d42436e12434d9977133db1dbbd39e97ba35247ccb1d84b754ebd15d5195ebe8d93f31df0f9651b37359c37')
+
+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