summaryrefslogtreecommitdiff
path: root/mpc
diff options
context:
space:
mode:
Diffstat (limited to 'mpc')
-rw-r--r--mpc/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/mpc/PKGBUILD b/mpc/PKGBUILD
new file mode 100644
index 0000000..6ed2eb7
--- /dev/null
+++ b/mpc/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Blake Romero <blake@blkrom.com>
+pkgname=mpc-git
+pkgver=0.35.r6.gc91c08f
+pkgrel=1
+pkgdesc="A minimalist command line interface to MPD"
+arch=('x86_64')
+url='https://github.com/MusicPlayerDaemon/mpc'
+license=('GPL-2')
+depends=('libmpdclient')
+makedepends=('git' 'meson' 'ninja' 'python-sphinx')
+conflicts=('mpc')
+provides=("${pkgname%-*}")
+conflicts=("${pkgname%-*}" "${pkgname}")
+source=("${pkgname%-*}::git+${url}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-*}"
+ git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/; s/-/./g; s/^v//'
+}
+
+build() {
+ cd "${pkgname%-*}"
+ meson setup \
+ --prefix=/usr --buildtype=release -Db_lto=true \
+ . output
+ ninja -C output
+}
+
+package() {
+ cd "${pkgname%-*}"
+ DESTDIR="${pkgdir}" ninja -C output install
+}
+