Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New package: walker-0.12.12
Browse files Browse the repository at this point in the history
xavierfortier1 committed Jan 29, 2025
1 parent 0825ed2 commit 64f7279
Showing 2 changed files with 89 additions and 0 deletions.
62 changes: 62 additions & 0 deletions srcpkgs/walker/patches/systemd.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
--- a/cmd/walker.go
+++ b/cmd/walker.go
@@ -7,7 +7,6 @@
"log"
"os"
"os/signal"
- "path/filepath"
"slices"
"strconv"
"strings"
@@ -21,7 +20,6 @@
"github.com/abenz1267/walker/internal/state"
"github.com/abenz1267/walker/internal/ui"
"github.com/abenz1267/walker/internal/util"
- "github.com/adrg/xdg"
"github.com/diamondburned/gotk4/pkg/gio/v2"
"github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4"
@@ -107,34 +105,6 @@
}
}

- if slices.Contains(args, "-A") || slices.Contains(args, "--enableautostart") {
- content := `
-[Desktop Entry]
-Name=Walker
-Comment=Walker Service
-Exec=walker --gapplication-service
-StartupNotify=false
-Terminal=false
-Type=Application
- `
-
- err := os.WriteFile(filepath.Join(xdg.ConfigHome, "autostart", "walker-service.desktop"), []byte(strings.TrimSpace(content)), 0644)
- if err != nil {
- log.Panicln(err)
- }
-
- return
- }
-
- if slices.Contains(args, "-D") || slices.Contains(args, "--disableautostart") {
- err := os.Remove(filepath.Join(xdg.ConfigHome, "autostart", "walker-service.desktop"))
- if err != nil {
- log.Panicln(err)
- }
-
- return
- }
-
if isNew {
appName = fmt.Sprintf("%s-%d", appName, time.Now().Unix())
}
@@ -160,8 +130,6 @@
app.AddMainOption("forceprint", 'f', glib.OptionFlagNone, glib.OptionArgNone, "forces printing input if no item is selected", "")
app.AddMainOption("bench", 'b', glib.OptionFlagNone, glib.OptionArgNone, "prints nanoseconds for start and displaying in both service and client", "")
app.AddMainOption("active", 'a', glib.OptionFlagNone, glib.OptionArgString, "active item", "")
- app.AddMainOption("enableautostart", 'A', glib.OptionFlagNone, glib.OptionArgNone, "creates a desktop file for autostarting on login", "")
- app.AddMainOption("disableautostart", 'D', glib.OptionFlagNone, glib.OptionArgNone, "removes the autostart desktop file", "")

app.Connect("activate", ui.Activate(state))

27 changes: 27 additions & 0 deletions srcpkgs/walker/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'walker'
pkgname=walker
version=0.12.12
revision=1
build_style=go
build_helper="gir"
go_import_path=github.com/abenz1267/walker
go_package="./cmd"
hostmakedepends="gobject-introspection pkg-config"
makedepends="gtk4-layer-shell-devel libvips-devel"
depends="gtk4-layer-shell qalculate wl-clipboard"
short_desc="Multi-Purpose highly extendable application launcher for Wayland"
maintainer="Xavier Fortier <xavier.fortier@proton.me>"
license="MIT"
homepage="https://github.com/abenz1267/walker"
changelog="https://github.com/abenz1267/walker/releases"
distfiles="https://github.com/abenz1267/walker/archive/v${version}.tar.gz"
checksum=2646212b2a7fddc5102fa2a90d29c71bb8e1109a678888be765dc47f889b0179
make_check=no # See https://github.com/void-linux/void-packages/actions/runs/12976660965/job/36189194333?pr=53892

do_build() {
go build -o ${GOPATH}/bin/${pkgname} ${go_package}
}

post_install() {
vlicense LICENSE
}

0 comments on commit 64f7279

Please sign in to comment.