summaryrefslogtreecommitdiff
path: root/community/fswebcam/PKGBUILD
blob: 7b2f29b5a47571804e09e2f38af20eeab6b97f6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 37156 2011-01-11 17:12:18Z ttopper $
# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Philipp Robbel <robbel@gmail.com>

pkgname=fswebcam
pkgver=20101118
pkgrel=1
pkgdesc="Tiny and flexible webcam app."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.firestorm.cx/fswebcam"
license=('GPL')
depends=('gd')
backup=("etc/$pkgname.conf")
source=("$url/files/$pkgname-$pkgver.tar.gz")
md5sums=('b4be05ed7c728c68424e947ed452b29f')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install

  # Install configuration file
  # Commented to avoid problems with many devices, thank you SpepS
  sed "s_^_#_g" -i example.conf
  install -Dm644 example.conf "$pkgdir/etc/fswebcam.conf"
}

# vim:ts=2:sw=2:expandtab