summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoresrh2021-01-30 00:54:48 -0500
committeresrh2021-01-30 00:54:48 -0500
commitd115b132aae535eca5a708157f2d752b015ef274 (patch)
tree7bffee479f684e7d8ce7abc0bd420af98309a6a7
parent2f8eeff59eeba6eb0a6970c0cd98886d4d1beb05 (diff)
downloadaur-d115b132aae535eca5a708157f2d752b015ef274.tar.gz
install config file and notify user about it
-rw-r--r--PKGBUILD4
-rw-r--r--mpvacious.install5
2 files changed, 8 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d3ee67a2190..5e20eedccab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: esrh : email at esrh at netc dot eu
pkgname=mpv-mpvacious
-pkgver=0.12.r9.g4592698
+pkgver=0.12.r11.gcaff0ab
pkgrel=1
pkgdesc="MPV script to add keybindings to create Anki cards from movies and TV shows."
arch=('any')
@@ -10,6 +10,7 @@ depends=('mpv')
optdepends=('xclip: clipboard autocopy')
source=("mpv-mpvacious::git+https://github.com/Ajatt-Tools/mpvacious")
md5sums=('SKIP')
+install="mpvacious.install"
pkgver() {
@@ -20,5 +21,6 @@ pkgver() {
package() {
cd "$srcdir/$pkgname"
install -Dm644 subs2srs.lua "${pkgdir}/etc/mpv/scripts/subs2srs.lua"
+ install -Dm644 "$srcdir/$pkgname/.github/RELEASE/subs2srs.conf" "${pkgdir}/etc/mpv/script-opts/subs2srs.lua"
}
diff --git a/mpvacious.install b/mpvacious.install
new file mode 100644
index 00000000000..3acb7806777
--- /dev/null
+++ b/mpvacious.install
@@ -0,0 +1,5 @@
+post_install() {
+ echo -e '\033[1mCopy the default mpvacious config file from /etc/mpv/script-opts/subs2srs.conf to ~/.config/mpv/script-opts/subs2srs.conf and edit as necessary.\033[0m'
+
+}
+