mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
|
# Contributor: Ross Melin <rdmelin@gmail.com>
|
||
|
# Contributor: Tri Le <trile7@gmail.com>
|
||
|
|
||
|
pkgname=mjpg-streamer
|
||
|
pkgver=r63
|
||
|
pkgrel=2
|
||
|
plugrel=1
|
||
|
pkgdesc="Stream mjpeg frames from a webcam via http"
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://sourceforge.net/projects/mjpg-streamer"
|
||
|
license=('GPL')
|
||
|
groups=(multimedia)
|
||
|
depends=(libjpeg)
|
||
|
makedepends=(gcc)
|
||
|
provides=(mjpeg-streamer)
|
||
|
source=(http://downloads.sourceforge.net/project/mjpg-streamer/mjpg-streamer/Sourcecode/$pkgname-$pkgver.tar.gz)
|
||
|
md5sums=('1c424b5441a2bf8379cdecd7dbebc935')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
find . -type f -print0 | xargs -0 sed -i s/videodev.h/videodev2.h/g
|
||
|
sed -i "s/make -C plugins\/input_gspcav1/# make -C plugins\/input_gspcav1/" Makefile
|
||
|
sed -i "s/cp plugins\/input_gspcav1\/input_gspcav1.so/# cp plugins\/input_gspcav1\/input_gspcav1.so/" Makefile
|
||
|
make clean all || return 1
|
||
|
mkdir -p $pkgdir/usr/share/mjpeg-streamer/www/
|
||
|
mkdir -p $pkgdir/usr/lib
|
||
|
install *.so $pkgdir/usr/lib/
|
||
|
install -m 644 www/* $pkgdir/usr/share/mjpeg-streamer/www/
|
||
|
install -m 755 www/functions.js $pkgdir/usr/share/mjpeg-streamer/www/
|
||
|
mkdir -p $pkgdir/usr/bin
|
||
|
install mjpg_streamer $pkgdir/usr/bin/
|
||
|
install -m 644 CHANGELOG LICENSE README start.sh $pkgdir/usr/share/mjpeg-streamer/
|
||
|
}
|