aboutsummaryrefslogtreecommitdiffstats
path: root/community/ympd/APKBUILD
blob: bb5249b2d3da3e3c0f17eb20e6966e84c258cbc8 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ympd
pkgver=1.3.0
pkgrel=9
pkgdesc="A standalone MPD Web GUI"
url="https://www.ympd.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="cmake libmpdclient-dev openssl-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="ympd-$pkgver.tar.gz::https://github.com/notandy/ympd/archive/v$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd"

build() {
	cmake -B build . \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir/" install
	install -D -m755 "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -D -m644 "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="7e2bd4124b0e7692e2528e9fc50955d1b357ba042d8c97941160ad31ee0c89bc53b349195b45d27ce77aaa954bc01aceba1a30cdb89d9f58644a0b4934498a16  ympd-1.3.0.tar.gz
56204dc84cbc1523584899ab9e3aa65e00526aea10b4422ed47bdd31f8c093af768225e3e7329d5ac42f37317e24198e9799a909c55469e0835acd9e04e0387b  ympd.initd
54c227d7dbb9c0eba8e785964f142b64fb5c32de562471acc7050b016d81d2f6f32f6802261a4e3de33836468122ad2197e0034af2ebb3799b02f24c44e7bab8  ympd.confd"