2016-08-06 23:38:14 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://launchpad.net/pastebinit
|
|
|
|
TERMUX_PKG_DESCRIPTION="Command-line pastebin client"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2019-12-21 17:13:24 +01:00
|
|
|
TERMUX_PKG_VERSION=1.5.1
|
2020-03-09 12:42:23 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-12-21 17:13:24 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/felixonmars/pastebinit/archive/$TERMUX_PKG_VERSION.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=30850b9dc6b3e9105321cee159d491891b3d3c03180440edffa296c7e1ac0c41
|
2016-08-06 23:38:14 +02:00
|
|
|
TERMUX_PKG_DEPENDS="python"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
2016-08-06 23:38:14 +02:00
|
|
|
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2019-02-09 12:16:54 +01:00
|
|
|
cp pastebinit $TERMUX_PREFIX/bin/
|
2016-08-06 23:38:14 +02:00
|
|
|
xsltproc -''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl pastebinit.xml
|
|
|
|
cp pastebinit.1 $TERMUX_PREFIX/share/man/man1/
|
|
|
|
|
|
|
|
rm -Rf $TERMUX_PREFIX/etc/pastebin.d
|
|
|
|
mv pastebin.d $TERMUX_PREFIX/etc
|
|
|
|
}
|