diff options
author | RunningDroid | 2015-10-06 00:11:18 -0400 |
---|---|---|
committer | RunningDroid | 2015-10-06 00:11:18 -0400 |
commit | 5b008371057893903c4b23f1a7123950a79969f4 (patch) | |
tree | 92ac9c74e01ab16d2b5b8d7b30b5ed9d3c1fb038 /PKGBUILD | |
download | aur-5b008371057893903c4b23f1a7123950a79969f4.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bc8da83ae880 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: RunningDroid <runningdroid AT zoho.com> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=motion-mrdave-git +pkgver=r654.2caced3 +pkgrel=1 +pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams - Mr-Dave's fork" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" +depends=('libjpeg' 'sqlite' 'ffmpeg') +backup=('etc/motion/motion.conf') +install=motion.install +source=(git+https://github.com/Mr-Dave/motion.git + motion.service + motion.tmpfiles) +md5sums=('SKIP' + 'b5b589f8f39939b7a1802cbd9dbe2e1a' + 'f863f8c025f7f025b2178def8418decd') + +pkgver() { + cd "${srcdir}/${pkgname%-mrdave-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname%-mrdave-git}" + autoreconf + ./configure --prefix=/usr \ + --without-pgsql \ + --without-mysql \ + --sysconfdir=/etc/motion \ + --with-ffmpeg + make +} + +package(){ + cd "${srcdir}/${pkgname%-mrdave-git}" + make DESTDIR="${pkgdir}" install + install -Dm644 "${srcdir}/motion.service" "${pkgdir}/usr/lib/systemd/system/motion.service" + install -Dm644 "${srcdir}/motion.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/motion.conf" +} |