Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
- pkgname=bluebubbles-bin
- _pkgname=BlueBubbles
- pkgver=1.13.2
- _subver=2B66
- pkgrel=4
- pkgdesc="A cross-platform app ecosystem, bringing iMessage to Android, PC (Windows, Linux, & even macOS), and Web!"
- arch=(
- 'aarch64'
- 'x86_64'
- )
- url="https://bluebubbles.app/"
- _ghurl="https://github.com/BlueBubblesApp/bluebubbles-app"
- license=('Apache-2.0')
- provides=("${pkgname%-bin}=${pkgver}")
- conflicts=("${pkgname%-bin}")
- depends=(
- 'webkit2gtk-4.1'
- 'gdk-pixbuf2'
- 'mpv'
- 'libdbusmenu-glib'
- 'libnotify'
- 'libappindicator-gtk3'
- 'gtk3'
- )
- makedepends=(
- 'gendesk'
- )
- source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.tar::${_ghurl}/releases/download/v${pkgver}%${_subver}-desktop-beta.1/${pkgname%-bin}-linux-aarch64.tar")
- source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.tar::${_ghurl}/releases/download/v${pkgver}%${_subver}-desktop-beta.1/${pkgname%-bin}-linux-x86_64.tar")
- source=("${pkgname%-bin}.sh")
- sha256sums=('984792e5e81a0f8f076fdfd20bdc72c152664346b099312114ecb1e4fe2fcb83')
- sha256sums_aarch64=('314ced16b512e10dea5891c5e8a9db029bdfc6979c0923748ff8534de82094ac')
- sha256sums_x86_64=('875ec1bb2e8596dc63439610cdd05eca614f76768fb41c242957d9eea6e493c6')
- build() {
- sed -e "s|@appname@|${pkgname%-bin}|g" \
- -e "s|@runname@|${pkgname%-bin}|g" \
- -i "${srcdir}/${pkgname%-bin}.sh"
- gendesk -f -n -q --categories="Network" --name="${_pkgname}" --exec="${pkgname%-bin} %U"
- }
- package() {
- install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
- install -Dm755 -d "${pkgdir}/"{opt/"${pkgname%-bin}",usr/lib}
- cp -r "${srcdir}/"{data,lib} "${pkgdir}/opt/${pkgname%-bin}"
- install -Dm644 "${pkgdir}/opt/${pkgname%-bin}/data/flutter_assets/assets/icon/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
- install -Dm755 "${srcdir}/${pkgname%-bin}" -t "${pkgdir}/opt/${pkgname%-bin}"
- ln -sf "/usr/lib/libmpv.so" "${pkgdir}/usr/lib/libmpv.so.1"
- install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement