fix: python package renaming

This commit is contained in:
ngn
2024-08-19 14:24:01 +03:00
parent 5254876ac8
commit 6b826d41c6
104 changed files with 465 additions and 404 deletions

View File

@ -1,16 +1,18 @@
NAME="openbox"
DESC="Highly configurable desktop window manager with extensive standards support"
VERSION="3.6.1"
FILES=("http://openbox.org/dist/openbox/openbox-$VERSION.tar.gz")
FILES=("http://openbox.org/dist/openbox/openbox-${VERSION}.tar.gz")
HASHES=("b72794996c6a3ad94634727b95f9d204")
DEPENDS=(
"pango" "dbus" "imlib2" "librsvg"
"imagemagick" "pyxdg" "startup-notification"
"imagemagick" "pypi-pyxdg" "startup-notification"
)
PACKAGE() {
tar xf $NAME-$VERSION.tar.gz
cd $NAME-$VERSION
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
2to3-3.11 -w data/autostart/openbox-xdg-autostart
sed 's/python/python3/' -i data/autostart/openbox-xdg-autostart
@ -18,9 +20,9 @@ PACKAGE() {
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--docdir=/usr/share/doc/openbox-$VERSION
make && make DESTDIR="$ROOTDIR" install
rm -v "$ROOTDIR/usr/share/xsessions/openbox-"{gnome,kde}.desktop
--docdir="/usr/share/doc/openbox-${VERSION}"
make && make DESTDIR="${ROOTDIR}" install
rm -v "${ROOTDIR}/usr/share/xsessions/openbox-"{gnome,kde}.desktop
cd .. && rm -r $NAME-$VERSION
cd .. && rm -r "${NAME}-${VERSION}"
}