blob: ec7d639523475fca1cbf999eb9d53c9653370854 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: David Runge <dave@sleepmap.de>
pkgname=uenv-git
pkgver=0.8.4.r0.g0b471f3
_basename=uenv
pkgrel=1
pkgdesc="Useful scripts, systemd timer/service units and their configuration"
arch=('any')
url="https://sleepmap.de/software/uenv"
license=('GPL3')
groups=()
depends=()
makedepends=('git')
optdepends=(
'arch-audit: For updating MOTD with security info'\
'autossh: For autotunnel (SSH tunnel)'\
'compton: For compton user service'\
'conky: For conky user service'\
'cpupower: For cpupower settings on linux-rt'\
'glances: For monitoring user service (running in separate tmux environment)'\
'htop: For monitoring user service (running in separate tmux environment)'\
'irssi: For irssi in a separate tmux environment'\
'jack2: For profile based JACK user service'\
'linux-rt: For cpupower and JACK services'\
'mpd: For mpd user service connecting to server profiles'\
'openssh: For ssh-agent as systemd user service'\
'python-lolcat: For colorful output of MOTD'\
'rtorrent: For rtorrent user and system service'\
'tmux: For monitoring, rtorrent and tmux user services'\
'weechat: For weechat in a separate tmux environment'
)
provides=('uenv')
conflicts=('uenv')
replaces=()
backup=(
'etc/jack/fw1'\
'etc/conf.d/postpone-screensaver'\
'etc/default/cpupower-rt'\
'etc/default/rtorrent@.conf'
)
options=()
install=
source=("${_basename}::git://sleepmap.de/software/uenv.git")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_basename"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/$_basename"
install -d ${pkgdir}/usr/lib/systemd/scripts/
install -Dm 755 scripts/* ${pkgdir}/usr/lib/systemd/scripts/
install -d ${pkgdir}/usr/lib/systemd/system/
install -Dm 644 system/* ${pkgdir}/usr/lib/systemd/system/
install -d ${pkgdir}/usr/lib/systemd/user/
install -Dm 644 user/* ${pkgdir}/usr/lib/systemd/user/
install -Dm 644 config/cpupower-rt ${pkgdir}/etc/default/cpupower-rt
install -d ${pkgdir}/etc/jack/
install -Dm 644 config/jack/* ${pkgdir}/etc/jack/
install -d ${pkgdir}/etc/systemd-analyze-plot/
install -Dm 644 config/plot.conf ${pkgdir}/etc/systemd-analyze-plot/plot.conf
install -Dm 644 config/postpone-screensaver ${pkgdir}/etc/conf.d/postpone-screensaver
install -Dm 644 config/rtorrent@.conf ${pkgdir}/etc/default/rtorrent@.conf
install -Dm 644 config/autotunnel/example.conf ${pkgdir}/etc/autotunnel/example.conf
install -Dm 644 README.rst ${pkgdir}/usr/share/doc/${_basename}/README.rst
install -Dm 644 NEWS ${pkgdir}/usr/share/doc/${_basename}/NEWS
}
# vim:set ts=2 sw=2 et:
|