diff options
author | Johannes Wienke | 2017-11-26 21:39:13 +0100 |
---|---|---|
committer | Johannes Wienke | 2017-11-26 21:39:13 +0100 |
commit | b51213d84beab864b5332c6c644007324aad7dbc (patch) | |
tree | 465de62c7be3fd313cd95a2bf894ceb6fad6053c | |
parent | 95b0b4068c76644c078b9d3c12b7d057c2d7bb08 (diff) | |
download | aur-b51213d84beab864b5332c6c644007324aad7dbc.tar.gz |
Version bump to 1.0.0
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | autosuspend.install | 4 |
3 files changed, 40 insertions, 14 deletions
@@ -1,21 +1,25 @@ pkgbase = autosuspend pkgdesc = A daemon to suspend your server in case of inactivity - pkgver = 0.6 + pkgver = 1.0.0 pkgrel = 1 url = https://github.com/languitar/autosuspend + install = autosuspend.install arch = any license = GPL2 makedepends = python-setuptools makedepends = python-pytest-runner + makedepends = python-sphinx + makedepends = python-sphinx_rtd_theme depends = python depends = python-psutil - optdepends = python-mpd2: MPD playing status checks - optdepends = python-requests: Kodi playing status checks - optdepends = xprintidle: X server idle time cheks + optdepends = python-mpd2: MPD playing status check + optdepends = python-requests: Kodi playing status and XPath check + optdepends = python-lxml: XPath check + optdepends = xprintidle: X server idle time check backup = etc/autosuspend.conf backup = etc/autosuspend-logging.conf - source = https://github.com/languitar/autosuspend/archive/release-0.6.tar.gz - sha256sums = 7fe7a3840892dd70d3857bce18c82bf9cd769ec2ee412e0dfdc37e51a8e067ee + source = https://github.com/languitar/autosuspend/archive/v1.0.0.tar.gz + sha256sums = eaeffa164655e7246378bdc79fcaf8eaf481e71ec20ce29128a7d38804392a7e pkgname = autosuspend @@ -1,26 +1,44 @@ # Maintainer: Johannes Wienke <languitar@semipol.de> pkgname=autosuspend -pkgver=0.6 +pkgver=1.0.0 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') +optdepends=('python-mpd2: MPD playing status check' + 'python-requests: Kodi playing status and XPath check' + 'python-lxml: XPath check' + 'xprintidle: X server idle time check') +makedepends=('python-setuptools' 'python-pytest-runner' 'python-sphinx' 'python-sphinx_rtd_theme') +source=("https://github.com/languitar/autosuspend/archive/v${pkgver}.tar.gz") +sha256sums=('eaeffa164655e7246378bdc79fcaf8eaf481e71ec20ce29128a7d38804392a7e') +install="${pkgname}.install" backup=('etc/autosuspend.conf' 'etc/autosuspend-logging.conf') +build() { + cd "$pkgname-${pkgver}" + python3 setup.py build_sphinx -a -b html + python3 setup.py build_sphinx -a -b man +} + package() { - cd "$pkgname-release-${pkgver}" + cd "$pkgname-${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" + + # man pages + mkdir -p "${pkgdir}/usr/share/man/man1" + cp doc/build/man/autosuspend.1 "${pkgdir}/usr/share/man/man1" + mkdir -p "${pkgdir}/usr/share/man/man5" + cp doc/build/man/autosuspend.conf.5 "${pkgdir}/usr/share/man/man5" + + # HTML help + mkdir -p "${pkgdir}/usr/share/doc" + cp -R doc/build/html "${pkgdir}/usr/share/doc/${pkgname}" } diff --git a/autosuspend.install b/autosuspend.install new file mode 100644 index 000000000000..fb25c1496ad6 --- /dev/null +++ b/autosuspend.install @@ -0,0 +1,4 @@ +post_upgrade() { + echo ">> The script has been renamed from autosuspend.py to autosuspend." + echo ">> Provided systemd services are updated." +} |