From d270173f2279aee26854e972b51b3d12ca160f04 Mon Sep 17 00:00:00 2001 From: Martin Friedrich Date: Sat, 16 Feb 2019 20:33:47 +0100 Subject: [PATCH 1/2] make shellcheck more heppy --- kunst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kunst b/kunst index d41638a..a0bfdb9 100755 --- a/kunst +++ b/kunst @@ -4,7 +4,8 @@ # ┴ ┴└─┘┘└┘└─┘ ┴ # Created by Siddharth Dushantha -VERSION=1.0 +# VERSION=1.0 + COVER=/tmp/kunst.jpg MUSIC_DIR=~/Music/ @@ -51,7 +52,7 @@ main() { # decode the base64 encoded image and save it # to /tmp/kunst.png - echo $MUSIC_NOTE | base64 --decode > $COVER + echo "$MUSIC_NOTE" | base64 --decode > $COVER fi echo "kunst: swapped album art to $(mpc current)" @@ -74,7 +75,7 @@ main() { # decode the base64 encoded image and save it # to /tmp/kunst.png - echo $MUSIC_NOTE | base64 --decode > $COVER + echo "$MUSIC_NOTE" | base64 --decode > $COVER fi echo "kunst: swapped album art to $(mpc current)" From f8a246e55e51571e9ced1246b8ddaaab07f1f1e0 Mon Sep 17 00:00:00 2001 From: Martin Friedrich Date: Sat, 16 Feb 2019 20:40:14 +0100 Subject: [PATCH 2/2] add PKGBUILD --- .SRCINFO | 19 +++++++++++++++++++ PKGBUILD | 26 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c11157f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = kunst + pkgdesc = kunst is a deamon that extracts the album art from the songs playing in mpd. + pkgver = 20190215 + pkgrel = 1 + url = https://github.com/networkpanic/kunst.git + arch = any + license = MIT + makedepends = git + depends = sxiv + depends = imagemagick + depends = bash + depends = ffmpeg + depends = mpc + provides = kunst + source = git+https://github.com/networkpanic/kunst.git + md5sums = SKIP + +pkgname = kunst + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5f5e149 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +#Maintainer: Martin Friedrich +#Contributor: Martin Friedrich +pkgname=kunst +_pkgname=kunst +pkgver=20190215 +pkgrel=1 +pkgdesc="kunst is a deamon that extracts the album art from the songs playing in mpd." +arch=('any') +url="https://github.com/sdushantha/kunst" +license=('MIT') +depends=('sxiv' 'imagemagick' 'bash' 'ffmpeg' 'mpc') +makedepends=('git') +provides=($_pkgname) +source=("git+https://github.com/networkpanic/kunst.git") +md5sums=('SKIP') + +pkgver() +{ + cd $_pkgname + git log -1 --format="%cd" --date=short | sed "s|-||g" +} + +package() { + cd "$srcdir/$_pkgname" + install -D -t "$pkgdir/usr/bin" "$_pkgname" +}