summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c41c7cbef61cbf97b527003d082e3863119c3f5 (plain)
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
# Maintainer: Cebtenzzre <cebtenzzre (at) gmail (dot) com>

pkgname=x11clone
pkgver=1.8.80.3
pkgrel=1
pkgdesc='View and interact with another X11 server. Can be used in conjunction with ThinLinc.'
arch=(x86_64)
url='https://github.com/x11clone/x11clone'
license=(GPL2)

depends=(zlib hicolor-icon-theme libxfixes)

source=("https://github.com/x11clone/x11clone/releases/download/v$pkgver/x11clone-Linux-$CARCH-$pkgver.tar.gz")
sha256sums=(261c5454f0a17fd4e04736e55175c5956a87ccf5b19e8135ceb529247cd640e7)

build() {
  # Do not install in /usr/local
  if [ -d usr/local ]; then
    cp -R usr/local/* usr
    rm -rf usr/local
  fi

  # Fix empty dirs
  rmdir usr/man{/man1,} || true
}

package() {
  cp -R "$srcdir/usr" "$pkgdir"
}