mpv-launcher: new aport
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
365f9eab96
commit
d986ba9d7f
4 changed files with 45 additions and 0 deletions
26
mpv-launcher/APKBUILD
Normal file
26
mpv-launcher/APKBUILD
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
|
pkgname=mpv-launcher
|
||||||
|
pkgver=1.0.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Simple scheme launcher for mpv"
|
||||||
|
url="https://git.ddd.rip/ptrcnull/aports/tree/master/mpv-launcher"
|
||||||
|
arch="noarch"
|
||||||
|
license="MIT"
|
||||||
|
depends="xdg-utils mpv"
|
||||||
|
install="$pkgname.post-install"
|
||||||
|
source="
|
||||||
|
$pkgname
|
||||||
|
$pkgname.desktop
|
||||||
|
"
|
||||||
|
options="!check"
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
||||||
|
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
4015c69983622dfacd31e5174e7debe4c3b797caac5d6c65fb7622162a9a306ad70b06bfcbaea42800f730628d86eaabc9e102314c4ebf84ffb4122460471a90 mpv-launcher
|
||||||
|
0de5e9a5d6f21fa6422cccb250aec0f9d114bdf5f8bc2a45bee338a0fd98efe4923ccaa186408bf7d6af39f7e0c26c3cc3b86bd28f08ab9bd5697b13cb327d36 mpv-launcher.desktop
|
||||||
|
"
|
7
mpv-launcher/mpv-launcher
Executable file
7
mpv-launcher/mpv-launcher
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
url="$(echo $1 | cut -c5-)"
|
||||||
|
# url="$0"
|
||||||
|
logger $url
|
||||||
|
|
||||||
|
mpv $url
|
7
mpv-launcher/mpv-launcher.desktop
Normal file
7
mpv-launcher/mpv-launcher.desktop
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Exec=/home/patrycja/.local/bin/mpv-launcher %u
|
||||||
|
Name=mpv
|
||||||
|
MimeType=x-scheme-handler/mpv;
|
5
mpv-launcher/mpv-launcher.post-install
Normal file
5
mpv-launcher/mpv-launcher.post-install
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
xdg-settings set default-url-scheme-handler mpv mpv-launcher.desktop
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in a new issue