# Maintainer: Christian Rebischke # Maintainer: Matt Bilker _pkgname='N1' pkgname='n1-git' pkgver=..0edbf51 pkgrel=1 pkgdesc="A new mail client, built on the modern web and designed to be extended." arch=('any') url="https://github.com/mbilker/N1/tree/node-v4" license=('GPL3') depends=('gconf' 'nodejs' 'libgnome-keyring' 'nss' 'python2') makedepends=('git' 'npm') provides=('n1') conflicts=('n1') source=('git+https://github.com/nylas/N1.git') sha512sums=('SKIP') pkgver() { cd "nylas" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$_pkgname" export PYTHON=python2 script/bootstrap script/grunt build --build-dir "$srcdir/nylas-build" script/grunt set-version --build-dir "$srcdir/nylas-build" script/grunt generate-asar --build-dir "$srcdir/nylas-build" } package() { cd "$_pkgname" script/grunt install --build-dir "$srcdir/nylas-build" --install-dir "$pkgdir/usr" install -Dm644 build/resources/linux/Nylas.desktop "$pkgdir/usr/share/applications/nylas.desktop" install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" }