2024-05-02 23:27:28 +02:00
|
|
|
# Maintainer: Matthias Quintern <matthias(dot)quintern(at)posteo(dot)de>
|
2022-04-04 05:54:52 +02:00
|
|
|
pkgname=nicole
|
2024-05-02 23:27:28 +02:00
|
|
|
pkgver=2.1.0
|
2024-05-04 16:00:00 +02:00
|
|
|
pkgrel=2
|
2022-04-04 05:54:52 +02:00
|
|
|
pkgdesc="Write lyrics from genius or azlyrics.com to a mp3-tag"
|
|
|
|
arch=('any')
|
|
|
|
url="https:/github.com/MatthiasQuintern/nicole"
|
|
|
|
license=('GPL3')
|
|
|
|
depends=('python-mutagen' 'python-beautifulsoup4')
|
|
|
|
source=(file://${PWD}/nicole/nicole.py _nicole.compdef.zsh nicole.1.man)
|
2024-05-04 16:00:00 +02:00
|
|
|
md5sums=('4000cc89931a680d6e8531cd0a3fcc0a'
|
2024-05-02 23:27:28 +02:00
|
|
|
'a0a390f36de74a366065ab65bfd1d8de'
|
2024-05-03 22:43:05 +02:00
|
|
|
'4ad29357b608c88eebc49546a50e489d')
|
2022-04-04 05:54:52 +02:00
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "${pkgdir}/usr/bin"
|
|
|
|
cp "${srcdir}/nicole.py" "${pkgdir}/usr/bin/nicole"
|
|
|
|
chmod +x "${pkgdir}/usr/bin/nicole"
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}/usr/share/man/man1/"
|
|
|
|
cp "${srcdir}/nicole.1.man" "${pkgdir}/usr/share/man/man1/nicole.1"
|
|
|
|
|
|
|
|
# if zsh is installed
|
|
|
|
if [[ -f /bin/zsh ]]; then
|
|
|
|
mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
|
|
|
|
cp "${srcdir}/_nicole.compdef.zsh" "${pkgdir}/usr/share/zsh/site-functions/_nicole"
|
|
|
|
chmod +x "${pkgdir}/usr/share/zsh/site-functions/_nicole"
|
|
|
|
fi
|
|
|
|
}
|