summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fac9c2521e4de5ccce033b55681fdb96a65c0e9e (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
# Maintainer: Sam A. Horvath-Hunt <hello@samhh.com>

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

pkgname=xclipd-git
_pkgname=xclipd
pkgver=v1.0.0.r0.gedd8a64
pkgrel=1
pkgdesc='An X11 clipboard manager.'
url="https://github.com/jhunt/$_pkgname"
arch=('x86_64')
license=('MIT')
makedepends=('git')
conflicts=('xclipd')
source=(git+$url.git)
sha256sums=(SKIP)

build() {
  cd "$srcdir/$_pkgname"
  make
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 "xclipd" "$pkgdir/usr/bin/$_pkgname"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}