Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 12th, 2012  |  syntax: None  |  size: 0.87 KB  |  views: 109  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #Contributor: Viaken <Viaken@Gmail.com>
  2.  
  3. pkgname=vxl
  4. pkgver=1.17.0
  5. pkgrel=1
  6. pkgdesc="A set of libraries related to computer vision"
  7. arch=('i686' 'x86_64')
  8. url="http://vxl.sourceforge.net"
  9. license=('custom:BSD')
  10. makedepends=('cmake')
  11. conflicts=('vxl-svn')
  12. source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/1.17/$pkgname-$pkgver.tar.gz")
  13. md5sums=('cf71031dee80f92e6649c4faa2d485b5')
  14.  
  15. build() {
  16.   cd "$srcdir"
  17.   rm -rf build
  18.   mkdir build
  19.   cd build
  20.   cmake \
  21.     -DCMAKE_INSTALL_PREFIX=/usr \
  22.     -DBUILD_SHARED_LIBS:BOOL=ON \
  23.     -DBUILD_TESTING:BOOL=OFF \
  24.     -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
  25.     -DCMAKE_C_FLAGS="$CFLAGS" \
  26.    ../vxl-$pkgver
  27.  
  28.   make
  29. }
  30.  
  31. package() {
  32.   cd "$srcdir"/build
  33.  
  34.   make DESTDIR="$pkgdir/" install
  35.   install -Dm644 "$srcdir"/vxl-$pkgver/core/vxl_copyright.h "$pkgdir"/usr/share/licenses/$pkgname/vxl_copyright.h
  36. }
clone this paste RAW Paste Data