blob: 5b3fcc4933e3b0950951107728c2abe583b0b378 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Kimiblock Moe
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>
# Contributor: Xuanwo <xuanwo@archlinuxcn.org>
pkgname=obsidian-bwrap
pkgver=1.7.7
pkgrel=2
pkgdesc="A powerful knowledge base that works on top of a local folder of plain text Markdown files. Sandboxed by portable for privacy."
arch=('x86_64')
url="https://obsidian.md"
license=('custom:Commercial')
depends=('zlib' 'hicolor-icon-theme' 'fuse' 'electron34' 'portable')
options=(!strip !debug)
source=("obsidian.sh"
"portable-config"
"obsidian.desktop"
"https://github.com/obsidianmd/obsidian-releases/releases/download/v${pkgver}/obsidian-${pkgver}.tar.gz"
)
sha256sums=('369188cbb9d9d2826757d48e013f711d8c9a243245bbd11cb1ef75c95572690d'
'f323046d9024b5bcba858cdddc481b3aac4d93ccf0da3ca11a53d7a18a40c256'
'88504345238b1142b43880d93cf8546993e18bdf1597074b4d4360d0ce22ca41'
'e881ea06f671db2c5002f0038b73a4e4b7b78a9dbf73aa9a7d0dc54a93d3d29a')
package() {
cd "$srcdir"
install -Dm755 portable-config "$pkgdir"/usr/lib/portable/info/md.obsidian.app/config
# Install executable file
install -Dm755 obsidian.sh "$pkgdir"/usr/bin/obsidian
# Install desktop file
install -Dm644 obsidian.desktop "$pkgdir"/usr/share/applications/md.obsidian.Obsidian.desktop
# Most of the release package is electron, but we use system's default one
# So strip away asar packages and put them to /usr/lib/
cd "obsidian-${pkgver}"/resources/
install -dm0755 "$pkgdir"/usr/lib/obsidian
# install icon
install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/obsidian.png
find . -type d -exec install -d {,"$pkgdir"/usr/lib/obsidian/}{} \;
find . -type f -exec install -D {,"$pkgdir"/usr/lib/obsidian/}{} \;
}
|