summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Franke2017-09-22 20:24:24 +0200
committerBjoern Franke2017-09-22 20:24:24 +0200
commit0193d5c2f9612ecdf45eefa95997aae58d06a0d9 (patch)
treeb27c89ce8b275c2477ef5ed9c99223bab316adeb
parentc2ea7cb0347a19615b96dc319811bc2338acb4c3 (diff)
downloadaur-0193d5c2f9612ecdf45eefa95997aae58d06a0d9.tar.gz
fix deps and add systemd-service
-rw-r--r--PKGBUILD13
-rw-r--r--service8
2 files changed, 16 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bf887a50823..142d140284a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,26 @@
# Maintainer: Bjoern Franke <bjo@nord-west.org>
pkgname=pywws
pkgver=16.12.0
-pkgrel=1
+pkgrel=2
pkgdesc="Python software for USB Wireless WeatherStations"
arch=('any')
url="https://github.com/jim-easterbrook/pywws"
license=('GPL')
makedepends=('python2-pip')
-depends=('python2')
+depends=('python2', 'python2-tzlocal')
options=(!emptydirs)
#backup=('etc/mpdlcd.conf')
-source=(https://pypi.python.org/packages/e5/99/00bf9e1ee8eaa615f1fe9e63e7881d64b1e6eecfdfa4818cdb259cf9cfe8/$pkgname-$pkgver.tar.gz)
-md5sums=('6ea2679277c7887fd49fa0dbc6faea17')
-
+source=(https://pypi.python.org/packages/e5/99/00bf9e1ee8eaa615f1fe9e63e7881d64b1e6eecfdfa4818cdb259cf9cfe8/$pkgname-$pkgver.tar.gz
+'service')
+md5sums=('6ea2679277c7887fd49fa0dbc6faea17'
+ '7292097afd09a1bacbf4672e31b842e1')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 "${srcdir}"/service \
+ "${pkgdir}"/usr/lib/systemd/system/pywws-livelog.service
}
diff --git a/service b/service
new file mode 100644
index 00000000000..af0389097a2
--- /dev/null
+++ b/service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Python software for USB Wireless WeatherStations
+
+[Service]
+ExecStart=/usr/bin/pywws-livelog /var/lib/pywws
+
+[Install]
+WantedBy=multi-user.target