aboutsummaryrefslogtreecommitdiffstats
path: root/community/ympd/APKBUILD
blob: efa1b05da5228717acefeab7a30b60c2b7879c26 (plain) (blame)
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
35
36
37
38
39
# 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
	gcc-10.patch
	"

build() {
	# Upstream has fixes in a pull request but is not merged yet
	CFLAGS="$CFLAGS -fcommon"
	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
9e8898ac22e383873bc7d05db112a8d0b6c154ad8ee30022a3e2af6d875526bc718e12943557f3059f936ad2cd0f73240f0103c1617ca859ad0000cb9e03e274  gcc-10.patch"