jobextra/mpc/PKGBUILD

44 lines
1.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=mpc
pkgver=0.35
pkgrel=01
pkgdesc="Minimalist command line interface to MPD"
url="https://www.musicpd.org/clients/mpc/"
depends=(glibc)
makedepends=(libmpdclient meson python-sphinx rsync)
# options=(debug) ## uncomment to produce the debug pkg
source=(https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz{,.sig})
build() {
arch-meson build $pkgname-$pkgver
meson compile -C build
}
package() {
depends+=(libmpdclient.so)
meson install -C build --destdir "$pkgdir"
install -vDm 644 $pkgname-$pkgver/contrib/mpc-completion.bash "$pkgdir/usr/share/bash-completion/completions/mpc"
# the html documentation is not reproducible and only the man page is needed
rm -rvf "$pkgdir/usr/share/doc/$pkgname/"{html,contrib/*.bash}
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL-2.0-or-later)
validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512') # Max Kellermann <max@blarg.de>
sha256sums=(382959c3bfa2765b5346232438650491b822a16607ff5699178aa1386e3878d4 # mpc-0.35.tar.xz
28caa578928e0b82e7f86421c5998f434f5e9ecdcf60680adf6c3ffd52a61d1e) # mpc-0.35.tar.xz.sig
## 85b0d1bac3a1dc9dd608a65abb1c9f32b1340cd1e2a221e00aa1a48cfa984d77 mpc-0.35-01-x86_64.pkg.tar.lz