[arch-commits] Commit in haskell-hscolour/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Nov 29 07:16:47 UTC 2017
Date: Wednesday, November 29, 2017 @ 07:16:46
Author: felixonmars
Revision: 270607
upgpkg: haskell-hscolour 1.24.3-1
rebuild with hscolour,1.24.3
Modified:
haskell-hscolour/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-29 06:23:09 UTC (rev 270606)
+++ PKGBUILD 2017-11-29 07:16:46 UTC (rev 270607)
@@ -4,8 +4,8 @@
_hkgname=hscolour
pkgname=haskell-hscolour
-pkgver=1.24.2
-pkgrel=2
+pkgver=1.24.3
+pkgrel=1
pkgdesc="Colourise Haskell code."
url="http://code.haskell.org/~malcolm/hscolour/"
license=("LGPL")
@@ -13,11 +13,15 @@
depends=('ghc-libs')
makedepends=('ghc')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('7dcc8e679ea8729fa8bc6bccb8d4a9e137f38a47ceac884c7173b088e1e52cf72d072fb9d7be54cca1e366212e86d7133875ef7b76af3ae1db812755280642b6')
+sha512sums=('27081cb3d19061d64f0829ce16b2568b5f6c682fbaf6032de87ac6de49fd739643b9607b306ff48cb4af0193e5a0f2b7e5489d77aa10bd883c3437b07bd5de9d')
+prepare() {
+ sed -i 's/Char.isUpper/isUpper/' $_hkgname-$pkgver/Language/Haskell/HsColour/Classify.hs
+}
+
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
-
+
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
@@ -30,7 +34,7 @@
package() {
cd "${srcdir}/${_hkgname}-${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"
runhaskell Setup copy --destdir="${pkgdir}"
More information about the arch-commits
mailing list