summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba77d6dcccf026b320665feeeed36221ba416894 (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: acxz <akashpatel2008 at yahoo dot com>

pkgname=dbow2-git
pkgver=r46.3924753
pkgrel=1
pkgdesc="Enhanced hierarchical bag-of-word library for C++."
arch=('x86_64')
url="https://github.com/dorian3d/DBoW2"
license=('custom')
depends=()
makedepends=('cmake' 'opencv' 'git')
provides=('dbow2')
_name=DBoW2
source=("git+https://github.com/dorian3d/DBoW2.git"
        LICENSE.txt)
sha256sums=('SKIP'
            'c02e19ed871eb9dd11b01db600d3f3601c5a03c4121f6baeb2ebe215ecbeaf23')

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

build() {
	cd "${_name}"
	mkdir -p build
	cd build
	cmake .. \
		-DBUILD_Demo=OFF \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "${_name}/build"
	make DESTDIR="$pkgdir/" install
}