blob: 74ce47d9a874abfe87692caeca2da1a1df2abeb6 (
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
56
57
58
59
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ympd
pkgver=1.2.2
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/v1.2.2.tar.gz
musl-missing-errorh.patch
$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="b1e33f8de8249a5229d4e25bd739095b ympd-1.2.2.tar.gz
9b8da2890287a459fb9cbf2bc225da28 musl-missing-errorh.patch
d6158ed50f19e9d4caa276b18e8535ef ympd.initd
9a71d20477e801cefd8398d1216bde9d ympd.confd"
sha256sums="4643a4e0983feb2762a94071f264c107e46507d61baa23f705676b0aeab17dcb ympd-1.2.2.tar.gz
fc0d7f76edd9b46359fdb697615b528b806a29d9498bdc74ec02b65584b18682 musl-missing-errorh.patch
898c720a65358fe8f4f06e6dcf8cf92970d7b368d8b17619edbc5883eb25e8d3 ympd.initd
ea2eb0ae943cee4e6036f48f4cc5f31141447bbd685bda796261e3572da26e1c ympd.confd"
sha512sums="0a671886c06744e92b1393a1a14eb08f322ad3b9a00ee057d057d91bf7755eaf0f58ad15e4f1811c8b403ff4cd70b66ab213398dd22b8fe3563e325f58306265 ympd-1.2.2.tar.gz
9a55e34f73ba73e85ee9ad1feab3571f944ada4e6c7adbe619e851929aee7254bccb0fbf37668b2c32676daae92922db358350997c15701653f40cd61798f62a musl-missing-errorh.patch
c64f0f615cd238cf9d756ba7e153786cb80e0d29416281a60619643ff696cd67095659e0fa771997dc72bcc1cae6aeb2eb1ce43488eb5d26b33dd0216b69e9a4 ympd.initd
a2c87d45acfe46efbaea6636a6ea592d17054de7fa6820b26ddd61875700dae268f0ca11a1065c38ea86d910fb54566eb454bbb755ed758e3ff71db4464689c1 ympd.confd"
|