summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6248cccc2437c96621c1825f1b0333f4eb2d4aab (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
# Maintainer: Chris Severance aur.severach AatT spamgourmet.com

set -u
pkgname='git-aurcheck'
pkgver='0.62'
pkgrel='1'
pkgdesc='a helper like namcap that checks and offers solutions for common problems in git submissions to the AUR'
arch=('any')
license=('GPL')
depends=('bash' 'pkgbuild-introspection' 'git' 'pcre2')
source=("https://raw.githubusercontent.com/severach/ArchLinuxScripts/master/${pkgname}.sh")
sha256sums=('46f215bddddc1d0fa16621b7b16ab5f5e263294987702dcecc0ebd9b205a6a0e')

#install='installfoo'; source+=("${install}") # generate errors for us to detect
#changelog='changefoo'; source+=("${changelog}")

pkgver() {
  set -u
  sed -ne "s:^_opt_VERSION='\([^']\+\)'"'$:\1:p' "${pkgname}.sh"
  set +u
}

package() {
  set -u
  install -Dpm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
  set +u
}
set +u