summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d952f9ce9843dac8fb55c460216c436a583bf84f (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: Chris Down <chris@chrisdown.name>

pkgname=clipmenu-git
_gitname=clipmenu
pkgver=6.2.0.r0.g7c34ace
pkgrel=1
pkgdesc='Clipboard management using dmenu'
url='http://github.com/cdown/clipmenu'
arch=('any')
license=('Public Domain')
depends=(dmenu xsel clipnotify)
provides=(clipmenu)
conflicts=(clipmenu)
makedepends=(git)

source=(git://github.com/cdown/clipmenu.git)
md5sums=('SKIP')

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

package() {
    install -D -m755 \
        "${srcdir?}/$_gitname/clipmenu" \
        "${pkgdir?}/usr/bin/clipmenu"
    install -D -m755 \
        "${srcdir?}/$_gitname/clipmenud" \
        "${pkgdir?}/usr/bin/clipmenud"
    install -D -m755 \
        "${srcdir?}/$_gitname/clipdel" \
        "${pkgdir?}/usr/bin/clipdel"
    install -D -m755 \
        "${srcdir?}/$_gitname/clipctl" \
        "${pkgdir?}/usr/bin/clipctl"
    install -D -m644 \
        "${srcdir?}/$_gitname/init/clipmenud.service" \
        "${pkgdir?}/usr/lib/systemd/user/clipmenud.service"
}