[arch-commits] Commit in discord-ptb/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Wed Aug 7 02:14:32 UTC 2019
Date: Wednesday, August 7, 2019 @ 02:14:32
Author: ffy00
Revision: 498117
upgpkg: discord-ptb 0.0.15-2
Added:
discord-ptb/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-08-07 02:14:32 UTC (rev 498117)
@@ -0,0 +1,52 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=discord-ptb
+_pkgname=DiscordPTB
+pkgver=0.0.15
+pkgrel=2
+pkgdesc="All-in-one voice and text chat for gamers that's free and secure. (Public Test Build)"
+arch=('x86_64')
+url='https://discordapp.com'
+license=('custom')
+depends=('libnotify' 'libxss' 'nspr' 'nss'
+ 'opera-ffmpeg-codecs' 'libegl' 'libgles') # Replacements
+optdepends=('libpulse: Pulseaudio support'
+ 'xdg-utils: Open files')
+provides=('discord')
+source=("https://dl-ptb.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz"
+ 'LICENSE.html::https://discordapp.com/terms'
+ 'OSS-LICENSES.html::https://discordapp.com/licenses')
+sha512sums=('78db1273b8098396fe80d86516fc2a116728f1bf3161e4255cb70ef54e91f02640eb7bc97dcf97909322c2e981650410a0d3b556d41ea11532829b7e69a792e1'
+ 'e26de51df34fb0190ed2c0b350b718f4de8e1da75c2aedfec095435e5e0d17e1bd86aac12c25763b47e6cf7158c8e620f4aa9a034d950548208e9da251755df0'
+ '75d842415ec550334b343d9a060d12451db2ca199519e53a2fb198a761a78600abf789e34f7940d56fb4f6fb87a27443ff4cf85a22b1804ef2ea51b02ecd7c7a')
+
+prepare() {
+ sed -i "s|Exec=.*|Exec=/usr/bin/$pkgname|" $_pkgname/$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
+
+ # Replacement symlinks
+ ln -sf /usr/lib/opera/lib_extra/libffmpeg.so "$pkgdir"/opt/$pkgname/libffmpeg.so
+ ln -sf /usr/lib/libEGL.so "$pkgdir"/opt/$pkgname/libEGL.so
+ ln -sf /usr/lib/libGLESv2.so "$pkgdir"/opt/$pkgname/libGLESv2.so
+ ln -sf /usr/lib/libEGL.so "$pkgdir"/opt/$pkgname/swiftshader/libEGL.so
+ ln -sf /usr/lib/libGLESv2.so "$pkgdir"/opt/$pkgname/swiftshader/libGLESv2.so
+
+ # 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
+}
+
More information about the arch-commits
mailing list