2019-08-14 00:12:38 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.xfce.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="A session manager for XFCE environment"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
2020-01-13 13:47:21 +01:00
|
|
|
TERMUX_PKG_VERSION=4.14.1
|
2020-02-24 20:20:50 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
2019-08-14 00:12:38 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://archive.xfce.org/src/xfce/xfce4-session/${TERMUX_PKG_VERSION:0:4}/xfce4-session-${TERMUX_PKG_VERSION}.tar.bz2
|
2020-01-13 13:47:21 +01:00
|
|
|
TERMUX_PKG_SHA256=dc1c90da56b2d8df18fec6c0c30d6bed4e7646d8c8214fc931c952ba86c3b77b
|
2019-08-15 01:11:44 +02:00
|
|
|
TERMUX_PKG_DEPENDS="gnupg, hicolor-icon-theme, libsm, libwnck, libxfce4ui, xfce4-settings, xfdesktop, xfwm4, xorg-iceauth, xorg-xrdb"
|
2019-08-14 00:12:38 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_path_ICEAUTH=${TERMUX_PREFIX}/bin/iceauth
|
|
|
|
--with-xsession-prefix=$TERMUX_PREFIX
|
|
|
|
"
|
|
|
|
|
|
|
|
termux_step_create_debscripts() {
|
|
|
|
cat <<- EOF > ./postinst
|
|
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
|
|
if [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ]; then
|
|
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
|
|
update-alternatives --install \
|
|
|
|
$TERMUX_PREFIX/bin/x-session-manager x-session-manager $TERMUX_PREFIX/bin/xfce4-session 50
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<- EOF > ./prerm
|
|
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
|
|
if [ "\$1" != "upgrade" ]; then
|
|
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
|
|
update-alternatives --remove x-session-manager $TERMUX_PREFIX/bin/xfce4-session
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
}
|