[arch-commits] Commit in haskell-path/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Mar 16 12:08:58 UTC 2020
Date: Monday, March 16, 2020 @ 12:08:57
Author: felixonmars
Revision: 599670
upgpkg: haskell-path 0.7.0-1: rebuild with path 0.7.0
Modified:
haskell-path/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-16 12:06:51 UTC (rev 599669)
+++ PKGBUILD 2020-03-16 12:08:57 UTC (rev 599670)
@@ -3,20 +3,21 @@
_hkgname=path
pkgname=haskell-path
-pkgver=0.6.1
-pkgrel=143
+pkgver=0.7.0
+pkgrel=1
pkgdesc="Path"
url="https://hackage.haskell.org/package/${_hkgname}"
license=("BSD")
arch=('x86_64')
-depends=('ghc-libs' "haskell-aeson" "haskell-exceptions" "haskell-hashable")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-exceptions' 'haskell-hashable')
+makedepends=('ghc' 'haskell-genvalidity' 'haskell-genvalidity-hspec' 'haskell-genvalidity-property'
+ 'haskell-hspec' 'haskell-quickcheck' 'haskell-validity')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('84428bf7215c014b7759c96c4eda2fe7576169a8a906cce493476d6718b069ff90da1745914c0e265e97c96472f7b8ba50a16713468da95adcb755cda9f694f5')
+sha512sums=('b07fc95eab12188d49e4525ea5bbadfda9d5bfb61cc306d624730087d2fc1f946407e4861f7f66de48d9cdf2541591d4518fcc77f28d65671bfa65a963e18a9c')
prepare() {
cd $_hkgname-$pkgver
- sed -i -e 's/<.*0.9/<1/' -e 's/< *1.3/<2/' $_hkgname.cabal
+ sed -i -e 's/< *1.3/<2/' $_hkgname.cabal
}
build() {
@@ -23,7 +24,7 @@
cd $_hkgname-$pkgver
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -32,6 +33,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