mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
45 lines
No EOL
1.3 KiB
Bash
45 lines
No EOL
1.3 KiB
Bash
# 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/
|
|
|
|
} |