blob: 24cd48eb74f4757c78a4b76d9a3b04e9c44ccb77 (
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
|
# Maintainer: Johannes Wienke <languitar@semipol.de>
pkgname=autosuspend
pkgver=0.6
pkgrel=1
pkgdesc="A daemon to suspend your server in case of inactivity"
arch=(any)
url="https://github.com/languitar/autosuspend"
license=('GPL2')
depends=('python' 'python-psutil')
optdepends=('python-mpd2: MPD playing status checks'
'python-requests: Kodi playing status checks'
'xprintidle: X server idle time cheks')
makedepends=('python-setuptools' 'python-pytest-runner')
source=("https://github.com/languitar/autosuspend/archive/release-${pkgver}.tar.gz")
sha256sums=('7fe7a3840892dd70d3857bce18c82bf9cd769ec2ee412e0dfdc37e51a8e067ee')
backup=('etc/autosuspend.conf'
'etc/autosuspend-logging.conf')
package() {
cd "$pkgname-release-${pkgver}"
python3 setup.py install --root="$pkgdir/" --install-data=/usr
# setuptools install_data is a nightmare, and cannot be made to respect the
# filesystem hierarchy. Do things manually instead.
mv "$pkgdir/usr/etc" "$pkgdir"
}
|