summaryrefslogtreecommitdiff
path: root/mpc/PKGBUILD
blob: 4c77b547696ab15027344cd7411e3b44cf8eabca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Blake Romero <blake@blkrom.com>
pkgname=mpc-git
pkgver=0.35.r7.g99b44b4
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
}