diff options
author | Behnam Momeni | 2016-06-30 20:01:06 +0430 |
---|---|---|
committer | Behnam Momeni | 2016-06-30 20:01:06 +0430 |
commit | f2039a5e4b75b92b50bcc04265de428a9b092804 (patch) | |
tree | ae4ae7358214a7e46a8e627d5b200e4a88be4f84 /PKGBUILD | |
parent | 96004e636cd0d4870cd161276f4b95ce89fbc663 (diff) | |
download | aur-f2039a5e4b75b92b50bcc04265de428a9b092804.tar.gz |
Porting to nodejs6 (by patching the archiver package dep)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -8,7 +8,7 @@ pkgver=16.02 # the build version is obtained from [here](https://github.com/senshu/Sozi/releases) _buildver=16.02.141048 _pkgverpostfix="-fix344" # this is required because the pkgver cannot contain hyphen -pkgrel=3 +pkgrel=4 pkgdesc="A zooming presentation based on SVG, using JavaScript" url="http://sozi.baierouge.fr/" @@ -20,7 +20,7 @@ depends=("gconf" "libnotify" "alsa-lib" "nss" "gtk2" "libxtst") optdepends=( 'inkscape: for editing the original SVG document (any SVG editor can be used)' ) -makedepends=('nodejs5' 'npm' 'bower' 'nodejs-grunt-cli' +makedepends=('npm' 'bower' 'nodejs-grunt-cli' 'jq' 'semver') source=("https://github.com/senshu/Sozi/archive/${pkgver}${_pkgverpostfix}.tar.gz" @@ -134,6 +134,14 @@ build() { npminstallpackage "$target" done + oldarchiver="${srcdir}/build/archiver-0.13.1/" + if [ -d "$oldarchiver" ]; then + cd "$oldarchiver/lib/util/" + sed "s/var buf = new Buffer(size, 'utf8');/var buf = new Buffer(size);/" "index.js" > index.js.patched + cp "index.js.patched" "index.js" + rm "index.js.patched" + fi + cd "${srcdir}/Sozi-${pkgver}${_pkgverpostfix}/" rm -rf "build" rm -rf "node_modules"; mkdir "node_modules" |