# Contributor: Jeff Bilyk # Maintainer: pkgname=x2goserver pkgver=4.0.1.15 pkgrel=0 pkgdesc="Terminal server" url="http://x2go.org" arch="all" license="GPL2+" depends="" makedepends="libssh2-dev perl-dbd-sqlite python-dev xauth bash man" install="$pkgname.pre-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 i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done #Every Makefile has /usr/local as PREFIX, so replace that find ./ -name Makefile | xargs sed -e 's#/usr/local#/usr#g' -i } build() { cd "$_builddir" make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="6b1d77f1955103cd59958fc67a0b77e2 x2goserver-4.0.1.15.tar.gz" sha256sums="46c0fc2303014db99b138a352a7f3df89c4f7cfabc11dc0aeea4cdc76253bdfb x2goserver-4.0.1.15.tar.gz" sha512sums="ca806c39d2536e7962540733e85199fefea54e80695c6f1ca736cc1998b411524afa8d9cf29c26855fc3373105277daa4ddd69cbcd05c2bbecb01ca5172ba05c x2goserver-4.0.1.15.tar.gz"