commit
ce1b06cd3d
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'atom'
|
# Template file for 'atom'
|
||||||
pkgname=atom
|
pkgname=atom
|
||||||
version=1.0.13
|
version=1.0.13
|
||||||
revision=1
|
revision=2
|
||||||
nocross=yes
|
nocross=yes
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
hostmakedepends="git nodejs pkg-config python-devel"
|
hostmakedepends="git pkg-config python-devel curl"
|
||||||
makedepends="python-devel GConf-devel libgnome-keyring-devel"
|
makedepends="python-devel GConf-devel libgnome-keyring-devel"
|
||||||
short_desc="Chrome-based text editor from Github"
|
short_desc="Chrome-based text editor from Github"
|
||||||
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
||||||
|
@ -12,14 +12,22 @@ license="MIT"
|
||||||
homepage="https://atom.io"
|
homepage="https://atom.io"
|
||||||
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
|
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
|
||||||
checksum=13e29e10fcbdad3a1427959ec94246d564b7741a5bdf77d5839f7d25a8c131e7
|
checksum=13e29e10fcbdad3a1427959ec94246d564b7741a5bdf77d5839f7d25a8c131e7
|
||||||
broken="https://github.com/atom/atom/issues/8508 can't build with nodejs >= 4"
|
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
local NODE_VERSION=0.12.7
|
||||||
|
local NVM_VERSION=0.26.1
|
||||||
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v$NVM_VERSION/install.sh | bash
|
||||||
|
source ~/.nvm/nvm.sh
|
||||||
|
nvm install $NODE_VERSION
|
||||||
|
nvm use $NODE_VERSION
|
||||||
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
script/build
|
script/build
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
script/grunt install --install-dir ${DESTDIR}/usr
|
script/grunt install --install-dir ${DESTDIR}/usr
|
||||||
sed -i "s|${DESTDIR}||g" ${DESTDIR}/usr/share/applications/atom.desktop
|
sed -i "s|${DESTDIR}||g" ${DESTDIR}/usr/share/applications/atom.desktop
|
||||||
|
vlicense LICENSE.md
|
||||||
# remove useless static libs
|
# remove useless static libs
|
||||||
find ${DESTDIR} -type f -name \*.a -delete
|
find ${DESTDIR} -type f -name \*.a -delete
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user