mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
fb759f1f3c
commit
d7c419eb4a
2 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue