Username: Password: Remember me
# Chakra Maintainer: Enrique Bravo <sombra AT openmailbox DOT org>
# Arch Linux Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
 
pkgname=webcamoid
pkgver=8.6.0
pkgrel=1
pkgdesc="Webcamoid is a full featured webcam capture application."
url='https://webcamoid.github.io/'
screenshot="https://webcamoid.github.io/theme/images/screenshots/Main.png"
license=('GPL')
arch=(x86_64)
depends=('qt5-quickcontrols' 'qt5-svg' 'libpulse' 'v4l-utils' 'ffmpeg' 'gst-plugins-base-libs')
makedepends=('qt5-tools' 'qt5-multimedia' 'gst-plugins-base-libs' 'libpulse' 'v4l-utils' 'ffmpeg' 'alsa-lib' 'jack' )
optdepends=('v4l2loopback-dkms: Virtual camera support'
            'gst-plugins-base: Video playing/recording/conversion'
            'gst-plugins-good: Video playing/recording/conversion'
            'gst-plugins-bad: Video playing/recording/conversion'
            'gst-plugins-ugly: Video playing/recording/conversion'
            'alsa-lib: Audio playback'
            'jack: Audio playback'
            'qt5-multimedia: Audio playback'
            'libuvc: Camera capture'
            'polkit: Root privileges for virtual camera module (Recommended)'
            'kde-cli-tools: Root privileges for virtual camera module'
            'kdesudo: Root privileges for virtual camera module')
provides=('webcamoid')
install="$pkgname.install"
source=("https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('38a4ec112e5651992a5582fdf0f342126ea74d8ec519fbc3e705b3213c29b79a')
 
build() {
    cd $pkgname-$pkgver
    qmake-qt5 Webcamoid.pro
    make
}
 
package() {
    cd $pkgname-$pkgver
    make INSTALL_ROOT=$pkgdir install
}