diff options
author | Joost Bremmer | 2019-11-21 16:51:23 +0100 |
---|---|---|
committer | Joost Bremmer | 2019-11-21 16:55:52 +0100 |
commit | 18242301b8de23fe6df3158f6a96ee51114ac99c (patch) | |
tree | 60fb8b7e54966cca4f7b4cb825c96a95328530bf | |
download | aur-18242301b8de23fe6df3158f6a96ee51114ac99c.tar.gz |
Create package for mpv-filenavigator
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e7e717804bad --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = mpv-filenavigator-git + pkgdesc = MPV Plugin to navigate and open your local files in mpv + pkgver = r36.199fc33 + pkgrel = 1 + url = https://github.com/jonniek/mpv-filenavigator + arch = any + license = Unlicense + provides = mpv-filenavigator + conflicts = mpv-filenavigator + source = mpv-filenavigator::git+https://github.com/jonniek/mpv-filenavigator.git + sha256sums = SKIP + +pkgname = mpv-filenavigator-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..150f68c80f52 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*/* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8a7b7f345976 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Joost Bremmer <contact@madeofmagicandwires.online> +pkgname=mpv-filenavigator-git +pkgver=r36.199fc33 +pkgrel=1 +pkgdesc="MPV Plugin to navigate and open your local files in mpv" +arch=('any') +url="https://github.com/jonniek/mpv-filenavigator" +license=('Unlicense') +source=("${pkgname%-git}::git+https://github.com/jonniek/mpv-filenavigator.git") +sha256sums=("SKIP") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") + +# template start; name=git-pkgver; version=1; +pkgver() { + cd ${pkgname%-git} + git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' + [ ${PIPESTATUS[0]} -eq 0 ] || \ + # template start; name=git-revcount; version=1; + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + # template end; +} + +# vim: filetype=sh +# template end; + +package() { + cd "${pkgname%-git}" + install -Dvm755 "navigator.lua" "${pkgdir}/usr/lib/mpv/${pkgname%-git}.lua" +} + +# vim: set ts=2 sts=2 sw=2 et : |