blob: db54cee61f73dcb98a4aa4f92314e0f15de1adb7 (
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
|
# Maintainer: PhantomX <real.phantomx+aur@proton.me>
_pkgname=guilded
_electron=electron
pkgname=${_pkgname}_arch_electron
pkgver=1.0.9199744
pkgrel=1
pkgdesc="Chat for Gaming Communities using the system provided electron for increased security and performance"
arch=('x86_64')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
url="https://www.guilded.gg/"
license=('custom')
depends=("${_electron}" 'gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core'
'util-linux-libs' 'libappindicator-gtk3' 'libsecret' 'libxkbcommon-x11'
'alsa-lib' 'libxkbfile')
source=("${pkgname}-${pkgver}.deb::https://www.guilded.gg/downloads/Guilded-Linux.deb"
'guilded-launcher.sh')
sha512sums=('1bd2ba300393fb0d1055d961af95042261f8264cab8996e0c54f62bd87c1e257f364c9a7d4c59f861c3b2316313c2a38729074232fd9a02586d13def297302b8'
'a037f8589fa25ccc6a1de4bd98e633ca909106058988c6eeb40e83f23f0c6d2ab24c3c4e00b5c0ab7ebc20706f6d80bddfa2efbe01b22a4d7e60712d73c14557')
prepare() {
tar Jxvf data.tar.xz
sed -i "s|@PKGNAME@|${_pkgname}|;s|@ELECTRON@|${_electron}|" guilded-launcher.sh
sed -i "s|Exec=.*|Exec=/usr/bin/$_pkgname %U|" usr/share/applications/guilded.desktop
}
package() {
cp -r usr "$pkgdir"/usr
# Install the app
install -d "$pkgdir"/usr/lib/$_pkgname
# Copy Relevant data
cp -r opt/Guilded/resources/* "$pkgdir"/usr/lib/$_pkgname/
install -d "$pkgdir"/usr/{bin,share/{icons,applications,doc}}
install -Dm 755 "${srcdir}/guilded-launcher.sh" "${pkgdir}/usr/bin/${_pkgname}"
}
|