2021-05-25 08:58:51 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
# Contributor: Filipe Laíns (FFY00) <lains@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=discord
|
|
|
|
_pkgname=Discord
|
2022-12-10 02:54:17 +00:00
|
|
|
pkgver=0.0.22
|
2021-05-25 08:58:51 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="All-in-one voice and text chat for gamers that's free and secure."
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://discordapp.com'
|
|
|
|
license=('custom')
|
|
|
|
depends=('libnotify' 'libxss' 'nspr' 'nss' 'gtk3')
|
|
|
|
optdepends=('libpulse: Pulseaudio support'
|
|
|
|
'xdg-utils: Open files')
|
|
|
|
source=("https://dl.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz"
|
|
|
|
'LICENSE.html::https://discordapp.com/terms'
|
|
|
|
'OSS-LICENSES.html::https://discordapp.com/licenses')
|
2022-12-10 02:54:17 +00:00
|
|
|
sha512sums=('96c8486577bee7ae165bf96aab50c0733d83a2d9435357d9a4d9a3e9f3225ae6a7bf46e1a7d8b419ecc7ab4e270755332621a4f786ddb89a842379f5da40b271'
|
2021-05-25 12:19:07 +00:00
|
|
|
'SKIP'
|
|
|
|
'SKIP')
|
2021-05-25 08:58:51 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $_pkgname
|
|
|
|
|
|
|
|
sed -i "s|Exec=.*|Exec=/usr/bin/$pkgname|" $pkgname.desktop
|
|
|
|
echo 'Path=/usr/bin' >>$pkgname.desktop
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# Install the app
|
|
|
|
install -d "$pkgdir"/opt/$pkgname
|
|
|
|
cp -a $_pkgname/. "$pkgdir"/opt/$pkgname
|
|
|
|
|
|
|
|
chmod 755 "$pkgdir"/opt/$pkgname/$_pkgname
|
|
|
|
|
|
|
|
rm "$pkgdir"/opt/$pkgname/postinst.sh
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/{bin,share/{pixmaps,applications}}
|
|
|
|
ln -s /opt/$pkgname/$_pkgname "$pkgdir"/usr/bin/$pkgname
|
|
|
|
ln -s /opt/$pkgname/discord.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
|
|
|
|
ln -s /opt/$pkgname/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
|
|
|
|
|
|
|
# setuid on chrome-sandbox
|
|
|
|
chmod u+s "$pkgdir"/opt/$pkgname/chrome-sandbox
|
|
|
|
|
|
|
|
# Licenses
|
|
|
|
install -Dm 644 LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html
|
|
|
|
install -Dm 644 OSS-LICENSES.html "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.html
|
|
|
|
}
|