development/android-tools: Fix go modules being downloaded.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
philipvdh 2022-06-23 19:47:00 +02:00 committed by Willy Sudiarto Raharjo
parent fb759f1f3c
commit d7c419eb4a
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,3 @@
These are the adb, append2simg, fastboot, img2simg, mke2fs.android
and simg2img tools from the android sdk.
Warning: This SlackBuild requires network access when it runs, meaning
it downloads files from the Internet with root access. You should
decide for yourself whether or not you think this is a good idea.

View file

@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=android-tools
VERSION=${VERSION:-31.0.3p1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -81,13 +81,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
export GOCACHE=$(pwd)/build/go-cache
export GO111MODULE=off
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-GNinja \
-GNinja -Wno-dev \
-DCMAKE_BUILD_TYPE=Release ..
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install