dd62abe093
Upstream moved to a git submodule for gtest and gmock. I took https://github.com/void-linux/void-packages/blob/master/srcpkgs/wabt/template as an example how to download and move gtest to the proper location. This works for me locally. Let me know if anything needs changing. remove whitespace to satisfy xlint
55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
# Template file for 'barrier'
|
|
pkgname=barrier
|
|
version=2.3.3
|
|
revision=1
|
|
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"
|
|
_gmock_commit=7d33fee11ec480beae4c28ad09ca56d974140a72
|
|
_gtest_commit=800f5422ac9d9e0ad59cd860a2ef3a679588acb4
|
|
distfiles="https://github.com/debauchee/barrier/archive/v${version}.tar.gz
|
|
https://github.com/google/googlemock/archive/${_gmock_commit}.tar.gz
|
|
https://github.com/google/googletest/archive/${_gtest_commit}.tar.gz"
|
|
checksum="259e75c150ca16d9db51870b026dc7aad56c410fa3d2f5fdccc19d4b6024bdc5
|
|
f4191fd64e8a961c06b7cc90a2bbf3774bd315254884675a900f8f34fc2c4c81
|
|
57bc26ac31e1bc47a12e4ae99a0f6e17506ba10f0f82ae16aa52cc7cc215a3b0"
|
|
|
|
pre_configure() {
|
|
# move submodule to proper location
|
|
rmdir ext/gmock
|
|
rmdir ext/gtest
|
|
|
|
mv -v ../googlemock-${_gmock_commit} ext/gmock
|
|
mv -v ../googletest-${_gtest_commit} ext/gtest
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|