28 lines
799 B
Bash
28 lines
799 B
Bash
# Template file for 'atom'
|
|
pkgname=atom
|
|
version=1.7.2
|
|
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=f6784b4f681706faf1e2a8369c06df4289646b1a547032e6b0b8b0e93e848113
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
do_build() {
|
|
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
|
|
}
|