[arch-commits] Commit in ghc-mod/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue May 30 01:28:34 UTC 2017
Date: Tuesday, May 30, 2017 @ 01:28:32
Author: felixonmars
Revision: 231093
upgpkg: ghc-mod 5.8.0.0-1
rebuild with hlint,2.0.8
Modified:
ghc-mod/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-30 01:03:29 UTC (rev 231092)
+++ PKGBUILD 2017-05-30 01:28:32 UTC (rev 231093)
@@ -4,23 +4,29 @@
pkgbase=ghc-mod
pkgname=(ghc-mod haskell-ghc-mod)
-pkgver=5.7.0.0
-pkgrel=33
+pkgver=5.8.0.0
+_commit=9ab25526b8690daecaa3d34a7e30f022f7b388bc
+pkgrel=1
pkgdesc="Happy Haskell Programming"
url="http://www.mew.org/~kazu/proj/ghc-mod/"
license=("AGPL3")
arch=('i686' 'x86_64')
-makedepends=("ghc=8.0.1" "git" "haskell-cabal-helper" "haskell-djinn-ghc" "haskell-extra"
+makedepends=("ghc=8.0.1" "haskell-cabal-helper" "haskell-djinn-ghc" "haskell-extra"
"haskell-fclabels" "haskell-ghc-paths" "haskell-ghc-syb-utils" "haskell-src-exts"
"haskell-hlint" "haskell-monad-control" "haskell-monad-journal" "haskell-mtl"
"haskell-old-time" "haskell-optparse-applicative" "haskell-pipes" "haskell-safe"
"haskell-semigroups" "haskell-split" "haskell-syb" "haskell-temporary" "haskell-text"
"haskell-transformers-base")
-source=("git+https://github.com/DanielG/ghc-mod.git#tag=v$pkgver")
-sha256sums=('SKIP')
+source=("$pkgbase-$_commit.tar.gz::https://github.com/DanielG/ghc-mod/archive/$_commit.tar.gz")
+sha256sums=('75d83356999c2a1e6ea1d9c4340dcf3d260d2b462c4e9691ceb1f28385b3e70b')
+prepare() {
+ cd $pkgbase-$_commit
+ sed -i 's/, optparse-applicative == 0.13.0.*/, optparse-applicative == 0.13.*/' ghc-mod.cabal
+}
+
build() {
- cd "${srcdir}/${pkgbase}"
+ cd $pkgbase-$_commit
runhaskell Setup configure -O --enable-library-profiling --enable-shared \
--prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
@@ -36,7 +42,7 @@
package_ghc-mod() {
depends=('cabal-helper' 'ghc')
- cd "${srcdir}/${pkgbase}"
+ cd $pkgbase-$_commit
runhaskell Setup copy --destdir="${pkgdir}"
rm -r "$pkgdir"/usr/{lib,share/doc}
@@ -48,7 +54,7 @@
pkgdesc="Happy Haskell Programming (docs and libraries)"
depends=("${makedepends[@]}" 'ghc-mod')
- cd "${srcdir}/${pkgbase}"
+ cd $pkgbase-$_commit
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