summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3794e6bcf8472cf85671155f6efe2108b62ad9a (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>

pkgname=open-transactions
pkgver=0.93
pkgrel=1
pkgdesc="Financial cryptography library"
arch=('i686' 'x86_64')
depends=('msgpack' 'openssl' 'protobuf' 'zeromq' 'zlib')
makedepends=('autoconf' 'automake' 'gcc' 'gtest' 'libtool' 'make' 'pkg-config' 'swig')
optdepends=('gdc: Enable configuration for SWIG Digital Mars D Programing Language support'
            'go: Enable configuration for SWIG Go support'
            'java-environment: Enable configuration for SWIG Java support'
            'mono: Enable configuration for SWIG C-Sharp support'
            'perl: Enable configuration for SWIG Perl support'
            'php: Enable configuration for SWIG PHP support'
            'python2: Enable configuration for SWIG Python support'
            'ruby: Enable configuration for SWIG Ruby support'
            'tcl: Enable configuration for SWIG TCL support')
url="http://opentransactions.org"
license=('custom')
source=(http://downloads.sourceforge.net/project/opentxs/opentxs-$pkgver.tar.gz)
sha1sums=('bed2e26e5bcee97386932e5189367eaac90ee4e2')
sha256sums=('f05627b14d9ab6553a41491a1ce1765bcdf7a1925694782bc00c32f76b294670')
provides=('createmint' 'open-transactions' 'opentxs' 'ot' 'otserver')
install=open-transactions.install

# keyring can be 'flatfile', 'gnome' or 'kwallet'
_keyring=flatfile

build() {
  cd $srcdir/opentxs-$pkgver

  msg 'Building...'
  ./autogen.sh

  export PERL_EXT_LDFLAGS='-avoid-version -shared'
  export PYTHON_VERSION=2
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib/opentxs \
    --sysconfdir=/etc \
    --sharedstatedir=/usr/share/opentxs \
    --localstatedir=/var/lib/opentxs \
    --with-gnu-ld \
    --with-keyring=$_keyring
    #--with-csharp \
    #--with-d \
    #--with-go \
    #--with-java \
    #--with-perl5 \
    #--with-php \
    #--with-python \
    #--with-ruby \
    #--with-tcl
  make
}

package() {
  cd $srcdir/opentxs-$pkgver

  msg 'Installing license...'
  install -D -m644 docs/LICENSE-AND-CREDITS.txt $pkgdir/usr/share/licenses/opentxs/LICENSE

  msg 'Installing...'
  make DESTDIR="$pkgdir" install

  msg 'Installing bash completion...'
  install -D -m644 scripts/bash_completion.d/opentxs-bash-completion.sh $pkgdir/etc/bash_completion.d/opentxs

  msg 'Yielding /usr/lib/libgtest.so to pkg: gtest...'
  rm -f $pkgdir/usr/lib/libgtest.so
}