fix: openbox package script cleanup

This commit is contained in:
ngn 2024-08-22 10:45:07 +03:00
parent 0d20477771
commit 5dcaebcd69

View File

@ -6,22 +6,25 @@ FILES=("http://openbox.org/dist/openbox/openbox-${VERSION}.tar.gz")
HASHES=("b72794996c6a3ad94634727b95f9d204") HASHES=("b72794996c6a3ad94634727b95f9d204")
DEPENDS=( DEPENDS=(
"pango" "dbus" "imlib2" "librsvg" "imlib2" "librsvg" "libsm"
"imagemagick" "pypi-pyxdg" "startup-notification" "libxcursor" "libxinerama" "libxml2"
"libxrandr" "pango" "startup-notification"
) )
BUILD=("python3")
PACKAGE() { PACKAGE() {
tar xf "${NAME}-${VERSION}.tar.gz" tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}" cd "${NAME}-${VERSION}"
2to3-3.11 -w data/autostart/openbox-xdg-autostart 2to3 -w data/autostart/openbox-xdg-autostart
sed 's/python/python3/' -i data/autostart/openbox-xdg-autostart sed 's/python/python3/' -i data/autostart/openbox-xdg-autostart
./configure --prefix=/usr \ ./configure --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--disable-static \ --disable-static \
--docdir="/usr/share/doc/openbox-${VERSION}" --docdir="/usr/share/doc/openbox-${VERSION}"
make && make DESTDIR="${ROOTDIR}" install make
make DESTDIR="${ROOTDIR}" install
rm -v "${ROOTDIR}/usr/share/xsessions/openbox-"{gnome,kde}.desktop rm -v "${ROOTDIR}/usr/share/xsessions/openbox-"{gnome,kde}.desktop
cd .. && rm -r "${NAME}-${VERSION}" cd .. && rm -r "${NAME}-${VERSION}"