summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 542ebf0cfef45420ef82d3bf7bfe0966e6c25acb (plain)
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
# Maintainer: TheGuardianWolf <lichking21st(at)windowslive.com>
pkgname=garlicoin-cli-git
_gitname=Garlicoin
pkgver=20180121185844.arm.linux.gnueabihf
pkgrel=1
arch=('i686' 'x86_64')
url="https://garlicoin.io/"
license=('MIT')
pkgdesc="Peer-to-peer digital meme godcoin"
depends=('gcc-libs' 'miniupnpc' 'openssl' 'db4.8')
makedepends=('pkg-config' 'git' 'boost-libs' 'boost' 'gcc' 'make' 'automake' 'autoconf' 'libtool')
provides=('garlicoin-cli')
conflicts=('garlicoin-cli' 'garlicoin')
source=('git://github.com/GarlicoinOrg/Garlicoin.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --tags| sed "s/-/./g"
}

build() {
  cd "$srcdir/$_gitname"
  ./autogen.sh
  ./configure
   make -j$(nproc)
}

package() {
	# install garlicoin-daemon
	msg2 'Installing garlicoin-daemon...'
	install -Dm755 "$srcdir/$_gitname/src/garlicoind" "$pkgdir/usr/bin/garlicoind"

	# install garlicoin-cli
	msg2 'Installing garlicoin-cli...'
	install -Dm755 "$srcdir/$_gitname/src/garlicoin-cli" "$pkgdir/usr/bin/garlicoin-cli"

	# install garlicoin-tx
	msg2 'Installing garlicoin-tx...'
	install -Dm755 "$srcdir/$_gitname/src/garlicoin-tx" "$pkgdir/usr/bin/garlicoin-tx"

	# install license
	install -D -m644 "$srcdir/$_gitname/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}