2018-11-29 13:00:47 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/pypanel/
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="A lightweight panel/taskbar for X11 window managers written in python."
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_VERSION=2.4
|
2018-10-04 23:23:39 +02:00
|
|
|
TERMUX_PKG_REVISION=9
|
2018-11-29 13:00:47 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/pypanel/PyPanel-${TERMUX_PKG_VERSION}.tar.gz
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SHA256=4e612b43c61b3a8af7d57a0364f6cd89df481dc41e20728afa643e9e3546e911
|
2018-10-04 23:23:39 +02:00
|
|
|
TERMUX_PKG_DEPENDS="freetype, imlib2, libandroid-shmem, libx11, libxft, python2, python2-xlib"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_CONFFILES="etc/pypanelrc"
|
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
termux_step_make() {
|
|
|
|
"${CC}" -DNDEBUG \
|
|
|
|
-fwrapv \
|
|
|
|
-Wall \
|
|
|
|
-Wstrict-prototypes \
|
|
|
|
-fno-strict-aliasing \
|
|
|
|
-Oz \
|
|
|
|
-fPIC \
|
|
|
|
-DHAVE_XFT=1 \
|
|
|
|
-DIMLIB2_FIX=1 \
|
|
|
|
-I/data/data/com.termux/files/usr/include \
|
|
|
|
-I/data/data/com.termux/files/usr/include/freetype2 \
|
|
|
|
-I/data/data/com.termux/files/usr/include/libpng16 \
|
|
|
|
-c ppmodule.c \
|
|
|
|
-o ppmodule.o \
|
2018-09-10 00:42:26 +02:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
"${CC}" -shared \
|
|
|
|
ppmodule.o \
|
|
|
|
-L/data/data/com.termux/files/usr/lib \
|
|
|
|
-lfreetype \
|
|
|
|
-lXft \
|
|
|
|
-lImlib2 \
|
|
|
|
-lpython2.7 \
|
|
|
|
-lX11 \
|
|
|
|
-landroid-shmem \
|
|
|
|
-o ppmodule.so
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
termux_step_make_install() {
|
|
|
|
mkdir -p "${TERMUX_PREFIX}/bin"
|
|
|
|
cp -f pypanel "${TERMUX_PREFIX}/bin/pypanel"
|
|
|
|
chmod 755 "${TERMUX_PREFIX}/bin/pypanel"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
mkdir -p "${TERMUX_PREFIX}/etc"
|
|
|
|
cp -f pypanelrc "${TERMUX_PREFIX}/etc/pypanelrc"
|
|
|
|
chmod 644 "${TERMUX_PREFIX}/etc/pypanelrc"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
mkdir -p "${TERMUX_PREFIX}/lib/python2.7/site-packages"
|
|
|
|
cp ppmodule.so "${TERMUX_PREFIX}/lib/python2.7/site-packages/ppmodule.so"
|
|
|
|
chmod 644 "${TERMUX_PREFIX}/lib/python2.7/site-packages/ppmodule.so"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
mkdir -p "${TERMUX_PREFIX}/lib/python2.7/site-packages/pypanel"
|
|
|
|
cp -f COPYING README pypanelrc ppicon.png "${TERMUX_PREFIX}/lib/python2.7/site-packages/pypanel/"
|
|
|
|
chmod 644 ${TERMUX_PREFIX}/lib/python2.7/site-packages/pypanel/*
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|