Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions srcpkgs/obsidian/files/LICENSE-Obsidian
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Taken from: https://obsidian.md/license

License overview

A simplified summary of our licenses and terms.

Last updated February 20, 2025
Summary
Free for everyone

Obsidian is free for all purposes, including personal, commercial, and non-profit use. To support our development and help keep Obsidian 100% user-supported, you can optionally purchase a Catalyst or Commercial license. The Catalyst license is for individuals and includes perks like early access to beta versions. The Commercial license allows organizations to be featured supporters on our website.
Your personal information is not required

Downloading Obsidian does not require an account, and we do not collect your personal information. You only need an account for payments or add-on services, and you can permanently delete your account at any time.
Your data is local

Your data is saved locally on your device and is not sent to our server. If you use Obsidian Publish or Obsidian Sync, we handle your data only as needed for those services. Publish data is hosted on our servers. Sync data is encrypted and inaccessible to our staff. Learn more about our approach to privacy and security.
Your content is yours

You retain ownership of all content you create in Obsidian. We do not claim any rights to it.

We own and reserve rights to our content, including text, images, and code in the app, which is protected by copyright and other laws.
You agree to our terms and privacy policy by using Obsidian

By using Obsidian, you agree to our Terms of Service and Privacy Policy. Please read and understand these documents, as they outline the terms of our relationship, including licensing, fees, security, privacy, liability, and dispute resolution.
License types

Obsidian is free for everyone to use. We offer optional paid licenses to support our development and provide additional benefits.
Free use

You can download and use Obsidian for free, forever, for any purpose including:

Personal use
Commercial use
Non-profit and charitable organizations
Educational institutions
Government departments and agencies

You can download and use Obsidian without creating an account.
Commercial license

Commercial Licenses are optional licenses that help keep Obsidian 100% user-supported. They can be purchased on an annual basis to show your organization's support for independent software development.
Catalyst license

Catalyst Licenses are special licenses that help keep Obsidian 100% user-supported while offering additional benefits, including early access to insider builds.

10 changes: 10 additions & 0 deletions srcpkgs/obsidian/files/obsidian.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Obsidian
Exec=/usr/bin/obsidian %U
Terminal=false
Type=Application
Icon=obsidian
StartupWMClass=obsidian
Comment=Obsidian
MimeType=x-scheme-handler/obsidian;
Categories=Office;
11 changes: 11 additions & 0 deletions srcpkgs/obsidian/files/obsidian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

OBSIDIAN_USER_FLAGS_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/obsidian/user-flags.conf"

# Allow users to override command-line options
if [[ -f "${OBSIDIAN_USER_FLAGS_FILE}" ]]; then
OBSIDIAN_USER_FLAGS=$(grep -v '^#' "$OBSIDIAN_USER_FLAGS_FILE")
fi

# Launch
exec electron35 /usr/lib/obsidian/app.asar $OBSIDIAN_USER_FLAGS "$@"
42 changes: 42 additions & 0 deletions srcpkgs/obsidian/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Template file for 'obsidian'
pkgname=obsidian
version=1.11.7
revision=1
archs="x86_64 aarch64"
depends="fontconfig zlib hicolor-icon-theme fuse3 electron35"
short_desc="Knowledge base that works on top of local Markdown files"
maintainer="Eren Öztürk <erenozturkhde@gmail.com>"
license="custom:Obsidian"
homepage="https://obsidian.md"
repository=nonfree
restricted=yes
nostrip=yes
nocross=yes
case "$XBPS_TARGET_MACHINE" in
x86_64)
distfiles="https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}.tar.gz"
checksum=1eba9e149d82e6e670d0806d0fdcbad3b57ad34edf3b09c0d0a9c0f377305a38
;;
aarch64)
distfiles="https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}-arm64.tar.gz"
checksum=41bfe126ac0ca55fc1019aa4f663a155586347e90917e96b257fc726a4e90c20
;;
*)
broken="No distfiles available for this target"
;;
esac

do_install() {
vbin "${FILESDIR}/obsidian.sh" obsidian
vinstall "${FILESDIR}/obsidian.desktop" 644 usr/share/applications

vinstall resources/icon.png 644 usr/share/pixmaps obsidian.png
vlicense "${FILESDIR}/LICENSE-Obsidian"

vlicense LICENSE.electron.txt
vlicense LICENSES.chromium.html

vmkdir usr/lib/obsidian
vcopy "resources/*" usr/lib/obsidian

}