Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Nick Gamberini <nickelpro@gmail.com>
- _pkgname=libuv
- pkgname=libuv-git
- pkgrel=1
- 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"
- arch=('i686' 'x86_64')
- url="https://github.com/JuliaLang/libuv"
- license=('custom')
- depends=('glibc')
- provides=('libuv')
- conflicts=('libuv')
- source=('git://github.com/joyent/libuv.git')
- md5sums=('SKIP')
- pkgver() {
- cd $_pkgname
- git describe --tags | sed 's/^v//;s/-/./g;s/node.v//'
- }
- build() {
- cd "$srcdir/$_pkgname"
- CFLAGS=-fPIC make
- }
- check() {
- cd "$srcdir/$_pkgname"
- make test
- }
- package() {
- cd "$srcdir/$_pkgname"
- install -Dm644 LICENSE \
- "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
- install -Dm644 AUTHORS \
- "$pkgdir/usr/share/doc/$_pkgname/AUTHORS"
- install -Dm644 README.md \
- "$pkgdir/usr/share/doc/$_pkgname/README.md"
- install -Dm644 libuv.a "$pkgdir/usr/lib/libuv.a"
- install -Dm644 libuv.so "$pkgdir/usr/lib/libuv.so"
- cd include
- find -type f -exec \
- install -Dm644 {} "$pkgdir/usr/include/$pkgname/"{} \;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement