makedeb


mpv-sponsorblock-minimal-git 0.r1.ca2844b-1


A minimal script to skip sponsored segments of YouTube videos

Click here to go back to the commit logs for mpv-sponsorblock-minimal-git.

Commit:


Hash: d8dcde49afe88f8a47f3635052255e69641894c3

Message: change install location, remove install message

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 20305f6..b2e566d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,17 @@
 pkgbase = mpv-sponsorblock-minimal-git
 	pkgdesc = A minimal script to skip sponsored segments of YouTube videos
-	pkgver = r9.b297fba
+	pkgver = r37.27dd1df
 	pkgrel = 1
 	url = https://codeberg.org/jouni/mpv_sponsorblock_minimal
-	install = mpv-sponsorblock-minimal.install
 	arch = any
 	license = GPL3
 	makedepends = git
 	depends = mpv
 	depends = curl
+	optdepends = lua-curl: use native lua binding to libcurl
 	provides = mpv-sponsorblock
 	conflicts = mpv-sponsorblock
 	source = mpv-sponsorblock-minimal::git+https://codeberg.org/jouni/mpv_sponsorblock_minimal
 	sha256sums = SKIP
 
 pkgname = mpv-sponsorblock-minimal-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 3429510..1e6be75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,17 @@
-# Maintainer: lmartinez-mirror
+# Contributor: lmartinez-mirror
 pkgname=mpv-sponsorblock-minimal-git
 _pkgname=${pkgname%-git}
-pkgver=r9.b297fba
+pkgver=r37.27dd1df
 pkgrel=1
 pkgdesc="A minimal script to skip sponsored segments of YouTube videos"
 arch=('any')
 url="https://codeberg.org/jouni/mpv_sponsorblock_minimal"
 license=('GPL3')
 depends=('mpv' 'curl')
+optdepends=('lua-curl: use native lua binding to libcurl')
 makedepends=('git')
 provides=('mpv-sponsorblock')
 conflicts=('mpv-sponsorblock')
-install=mpv-sponsorblock-minimal.install
 source=("$_pkgname::git+$url")
 sha256sums=('SKIP')
 
@@ -22,6 +22,8 @@ pkgver() {
 
 package() {
   cd "$_pkgname"
-  install -Dm 755 sponsorblock_minimal.lua "$pkgdir/usr/lib/mpv/sponsorblock-minimal.lua"
+  install -Dm644 sponsorblock_minimal.lua "$pkgdir/etc/mpv/scripts/sponsorblock-minimal.lua"
+  install -Dm644 README -t "$pkgdir/usr/share/doc/$_pkgname"
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname"
 }
 
diff --git a/mpv-sponsorblock-minimal.install b/mpv-sponsorblock-minimal.install
deleted file mode 100644
index c6cb16a..0000000
--- a/mpv-sponsorblock-minimal.install
+++ /dev/null
@@ -1,18 +0,0 @@
-post_install() {
-  printf "
-  You must symlink this package's contents to ~/.config/mpv/scripts
-  in order for it to work properly.
-
-  You can create this symlink with:
-  ln -sf /usr/lib/mpv/sponsorblock-minimal.lua ~/.config/mpv/scripts
-  ";
-}
-
-post_remove()  {
-  printf "
-  Please remember to remove the symlink if you created one to enable this plugin.
-
-  You can remove it using:
-  rm ~/.config/mpv/scripts/sponsorblock-minimal.lua
-  ";
-}