summaryrefslogtreecommitdiff
path: root/checkbashisms/PKGBUILD
blob: 53833a7156b8778050080e205089cca5b8d5ca77 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: RunningDroid <runningdroid AT zoho.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Soup <soup a.t soultrap d.o.t n.e.t>
# Contributor: Andres Perera <aepd87@gmail.com>

pkgname='checkbashisms'
pkgver=2.16.8
pkgrel=1
pkgdesc='Debian script that checks for bashisms'
arch=('any')
url='http://packages.qa.debian.org/d/devscripts.html'
license=('GPL')
depends=('perl')
makedepends=('git')
conflicts=('devscripts')
source=("git://anonscm.debian.org/collab-maint/devscripts.git#tag=v${pkgver}")
sha512sums=('SKIP')

build () {
  cd "${srcdir}/devscripts/scripts"

  sed -i -e "s,###VERSION###,${pkgver},g" checkbashisms.pl
}

package() {
  cd "${srcdir}/devscripts/scripts"

  install -Dpm755 checkbashisms.pl "${pkgdir}/usr/bin/checkbashisms"
  install -Dpm644 -t "${pkgdir}/usr/share/man/man1" checkbashisms.1
  install -Dpm644 checkbashisms.bash_completion "${pkgdir}/usr/share/bash-completion/completions/checkbashisms"
}