summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35db32b520d1931101f4d77cd1f4d6ed76aecc5d (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
pkgname=xcsyncd-git
pkgver=${PKGVER:-autogenerated}
pkgrel=${PKGREL:-1}
pkgdesc="A utility for syncrhonizing Xorg clipboards"
arch=('i686' 'x86_64')
url="http://github.com/reconquest/xcsyncd"
license=('GPL')
depends=(libx11 xcb-util-wm libxfixes libxcb)
makedepends=(libx11 gengetopt)
source=(git://github.com/reconquest/xcsyncd)
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/xcsyncd"
    local date=$(git log -1 --format="%cd" --date=short | sed s/-//g)
    local count=$(git rev-list --count HEAD)
    local commit=$(git rev-parse --short HEAD)
    echo "$date.${count}_$commit"
}

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

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