blob: 4138d5c382c2be7f610408b25942a2eaaa5be575 (
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
|
# Maintainer: Gabriel Fornaeus <gf@hax0r.se>
# Contributor: kaptoxic
pkgname=clipbored-git
pkgver=r67.2e1a3ec
pkgrel=1
pkgdesc="Daemon that collects all content from the X clipboard buffers, use\
with dmenu"
arch=('any')
url="http://github.com/trapd00r/clipbored"
license=('GPL2')
depends=('perl' 'xclip')
optdepends=('dmenu: for the scripts; dmenurl and dmenuclip')
makedepends=('git')
source=('clipbored::git+http://github.com/trapd00r/clipbored')
md5sums=('SKIP')
sha256sums=('SKIP')
sha512sums=('SKIP')
_gitroot="git://github.com/trapd00r/clipbored"
_gitname="clipbored"
pkgver() {
cd $srcdir/$_gitname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir/$_gitname
msg "Starting make..."
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
{
rm blib/README
perl Makefile.PL &&
make ; } || return 1
}
package() {
cd $srcdir/$_gitname
mkdir -p ${pkgdir}/usr/bin
make install || return 1
}
|