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
11 changes: 11 additions & 0 deletions pkgbuilds/omanote/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"source": "local",
"release_ring": "fast",
"upstream": {
"git_tags": "https://github.com/ratandeepbansal/omanote.git",
"tag_pattern": "v{pkgver}",
"sources": {
"any": ["https://github.com/ratandeepbansal/omanote/archive/refs/tags/{tag}.tar.gz"]
}
}
}
46 changes: 46 additions & 0 deletions pkgbuilds/omanote/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Maintainer: Ratandeep Bansal <ratandeepbansal@gmail.com>

pkgname=omanote
pkgver=0.2.2
pkgrel=1
pkgdesc='Markdown notes app with a collapsible notes sidebar, built on Omawrite, with folders, tags, and quick capture'
arch=('x86_64' 'aarch64')
url='https://github.com/ratandeepbansal/omanote'
license=('MIT' 'OFL-1.1')
install='omanote.install'
options=('!debug')
depends=(
'hicolor-icon-theme'
'qt6-base'
'qt6-declarative'
'xdg-desktop-portal'
)
optdepends=(
'walker: pick a note by title with omanote-pick'
'fuzzel: pick a note by title with omanote-pick'
'wofi: pick a note by title with omanote-pick'
)
makedepends=(
'gcc'
'make'
'qt6-base'
'qt6-declarative'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/ratandeepbansal/omanote/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('87578a9ef6804d831b29a10d844acecda73242564a64bfde81fd2eb06cf8afbe')

build() {
cd "$srcdir/$pkgname-$pkgver"
./bin/build
}

package() {
cd "$srcdir/$pkgname-$pkgver"

install -Dm755 build/omanote "$pkgdir/usr/bin/omanote"
install -Dm755 bin/omanote-pick "$pkgdir/usr/bin/omanote-pick"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 fonts/OFL.txt "$pkgdir/usr/share/licenses/$pkgname/OFL.txt"
install -Dm644 pkgbuild/omanote.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/omanote.svg"
install -Dm644 pkgbuild/omanote.desktop "$pkgdir/usr/share/applications/omanote.desktop"
}
12 changes: 12 additions & 0 deletions pkgbuilds/omanote/omanote.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor >/dev/null 2>&1 || true
update-desktop-database -q >/dev/null 2>&1 || true
}

post_upgrade() {
post_install
}

post_remove() {
post_install
}