talimat 1016 B

12345678910111213141516171819202122232425262728293031323334
  1. # Tanım: Oyuncular için hepsi bir arada sesli ve yazılı sohbet.
  2. # URL: https://discordapp.com/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: gtk2 gconf libnotify glibc alsa-lib nspr nss libc++
  5. # Grup: medya
  6. isim=discord
  7. surum=0.0.5
  8. devir=1
  9. kaynak=(https://dl.discordapp.net/apps/linux/${surum}/${isim}-${surum}.tar.gz)
  10. derle() {
  11. # Install the main files.
  12. install -d "${PKG}/opt/${isim}"
  13. cp -a "${SRC}/Discord/." "${PKG}/opt/${isim}"
  14. # Exec bit
  15. chmod 755 "${PKG}/opt/${isim}/Discord"
  16. # Desktop Entry
  17. install -d "${PKG}/usr/share/applications"
  18. install "${PKG}/opt/${isim}/${isim}.desktop" "${PKG}/usr/share/applications"
  19. sed -i s%/usr/share%/opt% ${PKG}/usr/share/applications/${isim}.desktop
  20. # Main binary
  21. #install "${SRC}/Discord.sh" "${PKG}/usr/bin/discord"
  22. mkdir -p ${PKG}/usr/bin
  23. ln -s "/opt/${isim}/Discord" "${PKG}/usr/bin/${isim}"
  24. # Create symbolic link to the icon
  25. install -d "${PKG}/usr/share/pixmaps"
  26. ln -s "/opt/${isim}/discord.png" "${PKG}/usr/share/pixmaps/${isim}.png"
  27. }