ports/contrib (3.5): discord-ptb: initial import
commit 4a4117a3044047cd8f7e99d427d91e606276c805 Author: Danny Rawlins <monster.romster@gmail.com> Date: Mon Jan 27 17:02:34 2020 +1100 discord-ptb: initial import diff --git a/discord-ptb/.footprint b/discord-ptb/.footprint new file mode 100644 index 000000000..02de3bd48 --- /dev/null +++ b/discord-ptb/.footprint @@ -0,0 +1,88 @@ +drwxr-xr-x root/root opt/ +drwxr-xr-x root/root opt/discord-ptb/ +-rwxr-xr-x root/root opt/discord-ptb/DiscordPTB +-rwsr-xr-x root/root opt/discord-ptb/chrome-sandbox +-rw-r--r-- root/root opt/discord-ptb/chrome_100_percent.pak +-rw-r--r-- root/root opt/discord-ptb/chrome_200_percent.pak +-rw-r--r-- root/root opt/discord-ptb/discord-ptb.desktop +-rw-r--r-- root/root opt/discord-ptb/discord.png +-rw-r--r-- root/root opt/discord-ptb/icudtl.dat +-rw-r--r-- root/root opt/discord-ptb/libEGL.so +-rw-r--r-- root/root opt/discord-ptb/libGLESv2.so +-rw-r--r-- root/root opt/discord-ptb/libffmpeg.so +drwxr-xr-x root/root opt/discord-ptb/locales/ +-rw-r--r-- root/root opt/discord-ptb/locales/am.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ar.pak +-rw-r--r-- root/root opt/discord-ptb/locales/bg.pak +-rw-r--r-- root/root opt/discord-ptb/locales/bn.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ca.pak +-rw-r--r-- root/root opt/discord-ptb/locales/cs.pak +-rw-r--r-- root/root opt/discord-ptb/locales/da.pak +-rw-r--r-- root/root opt/discord-ptb/locales/de.pak +-rw-r--r-- root/root opt/discord-ptb/locales/el.pak +-rw-r--r-- root/root opt/discord-ptb/locales/en-GB.pak +-rw-r--r-- root/root opt/discord-ptb/locales/en-US.pak +-rw-r--r-- root/root opt/discord-ptb/locales/es-419.pak +-rw-r--r-- root/root opt/discord-ptb/locales/es.pak +-rw-r--r-- root/root opt/discord-ptb/locales/et.pak +-rw-r--r-- root/root opt/discord-ptb/locales/fa.pak +-rw-r--r-- root/root opt/discord-ptb/locales/fi.pak +-rw-r--r-- root/root opt/discord-ptb/locales/fil.pak +-rw-r--r-- root/root opt/discord-ptb/locales/fr.pak +-rw-r--r-- root/root opt/discord-ptb/locales/gu.pak +-rw-r--r-- root/root opt/discord-ptb/locales/he.pak +-rw-r--r-- root/root opt/discord-ptb/locales/hi.pak +-rw-r--r-- root/root opt/discord-ptb/locales/hr.pak +-rw-r--r-- root/root opt/discord-ptb/locales/hu.pak +-rw-r--r-- root/root opt/discord-ptb/locales/id.pak +-rw-r--r-- root/root opt/discord-ptb/locales/it.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ja.pak +-rw-r--r-- root/root opt/discord-ptb/locales/kn.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ko.pak +-rw-r--r-- root/root opt/discord-ptb/locales/lt.pak +-rw-r--r-- root/root opt/discord-ptb/locales/lv.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ml.pak +-rw-r--r-- root/root opt/discord-ptb/locales/mr.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ms.pak +-rw-r--r-- root/root opt/discord-ptb/locales/nb.pak +-rw-r--r-- root/root opt/discord-ptb/locales/nl.pak +-rw-r--r-- root/root opt/discord-ptb/locales/pl.pak +-rw-r--r-- root/root opt/discord-ptb/locales/pt-BR.pak +-rw-r--r-- root/root opt/discord-ptb/locales/pt-PT.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ro.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ru.pak +-rw-r--r-- root/root opt/discord-ptb/locales/sk.pak +-rw-r--r-- root/root opt/discord-ptb/locales/sl.pak +-rw-r--r-- root/root opt/discord-ptb/locales/sr.pak +-rw-r--r-- root/root opt/discord-ptb/locales/sv.pak +-rw-r--r-- root/root opt/discord-ptb/locales/sw.pak +-rw-r--r-- root/root opt/discord-ptb/locales/ta.pak +-rw-r--r-- root/root opt/discord-ptb/locales/te.pak +-rw-r--r-- root/root opt/discord-ptb/locales/th.pak +-rw-r--r-- root/root opt/discord-ptb/locales/tr.pak +-rw-r--r-- root/root opt/discord-ptb/locales/uk.pak +-rw-r--r-- root/root opt/discord-ptb/locales/vi.pak +-rw-r--r-- root/root opt/discord-ptb/locales/zh-CN.pak +-rw-r--r-- root/root opt/discord-ptb/locales/zh-TW.pak +-rw-r--r-- root/root opt/discord-ptb/natives_blob.bin +-rwxr-xr-x root/root opt/discord-ptb/postinst.sh +-rw-r--r-- root/root opt/discord-ptb/resources.pak +drwxr-xr-x root/root opt/discord-ptb/resources/ +-rw-r--r-- root/root opt/discord-ptb/resources/app.asar +drwxr-xr-x root/root opt/discord-ptb/resources/bootstrap/ +-rw-r--r-- root/root opt/discord-ptb/resources/bootstrap/manifest.json +-rw-r--r-- root/root opt/discord-ptb/resources/build_info.json +-rw-r--r-- root/root opt/discord-ptb/resources/electron.asar +-rw-r--r-- root/root opt/discord-ptb/snapshot_blob.bin +drwxr-xr-x root/root opt/discord-ptb/swiftshader/ +-rw-r--r-- root/root opt/discord-ptb/swiftshader/libEGL.so +-rw-r--r-- root/root opt/discord-ptb/swiftshader/libGLESv2.so +-rw-r--r-- root/root opt/discord-ptb/v8_context_snapshot.bin +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/discord-ptb +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rwxr-xr-x root/root usr/share/applications/discord-ptb.desktop +drwxr-xr-x root/root usr/share/pixmaps/ +lrwxrwxrwx root/root usr/share/pixmaps/discord-ptb.png -> ../../..//opt/discord-ptb/discord.png diff --git a/discord-ptb/.signature b/discord-ptb/.signature new file mode 100644 index 000000000..7459f7648 --- /dev/null +++ b/discord-ptb/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF34TrJaah+Z9TW8NVF7sh4PUOeyxBY/xM6RpcGffwKkTQEiyErwJ0gRp69hkCLJlQxEiyH3br9thke2Q6EM/XnQU= +SHA256 (Pkgfile) = e41dd74ac4cda7704466b4b96a0a7e1a0c2cd007fbbf48c7d8ce78735787dd43 +SHA256 (.footprint) = 495202c14b384835e3c9b249968704e2280229f9f5141b83ea156b6760ff6661 +SHA256 (discord-ptb-0.0.16.tar.gz) = 58015b8682e0e031fcbae9c20a4404fc3d148ad6d64a1d7a4e353eff772749c5 +SHA256 (discord-ptb.sh) = 5e665305a885aadd2281c75e1cfcb9a11f80fdcfb65bfcfceec735c3e385c517 diff --git a/discord-ptb/Pkgfile b/discord-ptb/Pkgfile new file mode 100644 index 000000000..f76ce6093 --- /dev/null +++ b/discord-ptb/Pkgfile @@ -0,0 +1,30 @@ +# Description: All-in-one voice and text chat for gamers - Public Test Build +# URL: https://discordapp.com/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: alsa-lib graphite2 gtk3 nss xorg-libxinerama xorg-libxcomposite xorg-libxcursor xorg-libxscrnsaver cups +# Optional: pulseaudio apulse + +name=discord-ptb +version=0.0.16 +release=1 +source=(https://dl-ptb.discordapp.net/apps/linux/$version/discord-ptb-$version.tar.g... + $name.sh) + +build() { + install -d $PKG/opt/$name + cp -a DiscordPTB/. $PKG/opt/$name + chmod 755 $PKG/opt/$name/DiscordPTB + + install -Dm 755 $name.sh $PKG/usr/bin/$name + + install -D $PKG/opt/$name/$name.desktop \ + $PKG/usr/share/applications/$name.desktop + + sed \ + -e "s|^\(Exec=\).*|\1$name|" \ + -i $PKG/usr/share/applications/$name.desktop + + install -d $PKG/usr/share/pixmaps + ln -s ../../..//opt/$name/discord.png \ + $PKG/usr/share/pixmaps/$name.png +} diff --git a/discord-ptb/discord-ptb.sh b/discord-ptb/discord-ptb.sh new file mode 100644 index 000000000..12b99b2be --- /dev/null +++ b/discord-ptb/discord-ptb.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +prt-get isinst apulse > /dev/null + +if [ $? = 0 ]; then + exec /usr/bin/apulse /opt/discord-ptb/DiscordPTB "$@" +else + exec /opt/discord-ptb/DiscordPTB "$@" +fi +
participants (1)
-
crux@crux.nu