makedeb


logseq-bin 0.8.9-1


A privacy-first, open-source platform for knowledge sharing and management.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for logseq-bin.

# Maintainer: only_vip <onlyme_vip@protonmail.com>
# Thanks to AUR maintainer: Xuanwo <xuanwo@archlinuxcn.org>
pkgname=logseq-bin
_pkgname=logseq-desktop
pkgver=0.8.9
pkgrel=1
pkgdesc="A privacy-first, open-source platform for knowledge sharing and management."
arch=("amd64")
url="https://github.com/logseq/logseq"
license=('AGPL3')
provides=("logseq")
conflicts=("logseq")
source=("https://github.com/logseq/logseq/releases/download/${pkgver}/logseq-linux-x64-${pkgver}.zip"
        "logseq.desktop")
sha512sums=("884aa8dc26238d38c329c74f371de7b4d3e437584c4d584bea37a37f3dcf66db669db6687e56035c5b770b6a7938fd82ced8ced4150ac8ada5fa468744eaee53"
            "17fd7ea8ed6a36605c2b1dd8c02e2c7537681b83f8f4084a14b79b23872b64f82952d668b77ec9e5dae9097e1c374c2b0decc11a7e34b9c07a96771b12038d2a")
options=(!strip)
package() {
    cd "${srcdir}/Logseq-linux-x64"
    # desktop file
    install -Dm644 "${srcdir}/logseq.desktop" "${pkgdir}/usr/share/applications/logseq.desktop"
    # icons
    install -Dm644 "${srcdir}/Logseq-linux-x64/resources/app/icons/logseq.png" "${pkgdir}/usr/share/pixmaps/logseq.png"
    install -d "${pkgdir}/opt/${pkgname}"
    cp -r "${srcdir}/Logseq-linux-x64/"* "${pkgdir}/opt/${pkgname}/"
    install -d "${pkgdir}/usr/bin"
    ln -s "/opt/${pkgname}/Logseq" "${pkgdir}/usr/bin/logseq"
}