New Paste

 

Recent Pastes

Administrate




Pastebin on p.luis.im

PasteID: 219
Pasted by Anonymous, 2019-07-20 11:57:20 GMT
Expires Never
Paste size 3.11 Kb
Tools Raw   Download
 
  1. # Maintainer: Luis Aranguren <pizzaman@hotmail.com> 
  2. # Contributor: GreenRaccoon23 <GreenRaccoon23 AT gmail DOT com> 
  3. # Based on PKGBUILD from vertcoin-git maintained by Lothar_m <lothar_m AT riseup DOT net> 
  4. # WARNING: Use the `dashcore` package instead of this one unless you know what 
  5. # you are doing. The `dashcore` package provides the official, supported, tested, 
  6. # stable, precompiled build. This package provides the development, unstable, 
  7. # untested, and therefore possibly broken build. Use at your own risk. 
  8.  
  9. pkgname='dashcore-git' 
  10. _gitname='dash' 
  11. _gitbranch='master' 
  12. pkgver=v0.14.0.2.r0.g28a219ff0 
  13. pkgrel=1 
  14. arch=('x86_64') 
  15. url="https://www.dash.org/" 
  16. depends=('qt5-base' 'boost' 'boost-libs' 'miniupnpc' 'openssl') 
  17. makedepends=('autoconf' 'automake' 'binutils' 'gcc' 'libtool' 'make' 'pkg-config' 'git' 'qrencode' 'protobuf' 'qt5-tools' 'python3' 'cmake') 
  18. license=('MIT') 
  19. pkgdesc="Dash Core (DASH, Dashpay, formerly Darkcoin) is an open source, privacy-centric digital currency. (Includes the qt-client, the headless daemon and the command-line tool). WARNING: Unstable, development version." 
  20. provides=('dashd' 'dash-qt' 'dash-cli') 
  21. conflicts=('dashcore') 
  22. source=("git://github.com/dashpay/dash.git") 
  23. sha512sums=('SKIP') 
  24.  
  25. prepare () { 
  26.    cd "$_gitname" 
  27.  #  git checkout "$_gitbranch" 
  28.    git pull origin v0.14.0.x 
  29.  
  30. pkgver() { 
  31.   cd "$_gitname" 
  32. #  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) 
  33. ( set -o pipefail 
  34.     git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || 
  35.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" 
  36.  
  37. build() { 
  38.   CXXFLAGS+=" -fPIC -DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT=1" 
  39.   cd "$_gitname" 
  40.   echo "=========================GIT CHECKOUT #2=================================" 
  41.  
  42.   CPPFLAGS="${CPPFLAGS} -I$PWD/depends/built/x86_64-pc-linux-gnu/include" 
  43.   LDFLAGS="${LDFLAGS} -L${PWD}/depends/built/x86_64-pc-linux-gnu/lib -L${PWD}/depends/built/x86_64-pc-linux-gnu/lib64" 
  44.  
  45.   cd depends 
  46.   echo "==========================START MAKE DEPENDS=============================" 
  47.   make -j$nproc 
  48.   cd .. 
  49.   echo "==========================START AUTOGEN==================================" 
  50.   ./autogen.sh 
  51.   echo "==========================START CONFIGURE================================" 
  52.   ./configure --prefix=`pwd`/depends/$CARCH-pc-linux-gnu --with-incompatible-bdb --with-gui=qt5 --enable-tests=no --enable-hardening 
  53.   echo "==========================START MAKE=====================================" 
  54.   make 
  55.  
  56. package() { 
  57.   install -D -m755 "$srcdir/$_gitname/src/qt/dash-qt" "$pkgdir/usr/bin/dash-qt" 
  58.   install -D -m755 "$srcdir/$_gitname/src/dashd" "$pkgdir/usr/bin/dashd" 
  59.   install -D -m755 "$srcdir/$_gitname/src/dash-cli" "$pkgdir/usr/bin/dash-cli" 
  60.   install -D -m644 "$srcdir/$_gitname/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 
  61.   install -D -m644 "$srcdir/$_gitname/share/pixmaps/dash128.png" "$pkgdir/usr/share/pixmaps/dash128.png" 
  62.   install -D -m644 "$srcdir/$_gitname/contrib/debian/dash-qt.desktop" "$pkgdir/usr/share/applications/dash-qt.desktop" 
  63.  
 
 
 
 
Written by Xan Manning, 2010.