blob: 69c724d73e288f3f8f6d641503b52e697af15724 (
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
|
#Maintainer: Chipster Julien <julien dot chipster @ archlinux dot fr>
pkgname=hogc
pkgver=0.0.1
pkgrel=18
pkgdesc="human detection in C++ and opencv"
arch=('any')
url="https://github.com/Chipsterjulien/hogc"
license=('WTFPL')
depends=('opencv')
makedepends=('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=('c44821d87c84428dae1666cb6826162d9f5d7aa7242dd494c8cc1d9a30c0c5e633d9eca1788f25e1c0f8aa08432ba65b76999834f299fd18c4a3eefa6bcdf9af')
|