Guest User

AUR PKGBUILD codec2-svn cmake update

a guest
Jan 15th, 2015
192
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Kyle Keen <keenerd@gmail.com>
  2. # Contributor: Kovivchak Evgen <oneonfire@gmail.com>
  3.  
  4. pkgname=codec2-svn
  5. pkgver=2007
  6. pkgrel=1
  7. pkgdesc="Open source 2400 bit/s speech codec"
  8. arch=('i686' 'x86_64')
  9. license=('LGPL')
  10. url="http://codec2.org/"
  11. depends=('glibc')
  12. makedepends=('subversion')
  13. provides=('codec2')
  14. source=('svn+https://freetel.svn.sourceforge.net/svnroot/freetel/codec2')
  15. md5sums=('SKIP')
  16. _svnmod=codec2
  17.  
  18. pkgver() {
  19. cd "$srcdir/$_svnmod"
  20. local ver="$(svnversion)"
  21. printf "%s" "${ver//[[:alpha:]]}"
  22. }
  23.  
  24. build() {
  25. cd "$srcdir/$_svnmod"
  26. mkdir -p build_linux
  27. cd build_linux
  28. cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR:PATH=lib
  29. make
  30. }
  31.  
  32. package() {
  33. cd "$_svnmod/build_linux"
  34. make DESTDIR="$pkgdir" install
  35. cd "$srcdir/$_svnmod"
  36. install -m644 -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  37. }
RAW Paste Data