nicole/PKGBUILD

30 lines
996 B
Bash
Raw Normal View History

2022-04-04 05:54:52 +02:00
# Maintainer: Matthias Quintern <matthiasqui@protonmail.com>
pkgname=nicole
2024-05-02 23:24:19 +02:00
pkgver=2.1
2022-04-04 05:54:52 +02:00
pkgrel=1
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-02 23:25:17 +02:00
md5sums=('e7d1a3df7cb96798a7958018b28ed733'
'f3b46bdcaba5e7fc23bbacc6b2e153c0'
'8c3b8e5c90afdc8993ebab78d48f5668')
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
}