radare2: Update from 1.5.0 to 1.6.0
[termux-packages] / packages / man / build.sh
index a9f3bb4..0fba053 100644 (file)
@@ -9,7 +9,6 @@ TERMUX_PKG_BUILD_IN_SRC=yes
 TERMUX_PKG_RM_AFTER_INSTALL="share/examples"
 
 termux_step_pre_configure () {
-       cd $TERMUX_PKG_SRCDIR
        LDFLAGS+=" -landroid-glob"
        echo "PREFIX=\"$TERMUX_PREFIX\"" > configure.local
        echo "CC=\"$CC\"" >> configure.local
@@ -25,7 +24,8 @@ termux_step_pre_configure () {
 
 termux_step_create_debscripts () {
        echo "interest-noawait $TERMUX_PREFIX/share/man" > triggers
-
-       echo "makewhatis -Q" > postinst
+       
+       echo "#!$TERMUX_PREFIX/bin/sh" >> postinst
+       echo "makewhatis -Q" >> postinst
        echo "exit 0" >> postinst
 }