blob: 287efc7c15f3fd5c9b9f227de30c0634d7dfa910 (
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=2
pkgdesc="A standalone MPD Web GUI"
url="http://www.ympd.org/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev cmake libmpdclient-dev"
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
d61ddfc43c152dc019d96723efa3e52f ympd.initd
eeb049caa36608e7b059ab258c228b0e ympd.confd"
sha256sums="092c26c51166d1d1f025cd06742981783dea7e42bfe4f73f10c4418fc003de94 ympd-1.2.3.tar.gz
99fe804df79d9ce1f804ef05fa5c75b24c05c566313297e2dd65f9f8c06c1204 ympd.initd
045067b2a6ffd38cefc6f4a813d8095d45d349bf6bca5e45b8eaadaf1f84bc24 ympd.confd"
sha512sums="09b877981e4f190effaf17f59c5ae6858c18a5c139333fb85e952364d3724ae378b3ef405b58e878e3a46aff0b375a56169c4a50e4f79681310c7f7a708c108d ympd-1.2.3.tar.gz
38ce9d2d168670474a8d8931fde592e7f45ade486fe8ce2fbd7689fa2a121eefd7cbc962be3607d71f090897733ec4e41d67f4703481525bc59fc56b99833bac ympd.initd
3e6e83877baf84762a518cc079992dd94614d59faa26600d4e34faa09285f0f0a7de8f4408488b4d017bf2ffe90f03ac1f0c3670bb95e99a089b920a3ff8df63 ympd.confd"
|