new: growpart

This commit is contained in:
ngn
2024-08-22 12:58:14 +03:00
parent 5dcaebcd69
commit d46e2e7715
9 changed files with 73 additions and 42 deletions

View File

@ -1,2 +1,5 @@
# 2.11m1
Modified completions/tar to allow tar command completion with .mpf archives
# 2.11
First version

View File

@ -1,17 +1,23 @@
NAME="bash-completion"
DESC="Programmable completion functions for bash"
VERSION="2.11"
FILES=("https://github.com/scop/bash-completion/releases/download/$VERSION/bash-completion-$VERSION.tar.xz")
VERSION="2.11m1"
FILES=("https://github.com/scop/bash-completion/releases/download/${VERSION%m*}/bash-completion-${VERSION%m*}.tar.xz")
HASHES=("73a8894bad94dee83ab468fa09f628daffd567e8bef1a24277f1e9a0daf911ac")
DEPENDS=("bash")
PACKAGE() {
tar xf $NAME-$VERSION.tar.xz
cd $NAME-$VERSION
tar xf "${NAME}-${VERSION%m*}.tar.xz"
cd "${NAME}-${VERSION%m*}"
# allow completions with .mpf archives
sed 's/@(tar|gem|spkg)/@(tar|gem|spkg|mpf)/g' -i completions/tar
./configure --prefix=/usr --sysconfdir=/etc
make && make DESTDIR="$ROOTDIR" install
rm -r "$ROOTDIR/etc/profile.d"
make
make DESTDIR="${ROOTDIR}" install
rm -r "${ROOTDIR}/etc/profile.d"
cd .. && rm -r $NAME-$VERSION
cd .. && rm -r "${NAME}-${VERSION%m*}"
}