1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-17 17:00:12 +02:00
build/pkg/bash-completion/build
David Oberhollenzer 5a6fff9e6d Bump bash-completion version
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 21:43:55 +02:00

32 lines
831 B
Plaintext
Executable file

VERSION="2.10"
SRCDIR="bash-completion-upstream-${VERSION}"
TARBALL="${SRCDIR}.tar.gz"
URL="https://salsa.debian.org/debian/bash-completion/-/archive/upstream/${VERSION}/"
SHA256SUM="a5035e5edabc1b5bf757e80187e5a836c69f330f392c8bc072a698c0ed0f4211"
DEPENDS="bash bash-dev"
SUBPKG="bash-completion bash-completion-dev"
prepare() {
autoreconf --force --install --symlink
}
build() {
run_configure "$1"
make -j $NUMJOBS
}
deploy() {
make DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
pkg_scan_dir "share/bash-completion/completions" \
>> "$PKGDEPLOYDIR/bash-completion.files"
}
check_update() {
curl --silent -L "https://salsa.debian.org/debian/bash-completion/tags" | \
grep -o "upstream/[0-9.]*" | cut -d/ -f2 | sort -u | \
verson_find_greatest "$VERSION"
}