🔒 Repository is read-only – file editing is disabled.

recipes/gui/discord/PAGBUILD.yaml main

55 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
pkgname: discord
pkgver: '1.0.154'
pkgrel: '1'
pkgdesc: 'All-in-one voice and text chat for gamers that''s free and secure.'
url: 'https://discordapp.com/'
arch: x86_64
license:
- MIT

depends:
- gtk3
- libnotify
- 'xorg-libxscrnsaver'
- glibc
- 'alsa-lib'
- nspr
- nss
- pulseaudio
- 'noto-fonts-emoji'
- 'hicolor-icon-theme'
- 'desktop-file-utils'
- 'gtk-update-icon-cache'
- 'shared-mime-info'

makedepends: []
source:
- 'https://dl.discordapp.net/apps/linux/${pkgver}/${pkgname}-${pkgver}.tar.gz'
- terms
- licenses

sha256sums:
- SKIP
- SKIP
- SKIP

build: |
  sed -i "s|Exec=.*|Exec=/usr/bin/${pkgname}|" Discord/${pkgname}.desktop
  install -d ${PKGDIR}/opt/${pkgname}
  cp -a Discord/. ${PKGDIR}/opt/${pkgname}
  chmod 755 ${PKGDIR}/opt/${pkgname}/discord

  install -d ${PKGDIR}/usr/share/applications
  ln -s /opt/${pkgname}/${pkgname}.desktop ${PKGDIR}/usr/share/applications

  install -d ${PKGDIR}/usr/bin
  ln -s /opt/${pkgname}/discord ${PKGDIR}/usr/bin/${pkgname}

  install -d ${PKGDIR}/usr/share/pixmaps
  ln -s /opt/${pkgname}/${pkgname}.png ${PKGDIR}/usr/share/pixmaps/${pkgname}.png

  install -Dm644 terms ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE.html
  install -Dm644 licenses ${PKGDIR}/usr/share/licenses/${pkgname}/OSS-LICENSES.html

package: |
  true