blob: 84019433e014de7bdcf7b747d4bc1d54c09e03fc (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Kimiblock Moe
pkgname=camodet-git
pkgver=r43.224677e
pkgrel=1
epoch=
pkgdesc="Lightweight Simple CAmera MOtion DETection application."
arch=('x86_64')
url="https://github.com/oyzzo/camodet"
license=(GPL-3.0-or-later)
provides=(camodet)
groups=()
options=()
makedepends+=()
depends=(
"pkgconf"
"ffmpeg"
"gcc-libs"
"glibc"
"opencv"
)
optdepends=(
"gtk2"
'cuda'
"python"
"numpy"
"libbtbb"
"libjpeg-turbo"
"libpng"
"libtiff"
"jasper"
"libdc1394"
)
makedepends+=(
"libarchive"
"cmake"
)
checkdepends=()
source=(
"git+https://github.com/oyzzo/camodet.git"
)
sha256sums=('SKIP')
function pkgver() {
cd "${srcdir}/camodet"
#git describe --long --tags --abbrev=8 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
function test() {
ctest --test-dir build --output-on-failure
}
function build() {
cmake -B build -S "camodet" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
function package() {
#cd camodet
DESTDIR="$pkgdir" cmake --install build
}
|