summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Mev2020-04-18 03:03:18 +0100
committerAlec Mev2020-04-18 03:03:18 +0100
commit10bf5558e75dcf15540e464d63f91dc4bbb188eb (patch)
tree0a1d92c618a78ce381d0231f6bd19ec5c12b0d57
downloadaur-10bf5558e75dcf15540e464d63f91dc4bbb188eb.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD39
-rw-r--r--autoplay.patch12
4 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a116ac20655
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = mpv-plugin-excerpt-git
+ pkgdesc = Excerpt creation from within mpv
+ pkgver = r13.cf52a04
+ pkgrel = 1
+ url = https://gitlab.com/lvml/mpv-plugin-excerpt
+ arch = any
+ license = GPL2
+ makedepends = git
+ depends = ffmpeg
+ depends = mpv
+ source = autoplay.patch
+ source = mpv-plugin-excerpt-git::git+https://gitlab.com/lvml/mpv-plugin-excerpt.git
+ sha256sums = 2430864e52d42878ba9b19e6e8e1671a0c1e8af4c2cb004b7388d76eee8b9c9f
+ sha256sums = SKIP
+
+pkgname = mpv-plugin-excerpt-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8eaa8fb4646
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/*.tar
+/*/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2f7233b29de
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Alec Mev <alec@mev.earth>
+
+pkgname=mpv-plugin-excerpt-git
+pkgver=r13.cf52a04
+pkgrel=1
+pkgdesc='Excerpt creation from within mpv'
+arch=('any')
+url=https://gitlab.com/lvml/mpv-plugin-excerpt
+license=('GPL2')
+depends=(
+ 'ffmpeg'
+ 'mpv'
+)
+makedepends=('git')
+source=(
+ 'autoplay.patch'
+ "${pkgname}::git+https://gitlab.com/lvml/mpv-plugin-excerpt.git"
+)
+sha256sums=(
+ '2430864e52d42878ba9b19e6e8e1671a0c1e8af4c2cb004b7388d76eee8b9c9f'
+ 'SKIP'
+)
+
+prepare() {
+ cd "${pkgname}"
+ patch --strip=1 < ../autoplay.patch
+}
+
+pkgver() {
+ cd "${pkgname}"
+ printf "r%s.%s" "`git rev-list --count HEAD`" "`git rev-parse --short HEAD`"
+}
+
+package() {
+ cd "${pkgname}"
+ install -Dm755 -t "${pkgdir}/usr/bin/" excerpt_copy
+ install -Dm644 -t "${pkgdir}/usr/lib/mpv/" excerpt.lua
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/" README.md
+}
diff --git a/autoplay.patch b/autoplay.patch
new file mode 100644
index 00000000000..7b25ada347e
--- /dev/null
+++ b/autoplay.patch
@@ -0,0 +1,12 @@
+--- a/excerpt.lua
++++ b/excerpt.lua
+@@ -460,9 +460,6 @@ end
+ -- things to do whenever a new file was loaded:
+
+ function excerpt_on_loaded()
+- -- pause play right after loading a file
+- mp.set_property("pause","yes")
+-
+ excerpt_zoom = 0.0
+ mp.set_property("video-zoom", excerpt_zoom)
+