makedeb


logseq-bin 0.7.6-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.7.6
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=('9377998d9d48917820da301e6c7ea6a8b9c06cb1ae9a6e0772e04ba71bc4ead81a823364393f69f109b6f5c8447b4a00eeb1a479a840a442b6bed3983beaed01'
            '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"
}