Avoid hard-coded paths in some more places
The plan is to allow other apps to build packages by changing the prefix.
This commit is contained in:
parent
8804436bcb
commit
9493e72698
|
@ -36,5 +36,5 @@ lib/libapt-inst.so
|
|||
termux_step_post_make_install() {
|
||||
printf "# The main termux repository:\ndeb [arch=all,${TERMUX_ARCH}] https://termux.net stable main\n" > $TERMUX_PREFIX/etc/apt/sources.list
|
||||
cp $TERMUX_PKG_BUILDER_DIR/trusted.gpg $TERMUX_PREFIX/etc/apt/
|
||||
rm /data/data/com.termux/files/usr/include/apt-pkg -r
|
||||
rm $TERMUX_PREFIX/include/apt-pkg -r
|
||||
}
|
||||
|
|
|
@ -55,8 +55,8 @@ diff -u -r ../cowsay-3.03+dfsg1/install.sh ./install.sh
|
|||
-fi
|
||||
-
|
||||
-PREFIX=${prefix:-/usr/local}
|
||||
+usethisperl=/data/data/com.termux/files/usr/bin/perl
|
||||
+PREFIX=/data/data/com.termux/files/usr
|
||||
+usethisperl=@TERMUX_PREFIX@/bin/perl
|
||||
+PREFIX=@TERMUX_PREFIX@
|
||||
|
||||
echo Okay, time to install this puppy.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
--- /data/data/com.termux/files/home/MPD-0.20.8.old/doc/mpdconf.example 2017-07-18 12:54:14.570036043 +0200
|
||||
--- ./doc/mpdconf.example 2017-07-18 12:54:14.570036043 +0200
|
||||
+++ ./doc/mpdconf.example 2017-07-18 12:56:34.270035990 +0200
|
||||
@@ -10,14 +10,14 @@
|
||||
# be disabled and audio files will only be accepted over ipc socket (using
|
||||
|
@ -31,7 +31,7 @@
|
|||
# setting defaults to logging to syslog, otherwise logging is disabled.
|
||||
#
|
||||
-#log_file "~/.mpd/log"
|
||||
+#log_file "/data/data/com.termux/files/home/.mpd/log"
|
||||
+#log_file "@TERMUX_HOME@/.mpd/log"
|
||||
#
|
||||
# This setting sets the location of the file which stores the process ID
|
||||
# for use of mpd --kill and some init scripts. This setting is disabled by
|
||||
|
@ -68,7 +68,7 @@
|
|||
#
|
||||
# And for Unix Socket
|
||||
-#bind_to_address "~/.mpd/socket"
|
||||
+bind_to_address "/data/data/com.termux/files/usr/tmp/mpd.socket"
|
||||
+bind_to_address "@TERMUX_PREFIX@/tmp/mpd.socket"
|
||||
#
|
||||
# This setting is the TCP port that is desired for the daemon to get assigned
|
||||
-# to.
|
||||
|
|
|
@ -7,7 +7,7 @@ diff -u -r ../multitail-6.4.1/Makefile ./Makefile
|
|||
UTF8_SUPPORT=yes
|
||||
-DESTDIR=
|
||||
-PREFIX=/usr
|
||||
+DESTDIR=/data/data/com.termux/files/usr
|
||||
+DESTDIR=@TERMUX_PREFIX@
|
||||
+PREFIX=
|
||||
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/data/data/com.termux/files/usr/bin/sh
|
||||
#!/bin/sh
|
||||
# source-ssh-agent: Script to source for ssh-agent to work.
|
||||
|
||||
# Check if accidentaly executed instead of sourced:
|
||||
|
|
Loading…
Reference in New Issue