blob: 24510433e715a7470a9b8b12bb96ae9e468da4b9 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Yauheni Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
# shellcheck disable=SC2034,SC2154
pkgname=shellcheck_makefile-git
pkgver=1.27.r4.gda75cb6
pkgrel=1
pkgdesc="Small utility for applying Shellcheck on Makefiles. Depends only on shellcheck, make and python."
arch=('any')
url="https://github.com/actionless/shellcheck_makefile"
license=('GPL-3.0-only')
source=(
"$pkgname::git+${url}#branch=master"
)
b2sums=('SKIP')
depends=(
'shellcheck'
'make'
'python'
)
makedepends=(
'python-wheel'
'python-hatchling'
'python-build'
'python-installer'
'python-setuptools' # i think it normally should be required by python-pep517 which required by python-build/installer
#'python-markdown-it-py'
)
optdepends=(
)
conflicts=('shellcheck_makefile')
provides=('shellcheck_makefile')
pkgver() {
cd "${srcdir}/${pkgname}" || exit 2
set -o pipefail
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || echo 0.0.1
}
build() {
cd "${srcdir}/${pkgname}" || exit 2
if test -d ./dist ; then
rm -r ./dist
fi
/usr/bin/python3 -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}" || exit 2
/usr/bin/python3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
#install -Dm644 shellcheck_makefile.1 "$pkgdir/usr/share/man/man1/shellcheck_makefile.1"
}
|