blob: b6b02d446d60d255c7f739237f7df57cf972032b (
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
|
# Contributor: Camille <onodera@rizon>
# Contributor: Alad <alad@archlinux.info>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=wmutils-git
pkgver=1.5.r0.g354acb7
pkgrel=1
pkgdesc="A set of tools for X windows manipulation."
url="https://github.com/wmutils/core"
arch=('i686' 'x86_64')
license=('ISC')
depends=('libxcb' 'xcb-util' 'xcb-util-wm' 'libwm-git' 'xcb-util-cursor')
makedepends=('git')
conflicts=('wmutils')
source=("$pkgname::git+https://github.com/wmutils/core.git"
'git+https://github.com/wmutils/opt.git'
'git+https://github.com/wmutils/contrib.git')
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed -r 's/^v//g;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
make
cd "$srcdir/opt"
make
cd "$srcdir/contrib/killwa"
make
}
package() {
prefix="/usr"
manprefix="$prefix/share/man"
licenseprefix="$prefix/share/licenses/${pkgname%-*}"
docprefix="$prefix/share/doc/${pkgname%-*}"
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" PREFIX="$prefix" MANPREFIX="$manprefix" install
install -Dm644 LICENSE $pkgdir/$licenseprefix/LICENSE
cd "$srcdir/opt"
make DESTDIR="$pkgdir" PREFIX="$prefix" MANPREFIX="$manprefix" install
mkdir -p "$pkgdir/$docprefix/examples"
install -Dm644 ../contrib/*.sh $pkgdir/$docprefix/examples
install -Dm755 ../contrib/killwa/killwa $pkgdir/$prefix/bin/killwa
}
|