diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-11 23:48:53 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-13 09:17:46 +0700 |
commit | 5e95766ea1984651e85901771fa3c593f22640fe (patch) | |
tree | 99dbbe19b2d55f6719f2c47072783146c7d12692 /system/android-file-transfer/android-file-transfer.SlackBuild | |
parent | 88a39ebeffc08c9ab23cc9bacf81c3a668dd373b (diff) |
system/android-file-transfer: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/android-file-transfer/android-file-transfer.SlackBuild')
-rw-r--r-- | system/android-file-transfer/android-file-transfer.SlackBuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/system/android-file-transfer/android-file-transfer.SlackBuild b/system/android-file-transfer/android-file-transfer.SlackBuild index d4ea07e5a2..1f695b23cd 100644 --- a/system/android-file-transfer/android-file-transfer.SlackBuild +++ b/system/android-file-transfer/android-file-transfer.SlackBuild @@ -22,6 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220211 bkw: Modified by SlackBuilds.org: use the correct github +# download URL, get rid of the useless static lib in the package, add +# a doinst.sh for the desktop/icon stuff. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=android-file-transfer @@ -38,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -69,15 +70,15 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +rm -rf $PRGNAM-linux-$VERSION +tar xvf $CWD/$PRGNAM-linux-$VERSION.tar.gz cd $PRGNAM-linux-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ if [ ${QT_GUI:-yes} = no ]; then GUI="OFF" @@ -95,11 +96,13 @@ cd build -DBUILD_QT_UI=$GUI \ -DCMAKE_BUILD_TYPE=Release .. make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# 20220211 bkw: pretty sure the static lib libmtp-ng-static.a is +# getting installed by mistake. there are no headers, so user code +# couldn't link with it anyway. +rm -rf $PKG/usr/lib* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a FAQ.md README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION @@ -107,6 +110,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |