Skip to content

Instantly share code, notes, and snippets.

@akhenakh
Last active January 18, 2018 12:42
Show Gist options
  • Save akhenakh/082a1fda72d19e1ccaf43e6a6cab1826 to your computer and use it in GitHub Desktop.
Save akhenakh/082a1fda72d19e1ccaf43e6a6cab1826 to your computer and use it in GitHub Desktop.
aruco opentrack arch
pkgname=opentrack-aruco-git
pkgver=r44.2adf990
pkgrel=1
pkgdesc="Augmented reality library based on OpenCV"
arch=('i686' 'x86_64')
url="https://www.uco.es/investiga/grupos/ava/node/26"
license=('BSD')
depends=(opencv)
makedepends=(cmake)
source=("git+https://github.com/opentrack/aruco.git#commit=2adf990b93742593a06df699ed32c20a9796b434")
pkgver() {
cd "$srcdir/aruco"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/aruco"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
make
}
package() {
cd "$srcdir/aruco"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment