Skip to content

Commit

Permalink
Revert "Drop deprecated hypr support"
Browse files Browse the repository at this point in the history
This reverts commit c55dc2b.
  • Loading branch information
k0kubun committed Oct 23, 2024
1 parent c55dc2b commit 840d4fd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/xremap-hypr-bin/.SRCINFO.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pkgbase = xremap-hypr-bin
pkgdesc = Dynamic key remapper for X11 and Wayland
pkgver = {{.Pkgver}}
pkgrel = 1
url = https://github.com/k0kubun/xremap
arch = x86_64
license = MIT
provides = xremap
source_x86_64 = xremap-hypr-bin-{{.Pkgver}}.zip::https://github.com/k0kubun/xremap/releases/download/v{{.Pkgver}}/xremap-linux-x86_64-hypr.zip
sha256sums_x86_64 = {{.SHA256Sum}}

pkgname = xremap-hypr-bin
17 changes: 17 additions & 0 deletions assets/xremap-hypr-bin/PKGBUILD.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Maintainer: k0kubun <takashikkbn@gmail.com>
pkgname=xremap-hypr-bin
pkgver={{.Pkgver}}
pkgrel=1
pkgdesc='Dynamic key remapper for X11 and Wayland'
url='https://github.com/k0kubun/xremap'
source_x86_64=("$pkgname-$pkgver.zip::https://github.com/k0kubun/xremap/releases/download/v$pkgver/xremap-linux-x86_64-hypr.zip")
arch=('x86_64')
license=('MIT')
provides=('xremap')
sha256sums_x86_64=('{{.SHA256Sum}}')

package() {
cd "$srcdir/"

install -Dm755 xremap "${pkgdir}/usr/bin/xremap"
}
1 change: 1 addition & 0 deletions cmd/aur-autoupdater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "github.com/xremap/aur-autoupdater/internal/processor"
func main() {
packages := []string{
"xremap-gnome-bin",
"xremap-hypr-bin",
"xremap-wlroots-bin",
"xremap-x11-bin",
}
Expand Down
14 changes: 14 additions & 0 deletions internal/packageinfo/packageinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ var PackageInfos = map[string]PackageInfo{
SrcinfoTemplateFilepath: "assets/xremap-gnome-bin/.SRCINFO.tmpl",
},
},
"xremap-hypr-bin": {
Name: "xremap-hypr-bin",
GitHubInfo: GitHubInfo{
Owner: "k0kubun",
Repo: "xremap",
ReleaseAssetURL: func(version string) string {
return fmt.Sprintf("https://github.com/k0kubun/xremap/releases/download/v%s/xremap-linux-x86_64-hypr.zip", version)
},
},
PkgbuildInfo: PkgbuildInfo{
PkgbuildTemplateFilepath: "assets/xremap-hypr-bin/PKGBUILD.tmpl",
SrcinfoTemplateFilepath: "assets/xremap-hypr-bin/.SRCINFO.tmpl",
},
},
"xremap-wlroots-bin": {
Name: "xremap-wlroots-bin",
GitHubInfo: GitHubInfo{
Expand Down

0 comments on commit 840d4fd

Please sign in to comment.