Username: Password: Remember me
pkgname=remarkable-client
_pkgname=remarkable
pkgver=0.0.5
_subver=16-1408-g7eca2b66
pkgrel=3
pkgdesc="Manage reMarkable device"
arch=('x86_64')
url="https://remarkable.com"
screenshot="https://support.remarkable.com/hc/article_attachments/115009191265/Screen_Shot_2017-09-26_at_18.40.23.png"
license=('CC0-1.0')
depends=(qt5-base qt5-websockets qt5-quickcontrols2)
source=("https://remarkable.engineering/remarkable-linux-client-$pkgver-$_subver.tgz"
        remarkable.png
        remarkable.desktop)
sha512sums=('138b4a79252ad92fc285e4006f8ad41b5c8eea397c7987c325cef049d91d70479acef171b34fb7619665910d9541c1e793effe9e05ece1a5027b9ab3b5e339b9'
            '37eceba2520c00164849485dd4226d060984cb359c17a8c5ed3e601b41af0d501b944a516a9e9058a1e68d515486401fd066e60351a46e475e9d9f1570b0795c'
            '7f4447b18e5f18bd636aaafb785c622d07240213629fb2ab9972a63ff7677e272b485d02b84d233ad33bd19bfa88d3fe1e38ab7d1648566b1a0009473a95daf3')
 
package() {
    cd "${srcdir}/remarkable-linux-client-$pkgver-$_subver"
 
    install -dm755 "${pkgdir}/opt/remarkable" \
        "${pkgdir}/usr/bin/" \
        "${pkgdir}/usr/share/pixmaps/"
 
    # Install bin files
    install -Dm755 "reMarkable" "${pkgdir}/opt/${_pkgname}/reMarkable"
    install -Dm755 "libpdfium.so.1" "${pkgdir}/opt/${_pkgname}/libpdfium.so.1"
 
    # Create links where needed
    ln -s /opt/${_pkgname}/reMarkable "${pkgdir}/usr/bin/remarkable"
 
    # Install desktop entry
    install -Dm644 "$srcdir/${_pkgname}.desktop" \
                    "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
 
    # Install icon
    install -Dm644 "$srcdir/${_pkgname}.png" \
                    "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
}