[arch-commits] Commit in hledger-api/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon May 14 08:28:01 UTC 2018
Date: Monday, May 14, 2018 @ 08:28:00
Author: felixonmars
Revision: 321851
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 321850, hledger-api/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: hledger-api/repos/community-staging-x86_64/PKGBUILD (from rev 321850, hledger-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-14 08:28:00 UTC (rev 321851)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hledger-api
+pkgver=1.9
+pkgrel=18
+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=('d3d0f49138f1fe58fe31e8e06a406dc379771242385ed82cc85cd0b3ac8de522dc22024dc98ab3a88139206b5bded4fbbc7209c89633047f4736ae18ce93c918')
+
+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