atom: update to 1.11.2.

This commit is contained in:
Andrea Brancaleoni 2016-10-29 14:12:29 +02:00
parent 0141e4045a
commit db75998877
1 changed files with 28 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'atom'
pkgname=atom
version=1.11.1
version=1.11.2
revision=1
nocross=yes
nostrip=yes
@ -11,20 +11,42 @@ maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="MIT"
homepage="https://atom.io"
distfiles="https://github.com/$pkgname/$pkgname/archive/v$version.tar.gz"
checksum=ba7f4d4ad39dae21cc58b02bd2f6e51b315994c24484802a51ecce22120d80ac
checksum=b7c09d03d950b0a6aca82225f072d9005d5681887e3a7c466b0504bf64d7c5cd
only_for_archs="i686 x86_64"
broken=yes
do_build() {
pre_build() {
sed -i -e "/exception-reporting/d" \
-e "/metrics/d" package.json
sed -e "s/<%= description %>/$pkgdesc/" \
-e "s|<%= appName %>|Atom|"\
-e "s|<%= installDir %>/share/<%= appFileName %>|/usr/bin|"\
-e "s|<%= iconPath %>|atom|"\
resources/linux/atom.desktop.in > resources/linux/Atom.desktop
}
do_build() {
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
vbin atom.sh atom
vinstall resources/linux/Atom.desktop 644 usr/share/applications atom.desktop
vinstall resources/app-icons/stable/png/1024.png 644 usr/share/pixmaps atom.png
case "$XBPS_TARGET_MACHINE" in
i686*) targetarch=i386;;
x86_64*) targetarch=amd64;;
*) targetarch=$hostarch;;
esac
vmkdir usr/share/atom
ls -lah
vcopy out/atom-$version-$targetarch/* usr/share/atom
vlicense LICENSE.md
ln -s /usr/share/atom/resources/app/apm/node_modules/.bin/apm "$DESTDIR/usr/bin/apm"
# remove useless static libs
find ${DESTDIR} -type f -name \*.a -delete
}