Advertisement
NickG

Untitled

Sep 7th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. # Maintainer: Nick Gamberini <nickelpro@gmail.com>
  2.  
  3. _pkgname=libuv
  4. pkgname=libuv-git
  5. pkgrel=1
  6. pkgdesc="libuv is a platform layer for node.js. Its purpose is to abstract IOCP on Windows and epoll/kqueue/event ports/etc. on Unix systems"
  7. arch=('i686' 'x86_64')
  8. url="https://github.com/JuliaLang/libuv"
  9. license=('custom')
  10. depends=('glibc')
  11. provides=('libuv')
  12. conflicts=('libuv')
  13. source=('git://github.com/joyent/libuv.git')
  14. md5sums=('SKIP')
  15.  
  16.  
  17. pkgver() {
  18. cd $_pkgname
  19. git describe --tags | sed 's/^v//;s/-/./g;s/node.v//'
  20. }
  21.  
  22. build() {
  23. cd "$srcdir/$_pkgname"
  24.  
  25. CFLAGS=-fPIC make
  26. }
  27.  
  28. check() {
  29. cd "$srcdir/$_pkgname"
  30.  
  31. make test
  32. }
  33.  
  34. package() {
  35. cd "$srcdir/$_pkgname"
  36.  
  37. install -Dm644 LICENSE \
  38. "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
  39. install -Dm644 AUTHORS \
  40. "$pkgdir/usr/share/doc/$_pkgname/AUTHORS"
  41. install -Dm644 README.md \
  42. "$pkgdir/usr/share/doc/$_pkgname/README.md"
  43.  
  44. install -Dm644 libuv.a "$pkgdir/usr/lib/libuv.a"
  45. install -Dm644 libuv.so "$pkgdir/usr/lib/libuv.so"
  46.  
  47. cd include
  48. find -type f -exec \
  49. install -Dm644 {} "$pkgdir/usr/include/$pkgname/"{} \;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement