blob: b810d97f7a5cacfc0ade4241c1f39e085b0d193d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Posi <posi1981@gmail.com>
pkgname=atom-editor-bin
pkgver=1.58.0
pkgrel=1
pkgdesc="Hackable text editor built on Electron (official precompiled binary)"
arch=('x86_64')
url="https://github.com/atom/atom"
license=('MIT')
provides=('atom' 'apm')
options=(!strip !emptydirs)
depends=('git' 'gtk3' 'libnotify' 'libxtst' 'nss' 'xdg-utils' 'desktop-file-utils' 'alsa-lib' 'libgnome-keyring' 'libxss' 'libxkbfile' 'ripgrep')
optdepends=('gvfs')
conflicts=('atom' 'atom-editor' 'atom-editor-git' 'atom-editor-git-tagged' 'apm' 'atom-notracking')
install=$pkgname.install
source=("atom-amd64-v${pkgver}.deb::https://atom-installer.github.com/v${pkgver}/atom-amd64.deb"
"LICENSE::https://raw.githubusercontent.com/atom/atom/v${pkgver}/LICENSE.md"
atom-editor-bin.install
startupwmclass.patch)
sha512sums=('1da442490ad009e2d28094143fa72bb5cfe9c5f51faec63d5c6ca8f15380aedda36265456b5bd0ace72b1f5467d7d94f54ad1406d7f98d0501764e3e00205be1'
'aa2bfd5acaf642bbdb7290ac8b7ddeaf0b84ae8b12e6d893bb6adec799ea9141ff0f606526932568f15104ef2129f152ef19882949c1c2d27aed1ed19ffde185'
'e30f7e4812898b80c079ba419e0cb37522c2e154ef7fdd6dda3da06dcbcaadc42016dd3d3b8caf206b842a2b9e3b954e537626d72337c56f05365a733627ce6c'
'374b9f8fa1e0d2cab77d4cea9c718fb889bb6db3dbf9762ad5cbb88f3a0936023f36641012fc90e029832a772b8d4fdfe6b72f304e3950c02a7c9bf4d6d3d4ec')
prepare() {
# Extract data
bsdtar xf data.tar.xz
# Apply patches
patch -sp1 < "${srcdir}"/startupwmclass.patch
}
package() {
# Recursively remove group's write permission before moving to package directory
chmod -R g-w usr
mv usr "${pkgdir}"
# Add LICENSE
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}
|