summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrouhannb2020-03-13 18:20:55 -0400
committerrouhannb2020-03-13 18:20:55 -0400
commit6e1d44e0e7beb6c0395ffe2509da6f4132024a3e (patch)
treea7e6c2445af65f058831a8e2cd0a1cbef48b8bfc
parentb9cc5d332e934f284f37d6fc53bd15ed7b52a3f0 (diff)
downloadaur-6e1d44e0e7beb6c0395ffe2509da6f4132024a3e.tar.gz
Restoring old python2 hack
-rw-r--r--PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a5b00fb04f8..6b971dee620 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -135,16 +135,18 @@ prepare() {
chmod u=rwx,g=rx,o=rx --verbose gn
mv --verbose gn skia/bin/gn
cp --verbose skia/bin/gn skia/buildtools/linux64/gn
+
+ mkdir --verbose binsub
+ ln --symbolic /usr/bin/python2 binsub/python
}
build() {
cd "${srcdir}"
# Build skia
- _skiapath="${srcdir}/depot_tools:${PATH}"
+ _skiapath="${srcdir}/binsub:${srcdir}/depot_tools:${PATH}"
cd skia
- # Bypass the gn script, which uses `python` and expects Python 2
- PATH="${_skiapath}" PYTHONDONTWRITEBYTECODE=1 python2 "$(which gn.py)" gen out/Release-x64 \
+ PATH="${_skiapath}" gn gen out/Release-x64 \
--args="is_debug=false is_official_build=true skia_use_system_expat=false \
skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false \
skia_use_system_libwebp=false skia_use_system_zlib=false"