[arch-commits] Commit in hindent/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Feb 14 18:04:35 UTC 2018
Date: Wednesday, February 14, 2018 @ 18:04:34
Author: felixonmars
Revision: 294441
upgpkg: hindent 5.2.5-1
rebuild with haskell-src-exts,1.20.1 hlint,2.1 hoogle,5.0.16 stylish-haskell,0.9.0.2 hindent,5.2.5
Modified:
hindent/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-02-14 18:03:46 UTC (rev 294440)
+++ PKGBUILD 2018-02-14 18:04:34 UTC (rev 294441)
@@ -3,24 +3,24 @@
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
pkgname=hindent
-pkgver=5.2.4.1
-pkgrel=26
+pkgver=5.2.5
+pkgrel=1
pkgdesc="Extensible Haskell pretty printer"
url="https://github.com/commercialhaskell/hindent"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-descriptive" "haskell-exceptions" "haskell-monad-loops" "haskell-mtl"
- "haskell-path" "haskell-path-io" "haskell-src-exts" "haskell-text" "haskell-unix-compat"
- "haskell-utf8-string" "haskell-yaml")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 'haskell-monad-loops' 'haskell-mtl'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 'haskell-text' 'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('262db860d554f617d9317b6a32af2944e2d7b98d4c0c43baa9c7a90c08ffb0b34ba41701796f22d7a562ec7ba07b53bd6bb3e4ebfaf320ba1c009434fc8a3943')
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd $pkgname-$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}" --enable-tests --datasubdir="$pkgname" \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -29,8 +29,13 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $pkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd $pkgname-$pkgver
install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
More information about the arch-commits
mailing list