community/motion to 4.0.1-2

This commit is contained in:
Kevin Mihelich 2016-11-14 19:05:26 +00:00
parent 87f6501cd7
commit 605f81b2d2
3 changed files with 5 additions and 24 deletions

View file

@ -6,7 +6,7 @@
pkgname=motion
pkgver=4.0.1
pkgrel=1.2
pkgrel=2
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
arch=('i686' 'x86_64')
license=('GPL')
@ -14,12 +14,8 @@ url="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome"
depends=('libjpeg' 'v4l-utils' 'ffmpeg')
backup=('etc/motion/motion.conf')
options=('!makeflags')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Motion-Project/motion/archive/release-$pkgver.tar.gz"
motion.service
motion.tmpfiles)
md5sums=('5c87f90c4118d8cf0fb14700db69118f'
'c8e9a9e9fd2dcc1ee8bcee1f32a91559'
'f863f8c025f7f025b2178def8418decd')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Motion-Project/motion/archive/release-$pkgver.tar.gz")
sha256sums=('2f67669a09ce0481ecd987028dae1c5cb135dfdc3c254c06ab7c9ca0c6c183f0')
build() {
cd "${srcdir}/${pkgname}-release-${pkgver}"
@ -36,7 +32,6 @@ build() {
package(){
cd "${srcdir}/${pkgname}-release-${pkgver}"
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/etc/motion/motion-dist.conf" "${pkgdir}/etc/motion/motion.conf"
install -Dm644 "${srcdir}/motion.service" "${pkgdir}/usr/lib/systemd/system/motion.service"
install -Dm644 "${srcdir}/motion.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/motion.conf"
install -Dm644 "motion-dist.conf" "${pkgdir}/etc/motion/motion.conf"
install -Dm644 "motion.service" "${pkgdir}/usr/lib/systemd/system/motion.service"
}

View file

@ -1,13 +0,0 @@
[Unit]
Description=Motion daemon
After=local-fs.target
[Service]
PIDFile=/run/motion/motion.pid
ExecStart=/usr/bin/motion
Type=forking
#StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target

View file

@ -1 +0,0 @@
D /var/run/motion 0755 root root