blob: 5b93ecab02c76fd4e888456901650ecb097efffa (
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
37
38
39
40
41
42
43
44
|
# Maintainer: Krystian Chachula <krystiancha@gmail.com>
pkgname=raspicam-git
pkgver=r58.651c564
pkgrel=1
pkgdesc="C++ API for using Raspberry camera (with OpenCV)"
arch=('any')
url="http://www.uco.es/investiga/grupos/ava/node/40"
license=('BSD')
groups=()
depends=('cmake')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('raspicam::git+https://github.com/cedricve/raspicam.git')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" ..
}
build() {
cd "$srcdir/${pkgname%-git}"
cd build
make
}
package() {
cd "$srcdir/${pkgname%-git}"
cd build
make install
}
|