daily pastebin goal
13%
SHARE
TWEET

aerospike-client-c-libuv 4.3.12

a guest May 22nd, 2018 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Alexander Sobolevkiy <smak.nsk [at] gmail [dot] com>
  2. # Based on https://github.com/aerospike/aerospike-client-c
  3.  
  4. pkgname=aerospike-client-c-libuv
  5. pkgver=4.3.12
  6. pkgrel=1
  7. pkgdesc="The Aerospike C client provides a C interface for interacting with the Aerospike Database."
  8. arch=('any')
  9. url="https://github.com/aerospike/aerospike-client-c"
  10. license=('Proprietary')
  11. depends=('libuv' 'python2')
  12. makedepends=('git')
  13. provides=('aerospike-client-c')
  14. conflicts=('aerospike-client-c-libev', 'aerospike-client-c-libevent')
  15. _gitroot="https://github.com/aerospike/aerospike-client-c.git"
  16. _gitname="aerospike-client-c"
  17.  
  18. build() {
  19.   cd ${srcdir}/
  20.  
  21.   if [[ -d ${srcdir}/${_gitname} ]] ; then
  22.     rm -rf "${srcdir}/${_gitname}"
  23.   fi
  24.  
  25.   git clone --recursive --branch ${pkgver} ${_gitroot}
  26.  
  27.   cd ${srcdir}/${_gitname}/
  28.  
  29.   make EVENT_LIB=libuv
  30. }
  31.  
  32. package() {
  33.  
  34.   mkdir -p -m 755 "${pkgdir}/usr/include"
  35.   mkdir -p -m 755 "${pkgdir}/usr/lib/"
  36.   mkdir -p -m 755 "${pkgdir}/opt/aerospike/client/sys/udf/lua/"
  37.   mkdir -p -m 755 "${pkgdir}/opt/aerospike/client/usr/udf/lua/"
  38.  
  39.   cd ${srcdir}/${_gitname}/
  40.  
  41.   cp -r target/Linux-x86_64/include/aerospike/ "${pkgdir}/usr/include/"
  42.   cp -r target/Linux-x86_64/include/citrusleaf/ "${pkgdir}/usr/include/"
  43.  
  44.   install -Dm644 target/Linux-x86_64/lib/libaerospike.a "${pkgdir}/usr/lib/"
  45.  
  46.   install -Dm644 modules/lua-core/src/aerospike.lua "${pkgdir}/opt/aerospike/client/sys/udf/lua/"
  47.   install -Dm644 modules/lua-core/src/as.lua "${pkgdir}/opt/aerospike/client/sys/udf/lua/"
  48.   install -Dm644 modules/lua-core/src/stream_ops.lua "${pkgdir}/opt/aerospike/client/sys/udf/lua/"
  49. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top