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

pkgname=yolo-mark-git
pkgver=r64.ea049f3
pkgrel=1
pkgdesc='GUI for marking bounded boxes of objects in images for training YOLO
neural networks.'
arch=('i686' 'x86_64')
url='https://github.com/AlexeyAB/yolo_mark'
license=('None')
depends=('opencv')
optdepends=()
makedepends=('cmake' 'git' 'vtk')
_name=yolo_mark
provides=('yolo-mark')
conflicts=('')
source=("git+https://github.com/AlexeyAB/yolo_mark.git")
md5sums=('SKIP')

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

build() {
  # Creating build directory
  cd "${srcdir}/${_name}/"
  mkdir -p "build"
  cd "build"

  msg "Starting CMake"

  cmake .. \
    -DCMAKE_PREFIX_PATH='/usr' \
    -DCMAKE_INSTALL_PREFIX='/usr'

  msg "Building the project"
  make
}

package() {
  msg "Installing files"

  #cd "${srcdir}/${_name}/build/"
  #make install

  # Create usr directory
  mkdir $pkgdir/usr

  # bin
  mkdir $pkgdir/usr/bin
  cp $srcdir/${_name}/build/yolo_mark $pkgdir/usr/bin

  chown -R root:root $pkgdir/usr
  chmod -R 755 $pkgdir/usr
}