summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30c6f67538d51735f684d269d58b62abebd429a9 (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
45
46
47
48
# Maintainer: bitwave <aur [at] oomlu [d0t] de>
# Ex-Maintainer: Serge Victor <arch@random.re>
# Ex-Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Christos Nouskas <nous at archlinux dot us>

pkgname=vanitygen-git
pkgver=20121024
pkgrel=3
pkgdesc="Bitcoin vanity address generator written in C"
arch=('i686' 'x86_64')
depends=('openssl-1.0' 'pcre')
makedepends=('git')
url="https://github.com/samr7/vanitygen"
license=('AGPL3')
source=("openssl.patch"
    git+https://github.com/samr7/vanitygen)
sha256sums=('9f15f4858f6de2d7b93705b599bbcc69ab36a38c7116c1d449e9cef1ff11ac43'
            'SKIP')
provides=('vanitygen')
conflicts=('vanitygen')

pkgver() {
  cd ${pkgname%-git}
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

prepare() {
  cd ${pkgname%-git}

  patch -Np0 -i $srcdir/openssl.patch
}

build() {
  cd ${pkgname%-git}

  msg 'Building...'
  make most
}

package() {
  cd ${pkgname%-git}
  msg 'Installing executables...'
  install -D -m755 vanitygen $pkgdir/usr/bin/vanitygen
  install -D -m755 keyconv $pkgdir/usr/bin/keyconv

  msg 'Cleaning up pkgdir...'
  find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}