summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1fd52b5b6f617b4886780044868ea2cc91a6379 (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
_pkgname=kamoso
pkgname=$_pkgname-git
pkgver=r994.95d86f8
pkgrel=1
pkgdesc="Kamoso is an application to take pictures and videos out of your webcam. Git version."
url="https://projects.kde.org/projects/extragear/multimedia/kamoso"
arch=('i686' 'x86_64')
license=('GPL')
depends=('qt5-gstreamer' 'purpose-git' 'kirigami2')
makedepends=('cmake' 'git')
conflicts=('kamoso')
provides=('kamoso')

source=("git://anongit.kde.org/kamoso/")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir"
	mkdir -p build
	cd build

	cmake "../$_pkgname" -DCMAKE_BUILD_TYPE=Release
	make
}

package() {
	cd "$srcdir/build"

	make DESTDIR="$pkgdir" install
}