LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File PKGBUILD of Package osvr-libfunctionality-git (Project home:Minerva_W:OSVR)

pkgname=osvr-libfunctionality-git
pkgver=v0.1.r17.g315e786
pkgrel=2
pkgdesc="A minimal library for dynamically-loaded or statically-linked functionality modules."
arch=(i686 x86_64)
url="https://github.com/OSVR/libfunctionality"
#license=('GPL')
makedepends=('git' 'cmake' 'markdown')
source=("libfunctionality-${pkgver}.tar.xz")

md5sums=(SKIP) #generate with 'makepkg -g'

prepare() {
  cd "$srcdir/libfunctionality-${pkgver}"
}

build() {
  mkdir -p "$srcdir/libfunctionality-build"
  cd "$srcdir/libfunctionality-build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../libfunctionality-${pkgver}
  make
}

package() {
  cd "$srcdir/libfunctionality-build"
  make DESTDIR="$pkgdir/" install
  mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" || true
}

# vim:set ts=2 sw=2 et: