summaryrefslogtreecommitdiff
path: root/checkbashisms
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-24 12:53:29 +0200
committerErich Eckner <git@eckner.net>2016-05-24 12:53:29 +0200
commit1744c7209fc321379f6db97996b1c4eb464805e6 (patch)
treebcf7695e18c0e4d21b9a806e7204aab3b3955e9b /checkbashisms
parent598a8c1ea271eebdb9025c6bdb1d43f9c99b87b4 (diff)
downloadarchlinuxewe-1744c7209fc321379f6db97996b1c4eb464805e6.tar.xz
checkbashisms erneut neu
Diffstat (limited to 'checkbashisms')
-rw-r--r--checkbashisms/.gitignore2
-rw-r--r--checkbashisms/PKGBUILD57
2 files changed, 14 insertions, 45 deletions
diff --git a/checkbashisms/.gitignore b/checkbashisms/.gitignore
index f52a3f685..401bc673f 100644
--- a/checkbashisms/.gitignore
+++ b/checkbashisms/.gitignore
@@ -1 +1 @@
-checkbashisms*
+devscripts
diff --git a/checkbashisms/PKGBUILD b/checkbashisms/PKGBUILD
index a24aa5690..aff8012e6 100644
--- a/checkbashisms/PKGBUILD
+++ b/checkbashisms/PKGBUILD
@@ -5,59 +5,28 @@
# Contributor: Soup <soup a.t soultrap d.o.t n.e.t>
# Contributor: Andres Perera <aepd87@gmail.com>
-set -u
pkgname='checkbashisms'
-pkgver='20160203'
-# To get the date of the last commit for this file
-# Be in the tree for the .pl file
-# https://anonscm.debian.org/cgit/collab-maint/devscripts.git/tree/scripts/checkbashisms.pl
-# Click [search]
-# To see the diff, click on the commit
-pkgrel='3'
+pkgver='2.16.4'
+pkgrel='1'
pkgdesc='Debian script that checks for bashisms'
arch=('any')
url='http://packages.qa.debian.org/d/devscripts.html'
license=('GPL')
depends=('perl')
conflicts=('devscripts')
-_srcfile="checkbashisms.pl.${pkgver}"
-_srcbash='checkbashisms.bash_completion.20160513'
-source=("${_srcfile}::https://anonscm.debian.org/cgit/collab-maint/devscripts.git/plain/scripts/checkbashisms.pl"
- 'https://anonscm.debian.org/cgit/collab-maint/devscripts.git/plain/scripts/checkbashisms.1'
- "${_srcbash}::https://anonscm.debian.org/cgit/collab-maint/devscripts.git/plain/scripts/checkbashisms.bash_completion" # https://anonscm.debian.org/cgit/collab-maint/devscripts.git/log/scripts/checkbashisms.bash_completion?qt=grep&q=
-)
-sha256sums=('6943f31aae8552fdec53f5d4c386f08ec029630bf0df46576c2d7c43a2f25081'
- 'c74d1ed33fee4cf2ccca0d7690d404d551a4edcbde0ddc602104d9198359cefb'
- '08f1587d3219b494377ef1af265f71f11c67c291d846b4c1f886a04b90eeb860')
+source=("git://anonscm.debian.org/collab-maint/devscripts.git#tag=v${pkgver}")
+sha256sums=('SKIP')
-# Version checking devscripts won't help us. We need to watch for changes to this file.
-_vercheck() { :; }
-_verscan() {
- local _rv=1
- [ "$1" -ne 0 ] && _rv=0
- local _rvfile=''
- local _remfile="$(sha256sum < <(curl -s "${source[0]##*::}") | cut -d' ' -f1)"
- if [ "${_remfile}" != "${sha256sums[0]}" ]; then
- local _vercmp=1
- [ "$2" -ge 3 ] && printf '%-s %s\n' "${_vercmp}" "${_remfile}" 1>&2
- if [ "${_vercmp}" -ge 1 ]; then
- [ "$2" -eq 2 ] && echo "${_remfile}"
- _rvfile="${_remfile}"
- _rv=0
- fi
- fi
- [ "$2" -eq 1 -o "$2" -eq 4 ] && echo "${_rvfile}"
- return ${_rv}
+build () {
+ cd "${srcdir}/devscripts/scripts"
+
+ sed -i -e "s,###VERSION###,${pkgver},g" checkbashisms.pl
}
-#_verscan 0 4; exit 1
package() {
- set -u
- cd "${pkgdir}"
- install -Dpm755 "${srcdir}/${_srcfile}" 'usr/bin/checkbashisms'
- sed -i -e "s,###VERSION###,${pkgver},g" 'usr/bin/checkbashisms'
- install -Dpm644 "${srcdir}/checkbashisms.1" 'usr/share/man/man1/checkbashisms.1'
- install -Dpm644 "${srcdir}/${_srcbash}" 'usr/share/bash-completion/completions/checkbashisms'
- set +u
+ 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"
}
-set +u