summaryrefslogtreecommitdiff
path: root/main/uvncrepeater/APKBUILD
blob: 36d19007bd3f590869e8b214a2be9c34e929f962 (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
# Contributor:
# Maintainer:
pkgname=uvncrepeater
pkgver=014
pkgrel=6
pkgdesc="VNC repeater based on ultravnc repeater"
url="http://koti.mbnet.fi/jtko/"
arch="all"
license="GPL2+"
depends="openrc>=0.6"
makedepends=""
install="$pkgname.pre-install"
subpackages=""
source="http://koti.mbnet.fi/jtko/uvncrepeater/repeater$pkgver.zip
	uvncrepeater.confd
	uvncrepeater.initd"

_builddir="$srcdir"/Ver$pkgver
prepare() {
	cd "$_builddir"
	# respect our CXX and CFLAGS
	sed -i -e 's/g++/$(CXX)/g' \
		-e "/^CFLAGS/d" Makefile
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -Dm755 repeater "$pkgdir"/usr/bin/repeater
	install -Dm644 uvncrepeater.ini "$pkgdir"/etc/uvncrepeater.ini
	install -Dm755 "$srcdir"/uvncrepeater.initd \
		"$pkgdir"/etc/init.d/uvncrepeater
	install -Dm755 "$srcdir"/uvncrepeater.confd \
		"$pkgdir"/etc/conf.d/uvncrepeater
}

md5sums="3005ebbb2f9442cbea4cbcaa71925dbf  repeater014.zip
9a789921340c123ea1c35d7e64563c64  uvncrepeater.confd
ad252320c431f37207383548a3442766  uvncrepeater.initd"
sha256sums="79178e9baa9cac05f26e43f742933958707cb5c0632c51a5706b13922f3bb5b0  repeater014.zip
ef1b81959db9ba000bf095221b6a003befd6af84200fc3768efc7342c4bc9d1c  uvncrepeater.confd
8aa817e5af415c5574013470613563dd0e73ff26df6e4da816af011961d2e4fc  uvncrepeater.initd"
sha512sums="5b74943fef5b41202ad693c0d81e0f2f9a59c397ee9818da8c7e91dbee15f4309e3e9b32ad0d8ff8db5d7679fd8caa8e4e448d5f717393e45743705d106fede7  repeater014.zip
b6a30b6bfbc47b7f3988abd8e6e65bfc97baf9d7bd80f72cd71506b779d6650cc32333e66bd5cfd1995e1e48473185e4619664cc3bfbf3efe73af393822f3068  uvncrepeater.confd
f1028c2dbbe7a17758c9553b0f8094e311f04317c09b1a2c2c521cc9e651d0ae9b263f1614f2dd9b51358f98c29e25922ed4e9e095bd4bbb9f18c80082f803e9  uvncrepeater.initd"