Author: Not specified Language: text
Description: Not specified Timestamp: 2016-08-22 08:03:33 +0000
View raw paste Reply
  1. # Maintainer: Cody P Schafer <aur@codyps.com>
  2. pkgname=librevault-git
  3. pkgver=0.1.18.5.r0.86a6aef
  4. pkgrel=1
  5. pkgdesc="File synchronization designed with privacy in mind"
  6. arch=(x86_64 i686)
  7. url="https://librevault.com/"
  8. license=('GPL')
  9. groups=()
  10. makedepends=('git' 'cmake')
  11. depends=('qt5-websockets' 'protobuf3>=3.0.0-1' 'boost' 'qt5-svg' 'qt5-base' 'openssl' 'crypto++' 'miniupnpc' 'libnatpmp' 'websocketpp')
  12. provides=("${pkgname%-git}")
  13. conflicts=("${pkgname%-git}")
  14. replaces=()
  15. backup=()
  16. options=()
  17. install=
  18. source=(
  19.         'librevault::git+https://github.com/Librevault/librevault.git'
  20. )
  21. noextract=()
  22. md5sums=('SKIP')
  23.  
  24. pkgver() {
  25.         cd "$srcdir/${pkgname%-git}"
  26.         printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
  27. }
  28.  
  29. prepare() {
  30.         mkdir -p build
  31.         cd "$srcdir/${pkgname%-git}"
  32.         git submodule update --init
  33. }
  34.  
  35. build() {
  36.         cd "$srcdir/build"
  37.         cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/${pkgname%-git}"
  38.         cmake --build .
  39. }
  40.  
  41. package() {
  42.         cd "$srcdir/build"
  43.         make DESTDIR="$pkgdir" install
  44. }
View raw paste Reply