# Template file for 'atom' pkgname=atom version=1.33.1 revision=1 archs="x86_64" hostmakedepends="git pkg-config python-devel nodejs curl gtk+3 libXtst libXScrnSaver nss python alsa-lib" makedepends="python-devel GConf-devel libgnome-keyring-devel gtk+3-devel libX11-devel libxkbfile-devel libsecret-devel" short_desc="Chrome-based text editor from Github" maintainer="Wilson Birney " license="MIT" homepage="https://atom.io" distfiles="https://github.com/atom/atom/archive/v${version}.tar.gz" checksum=2b89ae78b637b7c39b419e011168a1ddf256bf442f56e0dff2b2e10c94a9af1d nocross=yes nostrip=yes do_install() { npm install -g gyp vmkdir /usr/share/icons/hicolor script/build --install=$DESTDIR/usr vlicense LICENSE.md } post_install() { #very hackish, git-imap-send is linked to openssl's libssl/libcrypto. Removing it allows it to package rm ${DESTDIR}/usr/share/atom/resources/app.asar.unpacked/node_modules/dugite/git/libexec/git-core/git-imap-send }