65 lines
1.9 KiB
Bash
65 lines
1.9 KiB
Bash
# Template file for 'barrier'
|
|
pkgname=barrier
|
|
version=2.4.0
|
|
revision=2
|
|
create_wrksrc=yes
|
|
build_style=cmake
|
|
configure_args="-DBARRIER_REVISION=00000000 -DBARRIER_VERSION_STAGE=RELEASE"
|
|
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
|
|
makedepends="avahi-compat-libs-devel libcurl-devel qt5-devel
|
|
libSM-devel libXext-devel libXrandr-devel libXtst-devel libXinerama-devel"
|
|
short_desc="Open-source KVM software based on Synergy"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/debauchee/barrier"
|
|
_gtest_commit=bf0701daa9f5b30e5882e2f8f9a5280bcba87e77
|
|
_ghc_commit=a07ddedeae722c09e819895e1c31ae500e9abad6
|
|
distfiles="https://github.com/google/googletest/archive/${_gtest_commit}.tar.gz
|
|
https://github.com/gulrak/filesystem/archive/${_ghc_commit}.tar.gz
|
|
https://github.com/debauchee/barrier/archive/v${version}.tar.gz"
|
|
checksum="b44b5d37b62e7e54887f07f9862e7dce537aa9922e80995007bcffe6ab9058d4
|
|
a0311bf91e6b4a7dbeb40be076d4b8e28f54f5034c9b9c5ce3ccd55c9b7a8819
|
|
20046cae7a831d9bb3740b6f04feb9bded4c794c11586a70089080e94ae2fe77"
|
|
|
|
post_extract() {
|
|
mv barrier-$version/* barrier-$version/.??* .
|
|
rmdir barrier-$version
|
|
# move submodule to proper location
|
|
rmdir ext/gmock
|
|
rmdir ext/gtest
|
|
rmdir ext/gulrak-filesystem
|
|
|
|
mv -v googletest-${_gtest_commit}/googlemock ext/gmock
|
|
mv -v googletest-${_gtest_commit}/googletest ext/gtest
|
|
mv -v filesystem-${_ghc_commit}/include/ghc src/lib/ghc
|
|
}
|
|
|
|
do_check() {
|
|
: # CTest is wrongly configured, can't find the test binaries
|
|
}
|
|
|
|
do_install() {
|
|
vbin build/bin/barrier
|
|
vbin build/bin/barrierc
|
|
vbin build/bin/barriers
|
|
|
|
vmkdir usr/share/examples/${pkgname}
|
|
install -m644 doc/barrier.conf.example* \
|
|
${DESTDIR}/usr/share/examples/${pkgname}
|
|
|
|
vinstall res/barrier.desktop 644 usr/share/applications
|
|
vinstall res/barrier.png 644 usr/share/pixmaps
|
|
|
|
vsv barrierc
|
|
vsv barriers
|
|
|
|
}
|
|
|
|
barrier-gui_package() {
|
|
pkg_install() {
|
|
vmove usr/share/pixmaps
|
|
vmove usr/share/applications
|
|
vmove usr/bin/barrier
|
|
}
|
|
}
|