summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8f0aca40553e6f7803a0e57210eb267ecfad431 (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
30
# Maintainer: Giancarlo Razzolini <grazzolini@gmail.com>

pkgname=clipboard-sync-git
pkgver=0.2.0.r18.943e49e
pkgrel=1
pkgdesc="Synchronizes the clipboard across multiple X11 and wayland instances running on the same machine"
arch=('x86_64')
url="https://github.com/dnut/clipboard-sync"
license=('GPL3')
depends=('libxcb')
makedepends=('git' 'rust')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+$url")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
        cd "$srcdir/${pkgname%-git}"
        make install "prefix=$pkgdir/usr"
}