blob: 2a41b1499144e1a202d375daec0d2f0cd5bac972 (
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
|
#Maintainer: Chipster Julien <julien dot chipster @ archlinux dot fr>
pkgname=hogc
pkgver=0.0.1
pkgrel=12
pkgdesc="human detection in C++ and opencv"
arch=('any')
url="https://github.com/Chipsterjulien/hogc"
license=('WTFPL')
makedepends=('opencv' 'cmake')
options=('!strip')
source=("$pkgname-$pkgver.tar.gz")
install=hogc.install
_builddir="$pkgname-$pkgver"
build() {
cd "$_builddir"
# run cmake .
cmake . || return 1
# run make
make || return 1
}
package() {
cd "$_builddir"
# hogc_sample.ini
install -Dm644 cfg/"$pkgname"_sample.ini \
"$pkgdir"/etc/$pkgname/"$pkgname"_sample.ini || return 1
# hogc binary
install -m755 -o root -g root -D "$srcdir"/$pkgname-$pkgver/$pkgname \
"$pkgdir"/usr/bin/$pkgname || return 1
}
sha512sums=('d7097a75d431a2a12bacc918dc4eb2512e7a4e80e79b86768315193bffc85a9c4b37da0b07f7d4f9e9a9603c79f05f37860f93fd324b2dab12b27b7031487729')
|