diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd3991ef2516 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Johannes Wienke <languitar@semipol.de> + +pkgname=autosuspend +pkgver=0.1.1 +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') +makedepends=('python-setuptools') +source=("https://github.com/languitar/autosuspend/archive/release-${pkgver}.tar.gz") +md5sums=('12bf8d9b54daf951ee2c866cab955479') + +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" +} |