summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBehnam Momeni2016-06-30 20:01:06 +0430
committerBehnam Momeni2016-06-30 20:01:06 +0430
commitf2039a5e4b75b92b50bcc04265de428a9b092804 (patch)
treeae4ae7358214a7e46a8e627d5b200e4a88be4f84
parent96004e636cd0d4870cd161276f4b95ce89fbc663 (diff)
downloadaur-f2039a5e4b75b92b50bcc04265de428a9b092804.tar.gz
Porting to nodejs6 (by patching the archiver package dep)
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD12
2 files changed, 11 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 431fb50422c..58b91f8b58f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,11 @@
pkgbase = sozi
pkgdesc = A zooming presentation based on SVG, using JavaScript
pkgver = 16.02
- pkgrel = 3
+ pkgrel = 4
url = http://sozi.baierouge.fr/
arch = i686
arch = x86_64
license = custom:MPL2.0
- makedepends = nodejs5
makedepends = npm
makedepends = bower
makedepends = nodejs-grunt-cli
diff --git a/PKGBUILD b/PKGBUILD
index 10d3ace659a..2726078a77c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"