New Paste

 

Recent Pastes

Administrate




Pastebin on paste.luisaranguren.com

PasteID: 3yz
Pasted by Anonymous, 2018-08-22 03:56:36 GMT
Expires Never
Paste size 1.16 Kb
Tools Raw   Download
 
  1. # Maintainer: Jonathan Knapp <jaknapp8+aur@gmail.com>  
  2. # Contributor: Roasbeef  
  3. # URL: https://github.com/lightningnetwork/lnd  
  4. # Upstream: https://github.com/lightningnetwork/lnd  
  5.   
  6. pkgname=('lnd-git')  
  7. pkgver=0.2.1.alpha.291.ge4563ca  
  8. pkgrel=1  
  9. pkgdesc='The Lighting Network Daemon, for secure off-chain bitcoin transactions.'  
  10. arch=('i686' 'x86_64')  
  11. url='https://github.com/lightningnetwork/lnd'  
  12. license=('MIT')  
  13. depends=('glibc')  
  14. makedepends=('git' 'dep' 'go' 'fakeroot')  
  15. provides=('lnd')  
  16. conflicts=()  
  17. source=("$pkgname::git+https://github.com/lightningnetwork/lnd.git")  
  18. md5sums=('SKIP')  
  19.   
  20. pkgver() {  
  21.   cd $pkgname  
  22.   git describe --tags | sed 's/^v//;s/-/./g'  
  23. }  
  24.   
  25. prepare() {  
  26.   export GOPATH="$srcdir"  
  27.   rm -fr "$srcdir/src"  
  28.   git clone "$srcdir/$pkgname" "$GOPATH/src/github.com/lightningnetwork/lnd"  
  29. }  
  30.   
  31. package() {  
  32.   export GOPATH="$srcdir"  
  33.   cd "$GOPATH/src/github.com/lightningnetwork/lnd"  
  34.   dep ensure  
  35.   go install . ./cmd/...  
  36.   
  37.   for _bin in lnd lncli; do  
  38.     install -Dm 755 "$srcdir/bin/$_bin" -t "$pkgdir/usr/bin";  
  39.   done  
  40.   
  41.   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"  
 
 
 
 
Written by Xan Manning, 2010.