makedeb


logseq-bin 0.10.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.10.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=("42c7823973def77484f0f3ec21a47dad4acf02d60d40c1aeae73b583b6cbae8fea911692aac069c6daa657b8849e1129f13f328a4e1f991b289e9805a612a368"
            "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"
}