aboutsummaryrefslogtreecommitdiffstats
path: root/testing/x2goserver/APKBUILD
blob: ce14c7399ff14310d727669d71d50480feb189b4 (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
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Contributor: Jean-Charles de Longueville <jch@hellea.eu>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=x2goserver
pkgver=4.0.1.20
pkgrel=0
pkgdesc=" X2Go enables you to access a graphical desktop of a computer over a low bandwidth (or high bandwidth) connection. "
url="http://x2go.org"
arch="all"
license="GPL2+"
options="suid"
depends="perl perl-config-simple perl-dbi perl-file-readbackwards perl-capture-tiny perl-dbd-sqlite bash iproute2 makepasswd openssh lsof xauth perl-file-basedir mcookie nx-libs perl-file-which"
makedepends="libssh2-dev python2-dev man"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://code.x2go.org/releases/source/$pkgname/$pkgname-$pkgver.tar.gz"
pkgusers="x2gouser"
pkggroups="x2gouser"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local dir
	cd "$builddir"
	for dir in x2goserver*; do
		if [ -d $dir ]; then
			sed -i -e "s/^build-indep:.*/build-indep: /g" $dir/Makefile
		fi
	done
}

build() {
	cd "$builddir"
	make PREFIX=/usr || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
}

md5sums="54f165ab50ccf329465d95ae108f6f64  x2goserver-4.0.1.20.tar.gz"
sha256sums="f8bf48e1c8995bd5a7cde6de1c006fdb77f2bae6c4b82e6b7b985a8f00a3dad9  x2goserver-4.0.1.20.tar.gz"
sha512sums="21f3a415c50bf78e4c044c5b77f8478a307e4b3cef990edd415d9e7479f48fbc1c051e9f7c16a5d1f30726f4f2a812fb367eecb0a073bfba1ea2c6173c71fe54  x2goserver-4.0.1.20.tar.gz"