diff --git a/pkgbuilds/omanote/.omarchy/package.json b/pkgbuilds/omanote/.omarchy/package.json new file mode 100644 index 00000000..4251c07d --- /dev/null +++ b/pkgbuilds/omanote/.omarchy/package.json @@ -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"] + } + } +} diff --git a/pkgbuilds/omanote/PKGBUILD b/pkgbuilds/omanote/PKGBUILD new file mode 100644 index 00000000..d42bc510 --- /dev/null +++ b/pkgbuilds/omanote/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Ratandeep Bansal + +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" +} diff --git a/pkgbuilds/omanote/omanote.install b/pkgbuilds/omanote/omanote.install new file mode 100644 index 00000000..fe2b887f --- /dev/null +++ b/pkgbuilds/omanote/omanote.install @@ -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 +}