Merge pull request #1 from networkpanic/feature-aur

Feature aur
This commit is contained in:
Siddharth Dushantha 2019-02-17 07:15:24 +01:00 committed by GitHub
commit 2e190b59b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 3 deletions

19
.SRCINFO Normal file
View File

@ -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

26
PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
#Maintainer: Martin Friedrich <npanic@acid.wtf>
#Contributor: Martin Friedrich <npanic@acid.wtf>
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"
}

7
kunst
View File

@ -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)"