summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62e68a62633a0e15dfcc754592b1c17b4654bd85 (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
31
32
33
34
# Maintainer: Mubashir Haroon <mubashirmusab at gmail dot com>
# Contributor: Husam Bilal <me@husam.dev>

_pkgname=clipman
pkgname=clipman-git
pkgver=1.4.0.r22.g505d7e4
pkgrel=2
pkgdesc="A simple clipboard manager for Wayland"
url="https://github.com/yory8/clipman"
depends=("wl-clipboard>=2.0")
makedepends=("go" "git")
provides=("clipman")
conflicts=("clipman")
license=("GPL3")
arch=("x86_64" "i686")
md5sums=("SKIP")
source=("${_pkgname}::git+https://github.com/yory8/${_pkgname}.git")

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

build() {
  cd $_pkgname
  go build .
}

package() {
  cd $_pkgname
  install -Dm755 $_pkgname $pkgdir/usr/bin/$_pkgname
  install -Dm644 docs/$_pkgname.1 $pkgdir/usr/share/man/man1/$_pkgname.1
  gzip $pkgdir/usr/share/man/man1/$_pkgname.1
}