Advertisement
Guest User

Keyhotee-git PKGBUILD

a guest
Dec 11th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.59 KB | None | 0 0
  1. pkgname=keyhotee-git
  2. pkgver=r186.8e20201
  3. pkgrel=3
  4. pkgdesc="Decentralized ID and Communication"
  5. arch=('i686' 'x86_64')
  6. url="http://invictus-innovations.com/keyhotee"
  7. license=('custom')
  8. depends=('miniupnpc' 'openssl' 'qt5-base')
  9. makedepends=('boost' 'cmake' 'git' 'qt5-webkit')
  10. source=(git+https://github.com/InvictusInnovations/keyhotee.git
  11.         git+https://github.com/InvictusInnovations/BitShares.git
  12.         git+https://github.com/InvictusInnovations/fc)
  13. sha256sums=('SKIP'
  14.             'SKIP'
  15.             'SKIP')
  16.  
  17. _gitname=keyhotee
  18.  
  19. pkgver() {
  20.   cd "$srcdir/$_gitname"
  21.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  22. }
  23.  
  24. build() {
  25.   cd "$srcdir/$_gitname"
  26.  
  27.   # 12/7/2013 - clone BitShares into Keyhotee-build subdirectory
  28.   git clone "$srcdir/BitShares" "$srcdir/$_gitname/BitShares"
  29.   git clone "$srcdir/fc" "$srcdir/$_gitname/BitShares/fc"
  30.  
  31.   msg "Fixing memory order method for Boost 1.55..."
  32.   # change memory order method from "consume" to "acquire" to fix Boost 1.55 compiling error
  33.   # https://github.com/InvictusInnovations/fc/blob/phoenix/src/thread/thread_d.hpp#L221
  34.   sed -i "s/consume/acquire/" $srcdir/$_gitname/BitShares/fc/src/thread/thread_d.hpp
  35.  
  36.   msg "Starting build..."
  37.   # create debug build
  38.   cmake -DINVICTUS_ROOT="$srcdir/$_gitname" -DCMAKE_BUILD_TYPE=Debug .
  39.   make
  40. }
  41.  
  42. package() {
  43.   # install Keyhotee debug binary
  44.   install -Dm755 $srcdir/$_gitname/bin/KeyhoteeD $pkgdir/usr/bin/KeyhoteeD
  45.  
  46.   # install license file
  47.   install -Dm644 $srcdir/$_gitname/BitShares/LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE
  48. }
  49.  
  50. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement