summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorge Matthies2021-04-09 18:20:10 +0200
committerTorge Matthies2021-04-09 18:20:10 +0200
commit264210a07a40a63c83ec3b1d818e564218974e9d (patch)
tree8ef9da4f2f346475b3964266030432aca273617d
parentefcf69eaac20a1ea1c6f1c240ca3f1bcbaf4b5eb (diff)
downloadaur-264210a07a40a63c83ec3b1d818e564218974e9d.tar.gz
Add url handler for osu:// urls.
-rw-r--r--.SRCINFO4
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD9
-rw-r--r--osu-url-handler.desktop8
4 files changed, 18 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7976fea0e7b..ea915a60cc3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = osu-handler
pkgdesc = Provides a handler for osu! file formats
pkgver = 0.3.0
- pkgrel = 2
+ pkgrel = 3
install = osu-handler.install
arch = any
license = GPL3
@@ -9,7 +9,9 @@ pkgbase = osu-handler
depends = desktop-file-utils
source = https://github.com/openglfreak/osu-handler-wine/archive/refs/tags/v0.3.0.tar.gz
source = osu-file-extensions-handler.desktop
+ source = osu-url-handler.desktop
sha256sums = 027a4cfc3f0e83d0ecd10958261c353df7d7a119895ba8c48437865ffcf88df3
sha256sums = 7b2be09150e4eec5b4d74b3c393fb1bb1c2b9896cb07d8fd362233286a8040b8
+ sha256sums = e5e8d5c1ff6c2e464cb61c88a7ea74b7062ba9f3b8a69e18d5313b9eec3c1e76
pkgname = osu-handler
diff --git a/.gitignore b/.gitignore
index 290dfde9e7f..af7403f12f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
!.SRCINFO
!PKGBUILD
!osu-file-extensions-handler.desktop
+!osu-url-handler.desktop
!osu-handler.install
diff --git a/PKGBUILD b/PKGBUILD
index 01b5cf8cfab..ef59609f02d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,15 +3,17 @@
pkgname=osu-handler
pkgdesc='Provides a handler for osu! file formats'
pkgver=0.3.0
-pkgrel=2
+pkgrel=3
arch=(any)
license=(GPL3)
depends=(osu-mime desktop-file-utils)
install='osu-handler.install'
source=("https://github.com/openglfreak/osu-handler-wine/archive/refs/tags/v${pkgver}.tar.gz"
- osu-file-extensions-handler.desktop)
+ osu-file-extensions-handler.desktop
+ osu-url-handler.desktop)
sha256sums=('027a4cfc3f0e83d0ecd10958261c353df7d7a119895ba8c48437865ffcf88df3'
- '7b2be09150e4eec5b4d74b3c393fb1bb1c2b9896cb07d8fd362233286a8040b8')
+ '7b2be09150e4eec5b4d74b3c393fb1bb1c2b9896cb07d8fd362233286a8040b8'
+ 'e5e8d5c1ff6c2e464cb61c88a7ea74b7062ba9f3b8a69e18d5313b9eec3c1e76')
build() {
cd "$srcdir"
@@ -25,4 +27,5 @@ package() {
install -D -m755 "$srcdir/build/osu-handler-wine" 'usr/lib/osu-handler/osu-handler-wine'
install -D -m644 "$srcdir/osu-file-extensions-handler.desktop" 'usr/share/applications/osu-file-extensions-handler.desktop'
+ install -D -m644 "$srcdir/osu-url-handler.desktop" 'usr/share/applications/osu-url-handler.desktop'
}
diff --git a/osu-url-handler.desktop b/osu-url-handler.desktop
new file mode 100644
index 00000000000..21290d1d1be
--- /dev/null
+++ b/osu-url-handler.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=osu!
+MimeType=x-scheme-handler/osu;
+Exec=/usr/lib/osu-handler/osu-handler-wine 'C:\\windows\\system32\\start.exe' /ProgIDOpen osu %u
+NoDisplay=true
+StartupNotify=true
+Icon=osu!