# $Id$ # Contributor: Balló György pkgname=openwmail _pkgname=openWMail pkgver=1.0.0 pkgrel=1 pkgdesc="The missing desktop client for Gmail & Google Inbox" arch=(x86_64) url="https://openwmail.github.io/" license=(MPL) depends=(electron) makedepends=(git npm python2) options=(!strip) source=($_pkgname-$pkgver.tar.gz::https://github.com/openWMail/$pkgname/archive/v$pkgver.tar.gz $pkgname.sh $pkgname.desktop credentials.js) sha256sums=('445f54c02e3b83a5e5997eede34b3c969a67b3bd15f5f921b53e626f2777ebde' '5fa3dc9f2c022deab663541ec6269761d2683db0e1edc0d806ebd23a806bc0bd' 'dbc45544162aeebf06ce8037c53c67642c1e170824828d6ee87c0f5435050750' 'f51147540936c439249076b96679da2fc971ea00c9220d736b12f0879ed89467') build() { cd $_pkgname-$pkgver sed -i "s/ROOT_DIR, 'package.json'/__dirname, 'package.json'/" src/app/webpack.config.js sed -i 's|"wmail-spellchecker": "openWMail/wmail-spellchecker#1.0.5"|"nodehun": "2.0.12"|' src/app/package.json sed -i 's/wmail-spellchecker/nodehun/' src/scenes/platform/src/webviewInjection/Browser/Spellchecker.js cp ../credentials.js src/shared/credentials.js npm install pushd src/scenes/mailboxes npm install popd node_modules/.bin/webpack cd bin/app PYTHON=python2 npm install --production npm rebuild --runtime=electron --target=$(