summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f49f1f3a39a528a0f5917c7b8027d715ab453fa3 (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
# Maintainer: David Runge <dave@sleepmap.de>
pkgname=uenv-git
pkgver=0.9.r0.gf7aeb07
_pkg=uenv
pkgrel=1
pkgdesc="Useful scripts, systemd timer/service units and their configuration"
arch=('any')
url="https://sleepmap.de/software/uenv"
license=('GPL3')
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')
backup=(
  'etc/jack/fw1'
  'etc/conf.d/postpone-screensaver'
  'etc/default/cpupower-rt'
  'etc/default/rtorrent@.conf'
)
source=("git+https://git.sleepmap.de/software/uenv.git")
sha512sums=('SKIP')

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

package() {
  cd "${srcdir}/${_pkg}"
  install -t "${pkgdir}/usr/lib/systemd/scripts/" -Dm0755 scripts/*
  install -t "${pkgdir}/usr/lib/systemd/system/" -Dm0644 system/*
  install -t "${pkgdir}/usr/lib/systemd/user/" -Dm0644 user/* 
  install -t "${pkgdir}/etc/jack/" -Dm0644 config/jack/*
  install -Dm 644 config/plot.conf "${pkgdir}/etc/systemd-analyze-plot/plot.conf"
  install -Dm 644 config/cpupower-rt ${pkgdir}/etc/default/cpupower-rt
  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/${_pkg}/README.rst
  install -Dm 644 NEWS ${pkgdir}/usr/share/doc/${_pkg}/NEWS
}
# vim:set ts=2 sw=2 et: