mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
aur/mjpg-streamer-svn for input_file.so
This commit is contained in:
parent
3a3aedef0d
commit
8bbdfa3711
1 changed files with 45 additions and 0 deletions
45
aur/mjpg-streamer-svn/PKGBUILD
Normal file
45
aur/mjpg-streamer-svn/PKGBUILD
Normal file
|
@ -0,0 +1,45 @@
|
|||
# This is a mjpg-streamer PKGBUILD file.
|
||||
# Contributor: Tri Le <trile7@gmail.com>
|
||||
|
||||
pkgname=mjpg-streamer-svn
|
||||
pkgver=115
|
||||
pkgrel=2
|
||||
pkgdesc="Stream mjpeg frames from a webcam via http"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://sourceforge.net/projects/mjpg-streamer"
|
||||
license=('GPL')
|
||||
depends=('libjpeg')
|
||||
conflicts=("mjpg-streamer")
|
||||
makedepends=("subversion" "imagemagick")
|
||||
svnmod=mjpg-streamer
|
||||
svntrunk=https://"$svnmod".svn.sourceforge.net/svnroot/"$svnmod"/"$svnmod"
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
|
||||
if [ -d $svnmod/.svn ]; then
|
||||
(cd $svnmod && svn up -r $pkgver)
|
||||
else
|
||||
svn co $svntrunk --config-dir ./ -r $pkgver $svnmod
|
||||
fi
|
||||
|
||||
msg "SVN checkout done or server timeout"
|
||||
msg "Starting make..."
|
||||
|
||||
rm -rf "$srcdir/$svnmod-build"
|
||||
cp -r "$srcdir/$svnmod" "$srcdir/$svnmod-build"
|
||||
cd "$srcdir/$svnmod-build"
|
||||
find . -type f -print0 | xargs -0 sed -i s/videodev.h/videodev2.h/g
|
||||
sed -i "s/PLUGINS += input_gspcav1.so/# PLUGINS += input_gspcav1.so/" Makefile
|
||||
# BUILD
|
||||
make clean all || return 1
|
||||
mkdir -p $pkgdir/usr/share/$svnmod/www/
|
||||
mkdir -p $pkgdir/usr/lib
|
||||
install *.so $pkgdir/usr/lib/
|
||||
install -m 644 www/* $pkgdir/usr/share/$svnmod/www/
|
||||
install -m 755 www/functions.js $pkgdir/usr/share/$svnmod/www/
|
||||
mkdir -p $pkgdir/usr/bin
|
||||
install mjpg_streamer $pkgdir/usr/bin/
|
||||
install -m 644 CHANGELOG LICENSE README start.sh $pkgdir/usr/share/$svnmod/
|
||||
|
||||
}
|
Loading…
Reference in a new issue