[arch-commits] Commit in shellcheck/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 23 09:53:31 UTC 2018
Date: Wednesday, May 23, 2018 @ 09:53:30
Author: felixonmars
Revision: 328171
archrelease: copy trunk to community-staging-x86_64
Added:
shellcheck/repos/community-staging-x86_64/
shellcheck/repos/community-staging-x86_64/PKGBUILD
(from rev 328170, shellcheck/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: shellcheck/repos/community-staging-x86_64/PKGBUILD (from rev 328170, shellcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-23 09:53:30 UTC (rev 328171)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=ShellCheck
+pkgname=shellcheck
+pkgver=0.4.7.20180521
+_commit=77546fba2f3ff9344dfdf14a79829da618d10653
+pkgrel=4
+pkgdesc="Shell script analysis tool"
+url="http://www.shellcheck.net"
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-quickcheck' 'haskell-regex-tdfa')
+makedepends=('ghc' 'pandoc')
+source=("$_hkgname-$pkgver.tar.gz::https://github.com/koalaman/shellcheck/archive/$_commit.tar.gz")
+sha512sums=('9a386e98b4e32d48648a590676bd8dc46bd378c31b48ec2e316c40a8c9f64730e4010de461355fdfd14cd7c8bbdbf8dd00db9528494c4c7aa031acaaf3b1464a')
+
+prepare() {
+ mv shellcheck-$_commit $_hkgname-$pkgver
+}
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build
+ 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
+
+ pandoc -s -t man shellcheck.1.md -o shellcheck.1
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ install -D -m644 ${pkgname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+ 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}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list