summaryrefslogtreecommitdiffstats
path: root/main/ympd/APKBUILD
blob: 71cd0dd5e50fa3e96b6c2d4a7fd12880d8d890db (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ympd
pkgver=1.2.3
pkgrel=0
pkgdesc="A standalone MPD Web GUI"
url="http://www.ympd.org/"
arch="all"
license="GPL2"
depends=""
depends_dev="libmpdclient-dev"
makedepends="$depends_dev cmake"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="ympd-${pkgver}.tar.gz::https://github.com/notandy/ympd/archive/v$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir build || return 1
}

build() {
	cd "$_builddir"/build
	cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
	make || return 1
}

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

md5sums="865f4370ad26e3020809a274ad4f123d  ympd-1.2.3.tar.gz
d6158ed50f19e9d4caa276b18e8535ef  ympd.initd
9a71d20477e801cefd8398d1216bde9d  ympd.confd"
sha256sums="092c26c51166d1d1f025cd06742981783dea7e42bfe4f73f10c4418fc003de94  ympd-1.2.3.tar.gz
898c720a65358fe8f4f06e6dcf8cf92970d7b368d8b17619edbc5883eb25e8d3  ympd.initd
ea2eb0ae943cee4e6036f48f4cc5f31141447bbd685bda796261e3572da26e1c  ympd.confd"
sha512sums="09b877981e4f190effaf17f59c5ae6858c18a5c139333fb85e952364d3724ae378b3ef405b58e878e3a46aff0b375a56169c4a50e4f79681310c7f7a708c108d  ympd-1.2.3.tar.gz
c64f0f615cd238cf9d756ba7e153786cb80e0d29416281a60619643ff696cd67095659e0fa771997dc72bcc1cae6aeb2eb1ce43488eb5d26b33dd0216b69e9a4  ympd.initd
a2c87d45acfe46efbaea6636a6ea592d17054de7fa6820b26ddd61875700dae268f0ca11a1065c38ea86d910fb54566eb454bbb755ed758e3ff71db4464689c1  ympd.confd"