termux-packages/x11-packages/openbox/build.sh

67 lines
2.9 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_HOMEPAGE=http://openbox.org
TERMUX_PKG_DESCRIPTION="Highly configurable and lightweight X11 window manager"
TERMUX_PKG_LICENSE="GPL-2.0"
2019-05-17 00:18:48 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_VERSION=3.6.1
TERMUX_PKG_REVISION=27
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=http://openbox.org/dist/openbox/openbox-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-session-management"
2019-04-20 19:10:50 +02:00
TERMUX_PKG_DEPENDS="bash, fontconfig, freetype, fribidi, gdk-pixbuf, glib, harfbuzz, imlib2, libandroid-shmem, libbz2, libcairo-x, libcroco, libffi, libgraphite, libice, liblzma, libpixman, libpng, librsvg, libsm, libuuid, libx11, libxau, libxcb, libxcursor, libxdmcp, libxext, libxfixes, libxft, libxinerama, libxml2, libxrandr, libxrender, pango-x, pcre, startup-notification, xcb-util, zlib"
# Configuration utility.
TERMUX_PKG_RECOMMENDS="obconf"
# For default menu entries.
TERMUX_PKG_SUGGESTS="aterm, fltk, geany, the-powder-toy, dosbox"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_RM_AFTER_INSTALL="
bin/gdm-control
bin/gnome-panel-control
bin/openbox-gnome-session
bin/openbox-kde-session
share/man/man1/openbox-gnome-session.1
share/man/man1/openbox-kde-session.1
share/gnome-session
share/gnome
share/xsessions/openbox-gnome.desktop
share/xsessions/openbox-kde.desktop
"
TERMUX_PKG_CONFFILES="
etc/xdg/openbox/autostart
etc/xdg/openbox/environment
etc/xdg/openbox/menu.xml
etc/xdg/openbox/rc.xml
"
termux_step_post_make_install() {
## install custom variant of scripts startup scripts
cp -f "${TERMUX_PKG_BUILDER_DIR}/scripts/openbox-session" "${TERMUX_PREFIX}/bin/openbox-session"
chmod 755 "${TERMUX_PREFIX}/bin/openbox-session"
2018-09-10 00:42:26 +02:00
cp -f "${TERMUX_PKG_BUILDER_DIR}/scripts/openbox-autostart" "${TERMUX_PREFIX}/libexec/openbox-autostart"
chmod 755 "${TERMUX_PREFIX}/libexec/openbox-autostart"
2018-09-10 00:42:26 +02:00
cp -f "${TERMUX_PKG_BUILDER_DIR}/scripts/openbox-xdg-autostart" "${TERMUX_PREFIX}/libexec/openbox-xdg-autostart"
chmod 755 "${TERMUX_PREFIX}/libexec/openbox-xdg-autostart"
2018-09-10 00:42:26 +02:00
## install custom config files
cp -f "${TERMUX_PKG_BUILDER_DIR}/configs/autostart" "${TERMUX_PREFIX}/etc/xdg/openbox/autostart"
chmod 755 "${TERMUX_PREFIX}/etc/xdg/openbox/autostart"
2018-09-10 00:42:26 +02:00
cp -f "${TERMUX_PKG_BUILDER_DIR}/configs/environment" "${TERMUX_PREFIX}/etc/xdg/openbox/environment"
chmod 755 "${TERMUX_PREFIX}/etc/xdg/openbox/environment"
2018-09-10 00:42:26 +02:00
cp -f "${TERMUX_PKG_BUILDER_DIR}/configs/menu.xml" "${TERMUX_PREFIX}/etc/xdg/openbox/menu.xml"
chmod 644 "${TERMUX_PREFIX}/etc/xdg/openbox/menu.xml"
2018-09-10 00:42:26 +02:00
cp -f "${TERMUX_PKG_BUILDER_DIR}/configs/rc.xml" "${TERMUX_PREFIX}/etc/xdg/openbox/rc.xml"
chmod 644 "${TERMUX_PREFIX}/etc/xdg/openbox/rc.xml"
2018-09-10 00:42:26 +02:00
## install theme 'Onyx-Black'
cp -a "${TERMUX_PKG_BUILDER_DIR}/Theme-Onyx-Black" "${TERMUX_PREFIX}/share/themes/Onyx-black"
find "${TERMUX_PREFIX}/share/themes/Onyx-black" -type d | xargs chmod 755
find "${TERMUX_PREFIX}/share/themes/Onyx-black" -type f | xargs chmod 644
2018-09-10 00:42:26 +02:00
}