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

View File

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

View File

@ -1,20 +1,24 @@
NAME="dialog" NAME="dialog"
DESC="Tool to display dialog boxes from shell scripts" DESC="Tool to display dialog boxes from shell scripts"
VERSION="1.3_20240101" VERSION="1.3-20240101"
FILES=("https://invisible-mirror.net/archives/dialog/dialog-${VERSION/_/-}.tgz")
FILES=("https://invisible-mirror.net/archives/dialog/dialog-${VERSION}.tgz")
HASHES=("9419eb52b95837312a76ccb26002c5d624fab53abde0859f1c7364179dc0ebad") HASHES=("9419eb52b95837312a76ccb26002c5d624fab53abde0859f1c7364179dc0ebad")
DEPENDS=("ncurses")
DEPENDS=("ncurses" "bash")
BUILD=()
PACKAGE() { PACKAGE() {
tar xf $NAME-${VERSION/_/-}.tgz tar xf "${NAME}-${VERSION}.tgz"
cd $NAME-${VERSION/_/-} cd "${NAME}-${VERSION}"
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--enable-nls \ --enable-nls \
--with-libtool \ --with-libtool \
--with-ncursesw --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" NAME="i3"
DESC="i3 window manager" DESC="i3 window manager"
VERSION="1" VERSION="1"
FILES=() FILES=()
HASHES=() HASHES=()
DEPENDS=(
"i3wm" "i3status" "i3blocks" DEPENDS=("i3wm" "i3status" "i3blocks")
)
PACKAGE() { PACKAGE() {
echo This is just a wrapper package, nothing to do echo This is just a wrapper package, nothing to do
mkdir -pv "$ROOTDIR/var/lib/wrapperpkg" install -dm755 "${ROOTDIR}/var/lib/wrapper_packages"
touch "$ROOTDIR/var/lib/wrapperpkg/mp-i3" echo "${VERSION}" > "${ROOTDIR}/var/lib/wrapper_packages/${NAME}"
} }

View File

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

View File

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

View File

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