Advertisement
Guest User

Untitled

a guest
Jun 11th, 2024
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. # Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
  2. pkgname=bluebubbles-bin
  3. _pkgname=BlueBubbles
  4. pkgver=1.13.2
  5. _subver=2B66
  6. pkgrel=4
  7. pkgdesc="A cross-platform app ecosystem, bringing iMessage to Android, PC (Windows, Linux, & even macOS), and Web!"
  8. arch=(
  9. 'aarch64'
  10. 'x86_64'
  11. )
  12. url="https://bluebubbles.app/"
  13. _ghurl="https://github.com/BlueBubblesApp/bluebubbles-app"
  14. license=('Apache-2.0')
  15. provides=("${pkgname%-bin}=${pkgver}")
  16. conflicts=("${pkgname%-bin}")
  17. depends=(
  18. 'webkit2gtk-4.1'
  19. 'gdk-pixbuf2'
  20. 'mpv'
  21. 'libdbusmenu-glib'
  22. 'libnotify'
  23. 'libappindicator-gtk3'
  24. 'gtk3'
  25. )
  26. makedepends=(
  27. 'gendesk'
  28. )
  29. source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.tar::${_ghurl}/releases/download/v${pkgver}%${_subver}-desktop-beta.1/${pkgname%-bin}-linux-aarch64.tar")
  30. source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.tar::${_ghurl}/releases/download/v${pkgver}%${_subver}-desktop-beta.1/${pkgname%-bin}-linux-x86_64.tar")
  31. source=("${pkgname%-bin}.sh")
  32. sha256sums=('984792e5e81a0f8f076fdfd20bdc72c152664346b099312114ecb1e4fe2fcb83')
  33. sha256sums_aarch64=('314ced16b512e10dea5891c5e8a9db029bdfc6979c0923748ff8534de82094ac')
  34. sha256sums_x86_64=('875ec1bb2e8596dc63439610cdd05eca614f76768fb41c242957d9eea6e493c6')
  35. build() {
  36. sed -e "s|@appname@|${pkgname%-bin}|g" \
  37. -e "s|@runname@|${pkgname%-bin}|g" \
  38. -i "${srcdir}/${pkgname%-bin}.sh"
  39. gendesk -f -n -q --categories="Network" --name="${_pkgname}" --exec="${pkgname%-bin} %U"
  40. }
  41. package() {
  42. install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
  43. install -Dm755 -d "${pkgdir}/"{opt/"${pkgname%-bin}",usr/lib}
  44. cp -r "${srcdir}/"{data,lib} "${pkgdir}/opt/${pkgname%-bin}"
  45. install -Dm644 "${pkgdir}/opt/${pkgname%-bin}/data/flutter_assets/assets/icon/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
  46. install -Dm755 "${srcdir}/${pkgname%-bin}" -t "${pkgdir}/opt/${pkgname%-bin}"
  47. ln -sf "/usr/lib/libmpv.so" "${pkgdir}/usr/lib/libmpv.so.1"
  48. install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement