void-packages/srcpkgs/atom/template
2019-11-29 14:18:48 +01:00

38 lines
1.1 KiB
Bash

# Template file for 'atom'
pkgname=atom
version=1.41.0
revision=1
archs="x86_64"
hostmakedepends="git pkg-config python-devel nodejs-lts-10 nodejs-lts-10-devel curl gtk+3
libXtst libXScrnSaver nss python alsa-lib"
makedepends="python-devel GConf-devel libgnome-keyring-devel gtk+3-devel
libX11-devel libxkbfile-devel libsecret-devel"
short_desc="Chrome-based text editor from Github"
maintainer="Wilson Birney <wpb@360scada.com>"
license="MIT"
homepage="https://atom.io"
distfiles="https://github.com/atom/atom/archive/v${version}.tar.gz"
checksum=4a440909462c461cbec9b82b5f97bd21719a34f0ab59f2d859df85a40246c949
shlib_provides="libGLESv2.so"
patch_args="-Np1"
nocross=yes
nostrip=yes
pre_build() {
npm install -g gyp
vmkdir /usr/share/icons/hicolor
}
do_build() {
script/build --install=$DESTDIR/usr
}
do_install() {
mv $DESTDIR/usr/libexec/applications $DESTDIR/usr/share
vlicense LICENSE.md
}
post_install() {
# Very hackish, git-imap-send is linked to openssl's libssl/libcrypto. Removing it allows it to package
rm $DESTDIR/usr/libexec/atom/resources/app.asar.unpacked/node_modules/dugite/git/libexec/git-core/git-imap-send
}