summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Bos2018-07-23 14:05:16 +0100
committerCharles Bos2018-07-23 14:05:16 +0100
commitfa83a3294df0a21ef2382e03c6eacaf3c6a1f7b9 (patch)
treebe4eff0ef8c5e3e6864c5ba7cc3e851b1b7c5d13
downloadaur-fa83a3294df0a21ef2382e03c6eacaf3c6a1f7b9.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2beb502489a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = mpv-tools
+ pkgdesc = Helper scripts from mpv/TOOLS
+ pkgver = 0.29.0
+ pkgrel = 1
+ url = https://github.com/mpv-player/mpv
+ arch = any
+ license = GPL
+ optdepends = mpv
+ optdepends = bash
+ source = mpv-0.29.0.tar.gz::https://github.com/mpv-player/mpv/archive/v0.29.0.tar.gz
+ sha256sums = 772af878cee5495dcd342788a6d120b90c5b1e677e225c7198f1e76506427319
+
+pkgname = mpv-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..15ef0f0a854
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Charles Bos <charlesbos1 AT gmail>
+
+pkgname=mpv-tools
+_srcname=mpv
+pkgver=0.29.0
+pkgrel=1
+pkgdesc="Helper scripts from mpv/TOOLS"
+arch=('any')
+url="https://github.com/mpv-player/mpv"
+license=('GPL')
+optdepends=('mpv' 'bash')
+source=("${_srcname}-${pkgver}.tar.gz::https://github.com/mpv-player/${_srcname}/archive/v${pkgver}.tar.gz")
+sha256sums=('772af878cee5495dcd342788a6d120b90c5b1e677e225c7198f1e76506427319')
+
+package() {
+ cd "${_srcname}-${pkgver}/TOOLS"
+
+ tools=('idet.sh' 'mpv_identify.sh' 'umpv')
+
+ for x in ${tools[@]}; do
+ if [[ ! "${x}" == *"mpv"* ]]; then
+ f="mpv_${x}"
+ else
+ f="${x}"
+ fi
+ install -Dm755 "${x}" "${pkgdir}/usr/bin/${f}"
+ done
+}