summaryrefslogtreecommitdiff
path: root/community/motion
diff options
context:
space:
mode:
Diffstat (limited to 'community/motion')
-rw-r--r--community/motion/PKGBUILD5
-rw-r--r--community/motion/motion.install7
2 files changed, 10 insertions, 2 deletions
diff --git a/community/motion/PKGBUILD b/community/motion/PKGBUILD
index 2baa5ab47..511c9e03a 100644
--- a/community/motion/PKGBUILD
+++ b/community/motion/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 94894 2013-08-01 06:55:12Z bpiotrowski $
+# $Id: PKGBUILD 103886 2014-01-13 10:05:50Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=motion
pkgver=3.2.12
-pkgrel=10
+pkgrel=11
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
@@ -11,6 +11,7 @@ url="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
depends=('libjpeg' 'v4l-utils' 'ffmpeg-compat')
backup=('etc/motion/motion.conf')
options=('!makeflags')
+install=motion.install
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
motion.service
motion.tmpfiles
diff --git a/community/motion/motion.install b/community/motion/motion.install
new file mode 100644
index 000000000..f36054033
--- /dev/null
+++ b/community/motion/motion.install
@@ -0,0 +1,7 @@
+post_install() {
+ systemd-tmpfiles --create motion.conf
+}
+
+post_upgrade() {
+ systemd-tmpfiles --create motion.conf
+}