generated from packages/package_template
All checks were successful
Publish / Build and publish (push) Successful in -1m33s
57 lines
2.0 KiB
Bash
57 lines
2.0 KiB
Bash
# Maintainer: Cory Sanin <corysanin@artixlinux.org>
|
|
# Contributor: Filipe Laíns (FFY00) <lains@archlinux.org>
|
|
# Contributor: Morgan <morganamilo@archlinux.org>
|
|
# Contributor: Robin Candau <antiz@archlinux.org>
|
|
# Contributor: Christian Heusel <gromit@archlinux.org>
|
|
# Contributor: T.J. Townsend <blakkheim@archlinux.org>
|
|
|
|
pkgname=discord
|
|
_pkgname=Discord
|
|
pkgver=0.0.117
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc="All-in-one voice and text chat for gamers"
|
|
arch=('x86_64')
|
|
url='https://discord.com'
|
|
license=('custom')
|
|
options=(!debug !strip)
|
|
optdepends=('libpulse: PulseAudio support'
|
|
'libappindicator-gtk3: Systray indicator support'
|
|
'xdg-utils: For opening URLs and files')
|
|
source=("https://dl.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz"
|
|
"LICENSE-$pkgver.html::https://discordapp.com/terms"
|
|
"OSS-LICENSES-$pkgver.html::https://discordapp.com/licenses")
|
|
sha512sums=('3c2b3e835cfd8f785f33e3c1a37c6c69dacc6b8d45151364ee46f220ef97022f862ac8e42a5e3915d3010e8443fc4caa5b5c1c209f698bda3fe847632207036b'
|
|
'SKIP'
|
|
'SKIP')
|
|
|
|
prepare() {
|
|
cd $_pkgname
|
|
sed -i "s|Exec=.*|Exec=/usr/bin/$pkgname|" $pkgname.desktop
|
|
}
|
|
|
|
package() {
|
|
depends=('libnotify' 'libxss' 'nspr' 'nss' 'gtk3')
|
|
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
|
|
ln -s /opt/$pkgname/$_pkgname "$pkgdir"/usr/bin/$pkgname
|
|
|
|
install -d "$pkgdir"/usr/share/applications
|
|
ln -s /opt/$pkgname/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
|
|
|
install -d "$pkgdir"/usr/share/icons/hicolor/256x256/apps
|
|
ln -s /opt/$pkgname/discord.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/$pkgname.png
|
|
|
|
# setuid on chrome-sandbox
|
|
chmod u+s "$pkgdir"/opt/$pkgname/chrome-sandbox
|
|
|
|
install -Dm644 LICENSE-$pkgver.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html
|
|
install -Dm644 OSS-LICENSES-$pkgver.html "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.html
|
|
}
|