diff options
author | Stykers | 2019-07-22 17:01:52 +0900 |
---|---|---|
committer | Stykers | 2019-07-22 17:01:52 +0900 |
commit | 2b4607848da1109411719853bdb2532de92d290d (patch) | |
tree | 06fe1f7d53a29e639db4d4c0123c70ca5ffac357 | |
parent | 41a8cdd8c48a0a581f7a88047fabe2b8c489563e (diff) | |
download | aur-2b4607848da1109411719853bdb2532de92d290d.tar.gz |
use venv to overcome the python version problem
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 3 deletions
@@ -14,6 +14,7 @@ pkgbase = brave-git makedepends = python2 makedepends = icu makedepends = glibc + makedepends = python2-virtualenv depends = gtk2 depends = nss depends = alsa-lib @@ -9,7 +9,7 @@ url="https://www.brave.com/" license=('custom:MPL2' 'BSD' 'Apache' 'custom:others') groups=('networking') depends=('gtk2' 'nss' 'alsa-lib' 'gconf' 'libxtst' 'libgnome-keyring' 'libxss' 'ttf-font') -makedepends=('git' 'npm' 'python2' 'icu' 'glibc') +makedepends=('git' 'npm' 'python2' 'icu' 'glibc' 'python2-virtualenv') optdepends=('cups: To print stuff' 'pepper-flash: Adobe Flash support') provides=('brave' 'brave-browser') @@ -28,14 +28,16 @@ pkgver() { build() { cd "$srcdir/brave-browser" - + python2 -m virtualenv venv + source venv/bin/activate npm install home-path buffer-to-vinyl stream-combiner2 npm install - npm run init --python=python2.7 + npm run init if [[ ! (-r /proc/sys/kernel/unprivileged_userns_clone && $(< /proc/sys/kernel/unprivileged_userns_clone) == 1 && -n $(zcat /proc/config.gz | grep CONFIG_USER_NS=y) ) ]]; then echo "User namespaces are not detected as enabled on your system, brave will run with the sandbox disabled" fi + deactivate } package() { |