summaryrefslogtreecommitdiffstats
path: root/main/uvncrepeater/APKBUILD
blob: 1ec36a8e5e49e07cfa78541d53bd55ab6224ebb0 (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=4
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
a9c614f7bfeef4f68db7cd9d87a6bdf6  uvncrepeater.initd"
sha256sums="79178e9baa9cac05f26e43f742933958707cb5c0632c51a5706b13922f3bb5b0  repeater014.zip
ef1b81959db9ba000bf095221b6a003befd6af84200fc3768efc7342c4bc9d1c  uvncrepeater.confd
93880269a8cdbf77433162d3a6ef9fa0508ad7f0ecb3a4229671c0d803267e62  uvncrepeater.initd"
sha512sums="5b74943fef5b41202ad693c0d81e0f2f9a59c397ee9818da8c7e91dbee15f4309e3e9b32ad0d8ff8db5d7679fd8caa8e4e448d5f717393e45743705d106fede7  repeater014.zip
b6a30b6bfbc47b7f3988abd8e6e65bfc97baf9d7bd80f72cd71506b779d6650cc32333e66bd5cfd1995e1e48473185e4619664cc3bfbf3efe73af393822f3068  uvncrepeater.confd
afda0d073534adbe9c9dc52420404eb224d24a0f77a2f5366787ee6b5bce64b4d2ab118d12c69a1beca1a080bd97a76c57b0e3810d12ef665ad08543ea68b219  uvncrepeater.initd"