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*}"
}

View File

@ -1,2 +1,2 @@
# 1.2.1
# 0.33
First version

22
src/growpart/pkg.sh Normal file
View File

@ -0,0 +1,22 @@
# general info
NAME="growpart"
DESC="An utility for growing file partitions"
VERSION="0.33"
# required files
FILES=("https://github.com/canonical/cloud-utils/archive/refs/tags/${VERSION}.tar.gz")
HASHES=("338770d637788466aacfcbcec17a8d0046f92a13cc3b25fce8fceadb02a7339f")
# install and build depends
DEPENDS=("bash")
BUILD=()
PACKAGE(){
tar xf "${VERSION}.tar.gz"
cd "cloud-utils-${VERSION}"
install -Dm 755 "bin/growpart" -t "${ROOTDIR}/usr/bin"
install -Dm 644 "man/growpart.1" -t "${ROOTDIR}/usr/share/man/man1"
cd .. && rm -r "cloud-utils-${VERSION}"
}

View File

@ -1,20 +1,24 @@
NAME="pavucontrol"
DESC="Simple GTK based volume control tool for the PulseAudio sound server"
VERSION="5.0"
FILES=("https://freedesktop.org/software/pulseaudio/pavucontrol/pavucontrol-$VERSION.tar.xz")
FILES=("https://freedesktop.org/software/pulseaudio/pavucontrol/pavucontrol-${VERSION}.tar.xz")
HASHES=("a4a5dc51dcf4d912443faf3fe8d32b55")
DEPENDS=(
"gtkmm3" "json-glib" "libcanberra"
"libsigc++" "pulseaudio" "pangomm"
"libtool"
"gcc-libs" "glib" "glibc"
"glibmm" "gtkmm3" "json-glib"
"libcanberra" "pulseaudio" "libsigc++"
)
BUILD=("lynx" "meson")
PACKAGE() {
tar xf $NAME-$VERSION.tar.xz
cd $NAME-$VERSION
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr --docdir=/usr/share/doc/pavucontrol-$VERSION
make && make DESTDIR="$ROOTDIR" install
./configure --prefix=/usr --docdir="/usr/share/doc/pavucontrol-${VERSION}"
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r $NAME-$VERSION
cd .. && rm -r "${NAME}-${VERSION}"
}

View File

@ -1,16 +0,0 @@
NAME="pinentry"
DESC="Collection of simple PIN or pass-phrase entry dialogs which utilize the Assuan protocol"
VERSION="1.2.1"
FILES=("https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-$VERSION.tar.bz2")
HASHES=("be9b0d4bb493a139d2ec20e9b6872d37")
DEPENDS=("libassuan" "libgpg-error")
PACKAGE() {
tar xf $NAME-$VERSION.tar.bz2
cd $NAME-$VERSION
./configure --prefix=/usr --enable-pinentry-tty
make && make DESTDIR=$ROOTDIR install
cd .. && rm -rf $NAME-$VERSION
}

View File

@ -1,2 +1,5 @@
# 3.7.2
Updated to the latest upstream release
# 3.7.1
First version

View File

@ -1,18 +1,25 @@
NAME="polybar"
DESC="A fast and easy-to-use status bar"
VERSION="3.7.1"
FILES=("https://github.com/polybar/polybar/releases/download/$VERSION/polybar-$VERSION.tar.gz")
HASHES=("5de6ad385ba09dc453a4e5ec7054749a4882b5b21a62c17ae40bf7c90613ff0f")
VERSION="3.7.2"
FILES=("https://github.com/polybar/polybar/releases/download/${VERSION}/polybar-${VERSION}.tar.gz")
HASHES=("e2feacbd02e7c94baed7f50b13bcbf307d95df0325c3ecae443289ba5b56af29")
DEPENDS=(
"libuv" "cairo" "xcb-util-image"
"xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
"alsa-lib" "pulseaudio" "mpd"
"libnl" "jsoncpp" "curl"
)
BUILD=(
"cmake" "ninja" "pkg-config"
"python3" "sphinx" "i3wm"
"xcb-proto"
)
PACKAGE() {
tar xf polybar-$VERSION.tar.gz
cd $NAME-$VERSION
tar xf "polybar-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
mkdir build
cd build
@ -23,7 +30,9 @@ PACKAGE() {
-DBUILD_DOC_HTML=OFF \
-DBUILD_TESTS=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3
cmake --build . && DESTDIR="$ROOTDIR" cmake --install .
cd ../.. && rm -r $NAME-$VERSION
cmake --build .
DESTDIR="${ROOTDIR}" cmake --install .
cd ../.. && rm -r ${NAME}-${VERSION}
}