aboutsummaryrefslogtreecommitdiffstats
path: root/community/minissdpd/APKBUILD
blob: b7b27c87049c3755a100c6189324b1a53a888b8d (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=minissdpd
pkgver=1.5.20190210
pkgrel=0
pkgdesc="MiniSSDP Daemon"
url="http://miniupnp.free.fr/minissdpd.html"
arch="all"
license="BSD"
makedepends="libnfnetlink-dev linux-headers bsd-compat-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="http://miniupnp.free.fr/files/download.php?file=$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	INSTALLPREFIX=/usr make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="1902c3c396cdcec90af0638305224f77871bd7f70057ac8a1ff59b3ab6da168ee17eb52a5bee87eb85c8d759d02112225876e38c254ad521396eca9c4884686c  download.php?file=minissdpd-1.5.20190210.tar.gz
66c0822bc9166cd02faf57a58d0f843a85ecf71d3f852829197c8f81bcfd52358a115f2244520ffe50746aa7274d76c30365f927bc1cf5faf47485e91a44805f  minissdpd.initd
5ac723cb5b3d3f8bb97989cffb174f22566fcebff304e40f12ca5144cfa94b00614fdf6925e2c5a1dd0f8fa533aac12e991bad0d0909cbdd90a9b7ed73e0c296  minissdpd.confd"