public
Created

litecoin-git PKGBUILD using pacman VCS features

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# Maintainer: Mike Lenzen <lenzenmi@gmail.com>
# Contributor: Noel Maersk <veox at wemakethings dotnet>
 
pkgname=litecoin-git
_gitname=litecoin
pkgver=20131026
pkgrel=1
pkgdesc="A peer-to-peer network-based digital currency (git version)"
arch=('i686' 'x86_64')
url="http://www.litecoin.org/"
license=('MIT')
depends=('qt4>=4.6' 'boost-libs>=1.46' 'miniupnpc>=1.6')
makedepends=('git' 'boost' 'gcc' 'make' 'automoc4')
provides=('litecoin')
conflicts=('litecoin')
source=('git://github.com/litecoin-project/litecoin.git')
md5sums=('SKIP')
 
pkgver() {
cd "$_gitname"
 
git log -n1 --format="%ci" | awk '{print $1}' | sed s/-//g
}
 
build() {
cd "$srcdir/$_gitname"
 
# make litecoin-qt client
qmake-qt4
make
 
# make litecoin daemon
cd "$srcdir/$_gitname/src"
make $MAKEFLAGS -f makefile.unix litecoind
}
 
package() {
# install litecoin-qt client
install -D -m755 "$srcdir/$_gitname/litecoin-qt" "$pkgdir/usr/bin/litecoin-qt"
 
# install litecoin daemon
install -D -m755 "$srcdir/$_gitname/src/litecoind" "$pkgdir/usr/bin/litecoind"
 
# install license
install -D -m644 "$srcdir/$_gitname/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.