From b7cebd020b94028b547188b316f2e59ae88cb5fb Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 3 Jun 2019 15:39:30 +0300 Subject: [PATCH] Add xsel package. --- x11-packages/xsel/build.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 x11-packages/xsel/build.sh diff --git a/x11-packages/xsel/build.sh b/x11-packages/xsel/build.sh new file mode 100644 index 000000000..7ed66c657 --- /dev/null +++ b/x11-packages/xsel/build.sh @@ -0,0 +1,29 @@ +TERMUX_PKG_HOMEPAGE=http://www.kfish.org/software/xsel/ +TERMUX_PKG_DESCRIPTION="Command-line program for getting and setting the contents of the X selection" +TERMUX_PKG_LICENSE="custom" +TERMUX_PKG_MAINTAINER="Doron Behar " +TERMUX_PKG_VERSION=1.2.0.20190505 +_commit=24bee9c7f4dc887eabb2783f21cbf9734d723d72 +TERMUX_PKG_REVISION=1 +TERMUX_PKG_DEPENDS="libx11" +TERMUX_PKG_BUILD_DEPENDS="libxt" + +termux_step_extract_package() { + mkdir -p $TERMUX_PKG_SRCDIR + cd $TERMUX_PKG_SRCDIR + git clone https://github.com/kfish/xsel + cd xsel + git checkout $_commit + ./autogen.sh --prefix=$TERMUX_PREFIX +} + +termux_step_make() { + cd $TERMUX_PKG_SRCDIR/xsel + make +} + +termux_step_make_install() { + cd $TERMUX_PKG_SRCDIR/xsel + make install + install -D -m0644 COPYING $TERMUX_PREFIX/share/LICENSES/xsel.txt +}