summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a92a27b539d2b6a77f76215f3ead6671b49f44c0 (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
# Maintainer: Morgenstern <charles [at] charlesbwise [dot] com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alexander Fehr <pizzapunk gmail com>

pkgname=parcellite-git
_pkgname=parcellite
pkgver=1.2.1.r11.fa54161
pkgrel=2
pkgdesc="Lightweight GTK+ clipboard manager (git version)"
arch=('x86_64')
url="https://github.com/rickyrockrat/parcellite"
license=('GPL3')
depends=('gtk2')
makedepends=('intltool' 'git')
optdepends=('xdotool: auto-paste support')
conflicts=($_pkgname)
provides=($_pkgname)
source=("$pkgname::git+https://github.com/rickyrockrat/${_pkgname}")
sha256sums=('SKIP')

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

prepare() {
  cd "$srcdir/$pkgname"
  autoreconf -i
}

build() {
  cd "$srcdir/$pkgname"
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
}