pkgname=webcamoid pkgver=9.2.3 _commit=0e85ca398e26752d3cae7c0de200eabd72ac3268 pkgrel=2 pkgdesc="Webcamoid is a full featured webcam capture application." url='https://webcamoid.github.io/' license=('GPL') arch=('x86_64') depends=('qt6-declarative' 'qt6-multimedia' 'qt6-svg' 'ffmpeg' 'v4l-utils' 'pipewire' 'polkit') makedepends=('qt6-tools' 'cmake') source=("https://github.com/webcamoid/webcamoid/archive/${pkgver}.tar.gz" "https://github.com/webcamoid/webcamoid/commit/3a6426a0d489732fa79648a08aaf9d85c0f1dc8d.diff") #source=("https://github.com/webcamoid/webcamoid/archive/${_commit}.zip") md5sums=('843f8e9f52e6f4b86d3ea04bb1498e16' '3d1a62f176c0b2bbb58526ab6366cff6') prepare() { cd ${pkgname}-${pkgver} # ffmpeg 5 needed #patch -p1 -i ${srcdir}/3a6426a0d489732fa79648a08aaf9d85c0f1dc8d.diff } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }