<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — Barrier without CLI is compilable]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=922&amp;type=atom" />
	<updated>2023-10-27T19:08:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=922</id>
		<entry>
			<title type="html"><![CDATA[Re: Barrier without CLI is compilable]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6719#p6719" />
			<content type="html"><![CDATA[<p>I close the topic as we have a corresponding thread for this. New position as copy from me.</p><p><a href="https://forums.hyperbola.info/viewtopic.php?pid=6718#p6718">https://forums.hyperbola.info/viewtopic … 6718#p6718</a></p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2023-10-27T19:08:49Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6719#p6719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Barrier without CLI is compilable]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6717#p6717" />
			<content type="html"><![CDATA[<p>Hi I try compile barrier and I get it, now I share how works</p><br /><p>PKBUILD next:</p><div class="codebox"><pre><code># Maintainer: Morten Linderud &lt;foxboron@archlinux.org&gt;
# Contributor: Tilman BLUMENBACH &lt;tilman+aur AT ax86 DOT net&gt;

pkgname=(barrier barrier-headless)
pkgver=2.4.0
pkgrel=2
pkgdesc=&quot;Open-source KVM software based on Synergy&quot;
arch=(x86_64)
url=&quot;https://github.com/debauchee/barrier&quot;
license=(&quot;custom:GPL2WithOpenSSLException&quot;)
changelog=CHANGELOG.rst
depends=(curl libx11 libxrandr libxext
        libxinerama xorgproto libxtst libxi
        libsm libice openssl)
makedepends=(cmake git qt5-base hicolor-icon-theme)
source=(&quot;git+https://github.com/debauchee/barrier.git#tag=v${pkgver}&quot;)
sha256sums=(&#039;SKIP&#039;)

prepare() {
    cd &quot;barrier&quot;
    git submodule update --init --recursive
    # lib/platform: Fix encoding for text copied between linux and windows
    # https://github.com/debauchee/barrier/commit/dd3ea8adfef868e52098ea24d2ed08320a90e3b9
    git cherry-pick -n dd3ea8adfef868e52098ea24d2ed08320a90e3b9

    # Add missing cstddef includes for NULL
    # https://github.com/debauchee/barrier/commit/4b12265ae5d324b942698a3177e1d8b1749414d7
    git cherry-pick -n 4b12265ae5d324b942698a3177e1d8b1749414d7
}

build() {
    cd &quot;barrier&quot;

    mkdir -p build
    cd build

    cmake -G &quot;Unix Makefiles&quot; \
        -D CMAKE_BUILD_TYPE:STRING=Release \
        -D CMAKE_INSTALL_PREFIX:STRING=/usr \
        -D BARRIER_REVISION:STRING=00000000 \
        -D BARRIER_VERSION_STAGE:STRING=RELEASE \
        -D AVAHI_COMPAT_NOWARN:bool=true \
        -D BARRIER_BUILD_GUI:bool=false \
        ..
    make
}


_package_common() {
    # Install binaries:
    cd &quot;barrier/build&quot;
    DESTDIR=&quot;${pkgdir}&quot; make install

    # Install the license:
    cd ..
    install -m 644 -D LICENSE &quot;${pkgdir}/usr/share/licenses/${pkgname}/LICENSE&quot;

    # Install the manpages:
    mkdir -p &quot;${pkgdir}/usr/share/man/man1&quot;
    install -m 644 doc/*.1 &quot;${pkgdir}/usr/share/man/man1&quot;

    # Install the examples:
    mkdir -p &quot;${pkgdir}/usr/share/doc/${pkgname}&quot;
    install -m 644 doc/barrier.conf* &quot;${pkgdir}/usr/share/doc/${pkgname}&quot;
}

package_barrier() {
    pkgdesc=&quot;Open-source KVM software based on Synergy (GUI)&quot;
    depends=(&quot;barrier-headless=${pkgver}-${pkgrel}&quot; qt5-base hicolor-icon-theme)

    # Install all the files:
    _package_common

    # Now go and delete files that are already in
    # barrier-headless:
    for file in \
        /usr/share/doc \
        /usr/share/man \
        /usr/bin/barrier{s,c} \
    ;do
        rm -rf &quot;${pkgdir}/${file}&quot;
    done
}

package_barrier-headless() {
    pkgdesc=&quot;Open-source KVM software based on Synergy (client and server CLI binaries)&quot;

    # Install all the files:
    _package_common

    # Now go and delete the GUI-related files:
    for file in \
        /usr/bin/barrier \
        /usr/share/applications \
        /usr/share/icons \
    ;do
        rm -rf &quot;${pkgdir}/${file}&quot;
    done
}</code></pre></div><p>maybe is good idea add to repo, is for use one laptop keyboard and mouse with another laptop over LAN conection, is very usefull</p>]]></content>
			<author>
				<name><![CDATA[saravia]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=376</uri>
			</author>
			<updated>2023-10-27T18:50:39Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6717#p6717</id>
		</entry>
</feed>
