-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
36 lines (30 loc) · 917 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Evan Greenup <_>
_name=shellcheck
pkgname=hx-$_name
pkgver=0.10.0
pkgrel=1
pkgdesc="Shell script analysis tool"
url="https://www.shellcheck.net/"
license=("GPL-3.0-only")
arch=('x86_64')
provides=("shellcheck")
conflicts=("shellcheck")
replaces=("shellcheck")
depends=()
makedepends=('stack')
source=("${_name}-${pkgver}.tar.gz::https://github.com/koalaman/${_name}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('149ef8f90c0ccb8a5a9e64d2b8cdd079ac29f7d2f5a263ba64087093e9135050')
build() {
cd "$srcdir/$_name-$pkgver"
stack build ShellCheck:exe:shellcheck
}
check() {
cd "$srcdir/$_name-$pkgver"
stack test ShellCheck:exe:shellcheck
}
package() {
cd "$srcdir/$_name-$pkgver"
mkdir -m755 -p "${pkgdir}/usr/bin/"
install -m755 "$(stack path --local-install-root)/bin/shellcheck" "${pkgdir}/usr/bin/shellcheck"
install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}