30 lines
933 B
Bash
30 lines
933 B
Bash
# Template file for 'atom'
|
|
pkgname=atom
|
|
version=1.10.2
|
|
revision=2
|
|
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=de47aa7d80b3e31f1c42823fec6e98a9473021c022970a8548cb36c498a7e6f8
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
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
|
|
}
|