Created
February 24, 2017 23:15
-
-
Save samtux/7a7111eb2220e86171a33ec9c9e878ea to your computer and use it in GitHub Desktop.
nylas-mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to fix it? It propably install old version of apm