aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa71db57682e581e2f7a124f14115e94d8ec261f (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: FzerorubigD <Fzerorubigd {AT} GMail {DOT} com>

pkgname=gpaste-git
pkgver=3.20+3+g3503fca
pkgrel=1
pkgdesc="Clipboard management system"
url="http://www.imagination-land.org/tags/GPaste.html"
license=(GPL3)
arch=(i686 x86_64)
depends=(gtk3)
makedepends=(git intltool vala appstream-glib gobject-introspection gnome-shell gnome-control-center)
optdepends=("wgetpaste: Upload clipboard contents")
provides=("gpaste=$pkgver")
conflicts=(gpaste)
options=('!emptydirs')
install=gpaste.install
source=("git+https://github.com/Keruspe/GPaste#branch=gpaste-3.20")
sha256sums=('SKIP')

pkgver() {
  cd GPaste
  git describe --long | sed 's/^v//;s/-/+/g'
}

prepare() {
  cd GPaste
  ./autogen.sh
}

build() {
  cd GPaste
  ./configure --prefix=/usr \
    --libexecdir=/usr/lib \
    --sysconfdir=/etc \
    --enable-vala
  make
}

check () {
  cd GPaste
  make -k check || :
}

package() {
  cd GPaste
  make DESTDIR="$pkgdir" install

  install -Dm644 data/completions/gpaste-client \
    "$pkgdir/usr/share/bash-completion/completions/gpaste-client"
  install -Dm644 data/completions/_gpaste-client \
    "$pkgdir/usr/share/zsh/site-functions/_gpaste-client"
}