diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..721e035e7d0a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: candroid_man <candroid_man@protonmail.com> +# Contributer: Ada <adadonderr@gmail.com> +# Contributor: Christian Finnberg <christian@finnberg.net> +pkgname='notesnook-git' +pkgver=1.6.11 +pkgrel=1 +pkgdesc="Take private notes, capture ideas, make lists & sync them anywhere" +arch=('x86_64') +url="https://notesnook.com/" +license=('Unknown') +depends=('gtk3' 'nss') +source=("${pkgname}_${pkgver}_amd64.deb"::"https://github.com/streetwriters/$pkgname/releases/download/v$pkgver/${pkgname}_amd64.deb") +sha256sums=('1633b7989f49c4cb119cff2aeaa696b9252cae4f43361a0bd0dce64fbb1ac674') + +package() { + bsdtar -xf data.tar.xz -C "$pkgdir" + + # Link to the binary + mkdir -p "${pkgdir}/usr/bin" + ln -s '/opt/Notesnook/Notesnook' "${pkgdir}/usr/bin/Notesnook" +} + +post_install() { + # SUID chrome-sandbox for Electron 5+ + chmod 4755 "${pkgdir}/opt/Notesnook/chrome-sandbox" || true + + update-mime-database /usr/share/mime || true + update-desktop-database /usr/share/applications || true +} |