void-packages/srcpkgs/atom/template

55 lines
1.6 KiB
Bash

# Template file for 'atom'
_dugite_ver=1.88.1
_git_utils_ver=5.6.2
pkgname=atom
version=1.44.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"
depends="git"
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
https://registry.npmjs.org/dugite/-/dugite-${_dugite_ver}.tgz
https://registry.npmjs.org/git-utils/-/git-utils-${_git_utils_ver}.tgz"
checksum="
8d79697b0c969f22ee8dc2c1d27c608036e92deaf63574f8cd1509ea506eded9
ddb5479cc78cf863f05b1c35420d66dde55f2bfa66f30cd7bac484ffd5fd6782
b430ee53a09317df5b6677e5625950baefe840258f2e9d55cf4fc448c9d8576e"
skip_extraction="
dugite-${_dugite_ver}.tgz
git-utils-${_git_utils_ver}.tgz"
shlib_provides="libGLESv2.so"
patch_args="-Np1"
nocross=yes
nostrip=yes
python_version=2
post_extract() {
mkdir -p packages/dugite packages/git-utils
bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/dugite-${_dugite_ver}.tgz \
--strip-components=1 -C packages/dugite
bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/git-utils-${_git_utils_ver}.tgz \
--strip-components=1 -C packages/git-utils
}
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
}