new: lfs/mpc-1.3.1

This commit is contained in:
Yingjie Wang 2024-11-14 00:32:59 -05:00
parent 4662861ac6
commit 5ef6f91c18

30
lfs/mpc-1.3.1.PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
pkgname=mpc
pkgver=1.3.1
pkgdesc="Minimalist command line interface to MPD"
homepage="https://www.musicpd.org/clients/mpc/"
license=(GPL-2.0-or-later)
sources=($pkgname-$pkgver.tar.gz)
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("5c9bc658c9fd0f940e8e3e0f09530c62")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/"${pkgname}-${pkgver}"
make
make html
}
src_check() {
make check
}
src_install() {
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install-html
}