# Template file for 'atom' pkgname=atom version=1.11.1 revision=1 nocross=yes nostrip=yes hostmakedepends="git pkg-config python-devel nodejs git-perl" makedepends="python-devel GConf-devel libgnome-keyring-devel" short_desc="Chrome-based text editor from Github" maintainer="Andrea Brancaleoni " license="MIT" homepage="https://atom.io" distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz" checksum=ba7f4d4ad39dae21cc58b02bd2f6e51b315994c24484802a51ecce22120d80ac only_for_archs="i686 x86_64" broken=yes do_build() { sed -i -e "/exception-reporting/d" \ -e "/metrics/d" package.json script/build || script/build # FIXME: bug with overlayfs, build twice to fix } do_install() { script/grunt install --install-dir ${DESTDIR}/usr sed -i "s|${DESTDIR}||g" ${DESTDIR}/usr/share/applications/atom.desktop vlicense LICENSE.md # remove useless static libs find ${DESTDIR} -type f -name \*.a -delete }