Skip to content

Instantly share code, notes, and snippets.

@samtux
Created February 24, 2017 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samtux/7a7111eb2220e86171a33ec9c9e878ea to your computer and use it in GitHub Desktop.
Save samtux/7a7111eb2220e86171a33ec9c9e878ea to your computer and use it in GitHub Desktop.
nylas-mail
# Maintainer: Christian Rebischke <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>
# Maintainer: Matt Bilker <me@mbilker.us>
_pkgname='nylas-mail'
pkgname='nylas-mail-git'
pkgver=1.0.29.r0.g0a100dd7
pkgrel=1
pkgdesc="Nylas N1 - An extensible desktop mail app built on the modern web"
arch=('any')
url="https://github.com/nylas/nylas-mail"
license=('GPL3')
depends=('alsa-lib' 'desktop-file-utils' 'gtk2' 'gconf' 'nodejs6' 'libgnome-keyring' 'libnotify' 'libxtst' 'nss' 'python2')
makedepends=('git' 'npm')
provides=('nylas-mail')
conflicts=('nylas-mail')
source=('git+https://github.com/nylas/nylas-mail.git')
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_pkgname}"
sed -e "s/<%= description %>/$pkgdesc/" \
-e "s|<%= installDir %>|/usr|"\
-e "s|<%= iconName %>|nylas|"\
-e "s|<%= linuxShareDir %>|/usr/share/nylas|"\
-e "s|<%= appFileName %>|nylas|"\
build/resources/linux/Nylas.desktop > build/resources/linux/Nylas.desktop
export PYTHON=python2
script/bootstrap
script/grunt build --build-dir "${srcdir}/nylas-build"
}
package() {
cd "${_pkgname}"
script/grunt install --build-dir "${srcdir}/nylas-build" --install-dir "${pkgdir}/usr"
for s in 16 32 64 128 256 512; do
mkdir -p "${pkgdir}"/usr/local/share/icons/hicolor/"${s}"x"${s}"/apps
cp -p "${srcdir}"/nylas-build/icons/"${s}".png \
"${pkgdir}"/usr/local/share/icons/hicolor/"${s}"x"${s}"/apps/nylas.png
done
#install -Dm644 build/resources/linux/Nylas.desktop "${pkgdir}/usr/share/applications/nylas.desktop"
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
@dimmuboy
Copy link

npm ERR! Linux 4.9.11-1-ARCH
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! atom-package-manager@1.1.1 install: `node ./script/download-node.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the atom-package-manager@1.1.1 install script 'node ./script/download-node.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the atom-package-manager package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./script/download-node.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs atom-package-manager
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls atom-package-manager
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/nylas/src/nylas-mail/apm/npm-debug.log
==> ERROR: A failure occurred in build().
    Aborting...

How to fix it? It propably install old version of apm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment