diff --git a/hiprompt-gtk-ptrc/APKBUILD b/hiprompt-gtk-ptrc/APKBUILD new file mode 100644 index 0000000..6c1fd77 --- /dev/null +++ b/hiprompt-gtk-ptrc/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Martijn Braam +pkgname=hiprompt-gtk-ptrc +pkgver=0_git20230225 +pkgrel=0 +_commit=8d6ef1d042ec2731f84245164094e622f4be3f2d +pkgdesc="A GTK+ Himitsu prompter for Wayland" +url="https://git.sr.ht/~sircmpwn/hiprompt-gtk-py" +arch="noarch" +license="GPL-3.0-or-later" +source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hiprompt-gtk-py/archive/$_commit.tar.gz + im-too-lazy-to-fork.patch + " +depends="python3 py3-gobject3 gtk+3.0" +makedepends="py3-setuptools glib-dev meson ninja" +builddir="$srcdir/hiprompt-gtk-py-$_commit" + +build() { + abuild-meson . output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +check() { + meson test --no-rebuild -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +sha512sums=" +cac43582ae8de7cb0c68cf28309644a10b6e797d8477ff6af06fc18fd14c3a3a86ae6f17e1f549b39dd263cd43482219a2fb10c7e77e5863da5c72f28c66993c hiprompt-gtk-ptrc-8d6ef1d042ec2731f84245164094e622f4be3f2d.tar.gz +70d328a80f5941368f5da9989bf8d1226c3a1db4626b552c9d31418feba49ea0afee2c430c96a344bca003ac6e82020d08bb2700b283421aefcc4f3a04a41e92 im-too-lazy-to-fork.patch +" diff --git a/hiprompt-gtk-ptrc/im-too-lazy-to-fork.patch b/hiprompt-gtk-ptrc/im-too-lazy-to-fork.patch new file mode 100644 index 0000000..f41c95d --- /dev/null +++ b/hiprompt-gtk-ptrc/im-too-lazy-to-fork.patch @@ -0,0 +1,30 @@ +diff --git a/hiprompt_gtk/window.py b/hiprompt_gtk/window.py +index 840dbcc..537a09a 100644 +--- a/hiprompt_gtk/window.py ++++ b/hiprompt_gtk/window.py +@@ -1,5 +1,6 @@ + import gi +-from gi.repository import Gtk, Gio, Gdk, GLib ++gi.require_version('Notify', '0.7') ++from gi.repository import Gtk, Gio, Gdk, GLib, Notify + + from hiprompt_gtk.proto import PromptMode + +@@ -16,6 +17,7 @@ class Window: + self.provider, + Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) + ++ Notify.init("hiprompt") + self.window = Gtk.Window() + self.header = Gtk.HeaderBar() + self.window.set_titlebar(self.header) +@@ -36,7 +38,8 @@ class Window: + + def make_ui(self): + if self.session.mode == PromptMode.disclose: +- self.make_disclose_ui() ++ Notify.Notification.new("himitsu secret accessed", '\n'.join(map(str, self.session.keys))).show() ++ exit(0) + elif self.session.mode == PromptMode.delete: + self.make_delete_ui() + elif self.session.mode is None: