tsocks: Fix building with tar strip-components
authorFredrik Fornwall <fredrik@fornwall.net>
Tue, 7 Nov 2017 04:48:30 +0000 (05:48 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 7 Nov 2017 04:51:44 +0000 (05:51 +0100)
packages/tsocks/build.sh

index 570c30d..46f82d3 100644 (file)
@@ -8,6 +8,10 @@ TERMUX_PKG_SHA256=849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b3
 TERMUX_PKG_BUILD_IN_SRC=yes
 TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-conf=$TERMUX_PREFIX/etc/tsocks.conf"
 
+termux_step_post_extract_package() {
+       cp $TERMUX_PKG_SRCDIR/tsocks-1.8/* $TERMUX_PKG_SRCDIR/
+}
+
 termux_step_pre_configure() {
-    cp $TERMUX_PKG_SRCDIR/tsocks.conf.complex.example $TERMUX_PREFIX/etc/tsocks.conf
+       cp $TERMUX_PKG_SRCDIR/tsocks.conf.complex.example $TERMUX_PREFIX/etc/tsocks.conf
 }