[arch-commits] Commit in stylish-haskell/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jun 18 12:22:39 UTC 2017
Date: Sunday, June 18, 2017 @ 12:22:38
Author: felixonmars
Revision: 238066
upgpkg: stylish-haskell 0.7.1.0-35
rebuild with ghc,8.0.2
Modified:
stylish-haskell/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-18 12:20:15 UTC (rev 238065)
+++ PKGBUILD 2017-06-18 12:22:38 UTC (rev 238066)
@@ -4,14 +4,13 @@
pkgname=stylish-haskell
pkgver=0.7.1.0
-pkgrel=34
+pkgrel=35
pkgdesc="Haskell code prettifier"
url="https://github.com/jaspervdj/stylish-haskell"
license=("custom:BSD3")
arch=('i686' 'x86_64')
-depends=('gmp' 'libffi')
-makedepends=("ghc=8.0.1" "haskell-aeson" "haskell-src-exts" "haskell-mtl"
- "haskell-optparse-applicative" "haskell-strict" "haskell-syb" "haskell-yaml")
+depends=("ghc" "haskell-aeson" "haskell-src-exts" "haskell-mtl" "haskell-optparse-applicative"
+ "haskell-strict" "haskell-syb" "haskell-yaml")
source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('570a643ae6798995a43b0b357005e71c1529ed43ebafa2748fc97a236e0c01bc')
@@ -18,16 +17,29 @@
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- runhaskell Setup configure -O --prefix=/usr \
- --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname"
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-old_base
runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
package() {
cd "${srcdir}/${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"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
runhaskell Setup copy --destdir="${pkgdir}"
- rm -r "$pkgdir"/usr/{lib,share/doc}
-
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
}
More information about the arch-commits
mailing list