fix: prevent wrapper packages from being empty

This commit is contained in:
ngn 2024-08-25 15:03:28 +03:00
parent 17a41758c7
commit f58dc74ce1
7 changed files with 36 additions and 24 deletions

View File

@ -1,12 +1,14 @@
NAME="awesome"
DESC="Awesome window manager"
VERSION="1"
FILES=()
HASHES=()
DEPENDS=("awesomewm" "rlwrap" "vicious")
PACKAGE() {
echo This is just a wrapper package, nothing to do
mkdir -pv "$ROOTDIR/var/lib/wrapperpkg"
touch "$ROOTDIR/var/lib/wrapperpkg/mp-awesome"
install -dm755 "${ROOTDIR}/var/lib/wrapper_packages"
echo "${VERSION}" > "${ROOTDIR}/var/lib/wrapper_packages/${NAME}"
}

View File

@ -1,2 +1,2 @@
# 1.3_20240101
# 1.3-20240101
First version

View File

@ -1,20 +1,24 @@
NAME="dialog"
DESC="Tool to display dialog boxes from shell scripts"
VERSION="1.3_20240101"
FILES=("https://invisible-mirror.net/archives/dialog/dialog-${VERSION/_/-}.tgz")
VERSION="1.3-20240101"
FILES=("https://invisible-mirror.net/archives/dialog/dialog-${VERSION}.tgz")
HASHES=("9419eb52b95837312a76ccb26002c5d624fab53abde0859f1c7364179dc0ebad")
DEPENDS=("ncurses")
DEPENDS=("ncurses" "bash")
BUILD=()
PACKAGE() {
tar xf $NAME-${VERSION/_/-}.tgz
cd $NAME-${VERSION/_/-}
tar xf "${NAME}-${VERSION}.tgz"
cd "${NAME}-${VERSION}"
./configure \
--prefix=/usr \
--enable-nls \
--with-libtool \
--with-ncursesw
make && make DESTDIR="$ROOTDIR" install-full
make
make DESTDIR="${ROOTDIR}" install-full
cd .. && rm -r $NAME-${VERSION/_/-}
cd .. && rm -r "${NAME}-${VERSION}"
}

View File

@ -1,14 +1,14 @@
NAME="i3"
DESC="i3 window manager"
VERSION="1"
FILES=()
HASHES=()
DEPENDS=(
"i3wm" "i3status" "i3blocks"
)
DEPENDS=("i3wm" "i3status" "i3blocks")
PACKAGE() {
echo This is just a wrapper package, nothing to do
mkdir -pv "$ROOTDIR/var/lib/wrapperpkg"
touch "$ROOTDIR/var/lib/wrapperpkg/mp-i3"
install -dm755 "${ROOTDIR}/var/lib/wrapper_packages"
echo "${VERSION}" > "${ROOTDIR}/var/lib/wrapper_packages/${NAME}"
}

View File

@ -1,8 +1,10 @@
NAME="lxde"
DESC="LXDE desktop enviroment"
VERSION="1"
FILES=()
HASHES=()
DEPENDS=(
"lxmenu-data" "libfm-extra" "menu-cache"
"libfm" "pcmanfm" "libwnck2" "lxpanel"
@ -14,6 +16,6 @@ DEPENDS=(
PACKAGE() {
echo This is just a wrapper package, nothing to do
mkdir -pv "$ROOTDIR/var/lib/wrapperpkg"
touch "$ROOTDIR/var/lib/wrapperpkg/mp-lxde"
install -dm755 "${ROOTDIR}/var/lib/wrapper_packages"
echo "${VERSION}" > "${ROOTDIR}/var/lib/wrapper_packages/${NAME}"
}

View File

@ -1,8 +1,10 @@
NAME="xfce4"
DESC="XFCE4 desktop enviroment"
VERSION="1"
FILES=()
HASHES=()
DEPENDS=(
"libxfce4util" "xfconf" "libxfce4ui"
"exo" "garcon" "xfce4-panel"
@ -16,6 +18,6 @@ DEPENDS=(
PACKAGE() {
echo This is just a wrapper package, nothing to do
mkdir -pv "$ROOTDIR/var/lib/wrapperpkg"
touch "$ROOTDIR/var/lib/wrapperpkg/mp-xfce4"
install -dm755 "${ROOTDIR}/var/lib/wrapper_packages"
echo "${VERSION}" > "${ROOTDIR}/var/lib/wrapper_packages/${NAME}"
}

View File

@ -1,8 +1,10 @@
NAME="xorg"
DESC="All required packages to get XORG up and running"
VERSION="1"
FILES=()
HASHES=()
DEPENDS=(
"libdrm" "fonts" "libxmu" "libxrandr" "libxrender" "libxslt" "libxt"
"libxtst" "libxshmfence" "mtdev" "libxinerama" "libxcb" "libxau" "libxaw"
@ -16,6 +18,6 @@ DEPENDS=(
PACKAGE() {
echo This is just a wrapper package, nothing to do
mkdir -pv "$ROOTDIR/var/lib/wrapperpkg"
touch "$ROOTDIR/var/lib/wrapperpkg/mp-xorg"
install -dm755 "${ROOTDIR}/var/lib/wrapper_packages"
echo "${VERSION}" > "${ROOTDIR}/var/lib/wrapper_packages/${NAME}"
}