blob: 5d4f6c0f71813d847695c784f5fc70245865a215 (
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
|
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
pkgname=checkmake
pkgver=0.2.2
pkgrel=1
pkgdesc="Experimental linter/analyzer for makefiles"
arch=('any')
url="https://github.com/mrtazz/checkmake"
license=('MIT')
makedepends=('git' 'go' 'pandoc')
conflicts=('checkmake-git')
source=("git+https://github.com/mrtazz/checkmake.git#commit=575315c")
sha256sums=('SKIP')
build(){
cd "${srcdir}/${pkgname}"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_CPPFLAGS="$CPPFLAGS"
export BUILDER_NAME="${BUILDER_NAME:-$(git config user.name || echo makepkg)}"
export BUILDER_EMAIL="${BUILDER_EMAIL:-$(git config user.email || echo makepkg)}"
make clean
make EXT_LDFLAGS="-linkmode external" GOFLAGS="-buildmode=pie -trimpath"
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm755 checkmake "${pkgdir}/usr/bin/checkmake"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 checkmake.1 "${pkgdir}/usr/share/man/man1/checkmake.1"
}
|