void-packages/srcpkgs/atom/template
2016-08-06 23:22:24 +02:00

30 lines
899 B
Bash

# Template file for 'atom'
pkgname=atom
version=1.9.6
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 <miwaxe@gmail.com>"
license="MIT"
homepage="https://atom.io"
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
checksum=4c27d2344e28d4156eff8a88ed0b66884a77f7e4b2cbaf316c6451b24fd7ff97
broken="only on build servers"
only_for_archs="i686 x86_64"
do_build() {
sed -i -e "/exception-reporting/d" \
-e "/metrics/d" package.json
script/build
}
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
}