Created
October 27, 2013 15:49
-
-
Save veox/7184069 to your computer and use it in GitHub Desktop.
litecoin-git PKGBUILD using pacman VCS features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment