# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=x2x
pkgver=0.0.0_git20210925
pkgrel=0
_commit="ec10215d558f4b227547522c660f35db8ba6901e"
pkgdesc="Allows the keyboard, mouse on one X display to be used to control another X display using ssh"
url="https://github.com/dottedmag/x2x"
arch="all"
license="MIT"
makedepends="autoconf automake libxext-dev libxtst-dev"
subpackages="$pkgname-doc"
source="$pkgname-$_commit.tar.gz::https://github.com/dottedmag/x2x/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
options="!check" # no upstream checks

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b1c4b71a79e1d86f6ab1ec9ecdb748e35bd9de59640decd3384730e0355dab4d62228c89b679236b79c2646334c2029335c2efe4d27312b8a7385ee8d334c279  x2x-ec10215d558f4b227547522c660f35db8ba6901e.tar.gz
"
