[arch-commits] Commit in hledger-api/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Sep 21 14:12:40 UTC 2017
Date: Thursday, September 21, 2017 @ 14:12:40
Author: felixonmars
Revision: 259167
upgpkg: hledger-api 1.3.1-11
rebuild with aeson,1.2.2.0
Modified:
hledger-api/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-09-21 13:58:08 UTC (rev 259166)
+++ PKGBUILD 2017-09-21 14:12:40 UTC (rev 259167)
@@ -4,7 +4,7 @@
pkgname=hledger-api
pkgver=1.3.1
-pkgrel=10
+pkgrel=11
pkgdesc="Web API server for the hledger accounting tool"
url="http://hledger.org"
license=("GPL")
@@ -17,9 +17,14 @@
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 \
+ 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
}
More information about the arch-commits
mailing list