[arch-commits] Commit in hlint/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri Dec 25 02:43:08 UTC 2015
Date: Friday, December 25, 2015 @ 03:43:08
Author: fyan
Revision: 154462
upgpkg: hlint 1.9.25-4
Modified:
hlint/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++---------------------
1 file changed, 8 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-24 23:12:12 UTC (rev 154461)
+++ PKGBUILD 2015-12-25 02:43:08 UTC (rev 154462)
@@ -4,41 +4,28 @@
pkgname=hlint
pkgver=1.9.25
-pkgrel=3
+pkgrel=4
pkgdesc="Source code suggestions"
url="http://community.haskell.org/~ndm/hlint/"
license=("custom:BSD3")
arch=('i686' 'x86_64')
-depends=("ghc=7.10.3" "haskell-ansi-terminal" "haskell-cmdargs" "haskell-cpphs"
- "haskell-extra" "haskell-src-exts" "haskell-hscolour" "haskell-uniplate"
- "haskell-refact")
-options=('staticlibs')
+depends=('gmp' 'libffi')
+makedepends=("ghc=7.10.3" "haskell-ansi-terminal" "haskell-cmdargs" "haskell-cpphs"
+ "haskell-extra" "haskell-src-exts" "haskell-hscolour" "haskell-uniplate"
+ "haskell-refact")
source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-install="${pkgname}.install"
sha256sums=('df91b43493f0c408fc6b7f9a1f65802e9dc49ff5c126b5b8f8464d8db7443f95')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- runhaskell Setup configure -O --enable-library-profiling --enable-shared \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
- --libsubdir=\$compiler/site-local/\$pkgid \
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
-fgpl -fthreaded
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.*unregister[^ ]* |&'--force' |" unregister.sh
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
-
- install -D -m744 register.sh "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
- install -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.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}
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
}
More information about the arch-commits
mailing list