# Maintainer: Johannes Wienke pkgname=autosuspend pkgver=0.5 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') source=("https://github.com/languitar/autosuspend/archive/release-${pkgver}.tar.gz") sha256sums=('0abc3f20f2c90fc7ff3afff035825f15ee2dfbd329e9766a66d3dc3a2aa0361f') 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" }