aboutsummaryrefslogtreecommitdiffstats
path: root/testing/barrier/APKBUILD
blob: 6d946f00a9e198b2946a588f0fe71dda492e11f9 (plain) (blame)
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
# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=barrier
pkgver=2.3.3
pkgrel=0
pkgdesc="share keyboard and mouse between systems over network"
url="https://github.com/debauchee/barrier"
arch="all !mips !mips64" # Fails to build
license="GPL-2.0-only"
options="!check"
depends="hicolor-icon-theme"
makedepends="qt5-qtbase-dev cmake avahi-dev libxtst-dev curl-dev gtest-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/debauchee/barrier/archive/v$pkgver.tar.gz
	1-disable-test-include.patch
	"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	DESTDIR="$pkgdir" cmake --build src --target install
	mkdir -p "$pkgdir"/usr/share/doc/"$pkgname"
	install -Dm0644 LICENSE "$pkgdir"/usr/share/doc/"$pkgname"/LICENSE
	install -Dm0644 doc/barrierc.1 "$pkgdir"/usr/share/man/man1/barrierc.1
	install -Dm0644 doc/barriers.1 "$pkgdir"/usr/share/man/man1/barriers.1
	install -Dm0644 doc/barrier.conf.example "$pkgdir"/usr/share/doc/"$pkgname"/barrier.conf.example
	install -Dm0644 doc/barrier.conf.example-basic "$pkgdir"/usr/share/doc/"$pkgname"/barrier.conf.example-basic
	install -Dm0644 doc/barrier.conf.example-advanced "$pkgdir"/usr/share/doc/"$pkgname"/barrier.conf.example-advanced
}

sha512sums="1ac945ce090d5bbdae7bab7d4ca802cc2d54c1644a12088203b240e38078d32d3b30ae2f764ba27d66c9d709e430b0eb1b4576314d99dd6177d8b88d19b89777  barrier-2.3.3.tar.gz
a9a37a64677c0708d22c8ed08b71c47b613c404ea4a65eed40833bedc356162516c166e0eb53895ebe6f1bff14c42df1b40cb7dd7b3d2a2e258990d440f4d7e4  1-disable-test-include.patch"