blob: c4c687a6ece1a7e63b114192667c20b48b2e0024 (
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
41
42
43
44
45
46
47
48
|
# Maintainer: Ariejan de Vroom <ariejan.de.vroom@kabisa.nl>
pkgname=slopsmith-desktop-testing-bin
_pkgname=slopsmith-desktop
_upstream_ver=0.2.9
pkgver=0.2.9
pkgrel=1
pkgdesc="Slopsmith desktop app (testing channel: tracks latest release including alpha/beta)"
arch=('x86_64')
url="https://github.com/byrongamatos/slopsmith-desktop"
license=('AGPL-3.0-only')
depends=(
'gtk3'
'libnotify'
'nss'
'libxss'
'libxtst'
'xdg-utils'
'at-spi2-core'
'util-linux-libs'
'libsecret'
'alsa-lib'
)
optdepends=(
'libappindicator-gtk3: tray icon support'
'jack2: low-latency audio I/O'
)
provides=("${_pkgname}")
conflicts=("${_pkgname}" 'slopsmith-desktop-bin')
options=('!strip' '!debug')
source=("${_pkgname}-${_upstream_ver}.deb::${url}/releases/download/v${_upstream_ver}/${_pkgname}_${_upstream_ver}_amd64.deb")
sha256sums=('1be367c414db60d6d18754822e602202eff1ac5196f583efd407aff3bf216275')
noextract=("${_pkgname}-${_upstream_ver}.deb")
package() {
cd "${srcdir}"
bsdtar -xf "${_pkgname}-${_upstream_ver}.deb"
bsdtar -xpf data.tar.* -C "${pkgdir}"
# Remove paths Arch packages should not ship
rm -rf "${pkgdir}/usr/share/doc"
# Replace .deb's update-alternatives bin with a plain symlink
install -d "${pkgdir}/usr/bin"
ln -sf "/opt/Slopsmith/slopsmith-desktop" "${pkgdir}/usr/bin/slopsmith-desktop"
# SUID chrome-sandbox so Electron works on kernels without unprivileged userns
chmod 4755 "${pkgdir}/opt/Slopsmith/chrome-sandbox"
}
|