[arch-commits] Commit in haskell-feed/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Nov 9 10:58:21 UTC 2018
Date: Friday, November 9, 2018 @ 10:58:21
Author: felixonmars
Revision: 404335
upgpkg: haskell-feed 1.0.1.0-1
rebuild with feed 1.0.1.0
Modified:
haskell-feed/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-09 10:55:17 UTC (rev 404334)
+++ PKGBUILD 2018-11-09 10:58:21 UTC (rev 404335)
@@ -3,8 +3,8 @@
_hkgname=feed
pkgname=haskell-feed
-pkgver=1.0.0.0
-pkgrel=126
+pkgver=1.0.1.0
+pkgrel=1
pkgdesc="Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds."
url="https://github.com/bergmark/feed"
license=("custom:BSD3")
@@ -12,21 +12,16 @@
depends=('ghc-libs' 'haskell-base-compat' 'haskell-old-locale' 'haskell-old-time' 'haskell-safe'
'haskell-time-locale-compat' 'haskell-utf8-string' 'haskell-xml-types'
'haskell-xml-conduit')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit' 'haskell-test-framework' 'haskell-test-framework-hunit'
+ 'haskell-markdown-unlit')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('dfda1387e2af46fa703634ae3988c243c59bf0c00eefe5ed193c51d5c18131221fa20cfb83404e7c227a2962e4d621186579f7c2d9353d19c01d9277de13ae4d')
+sha512sums=('dd9d96a4fe29df397a5e513c352583548797821c7b07a827a12d967222b30b17d67e928a43f5ff5d23bc955e2e654a759f88ff463413102747db471236dc0f85')
-prepare() {
- sed -e 's/, xml-conduit >= 1.3 && < 1.6/, xml-conduit >= 1.3/' \
- -e 's/<.*4.11/<5/' -e 's/==.*0.9./==0.10./' \
- -i $_hkgname-$pkgver/$_hkgname.cabal
-}
-
build() {
cd $_hkgname-$pkgver
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir="$pkgname" \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir="$pkgname" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -35,6 +30,11 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd $_hkgname-$pkgver
More information about the arch-commits
mailing list