blob: b28c5abb8ceb02c7219c36db3dc8af09b51b52f7 (
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
74
75
76
77
78
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=opentxs-git
pkgver=20141204
pkgrel=1
pkgdesc="Open Transactions library and command line client"
arch=('i686' 'x86_64')
depends=('msgpack' 'openssl' 'pcre' 'protobuf' 'zeromq' 'zlib')
makedepends=('autoconf' 'automake' 'cmake' 'gcc' 'git' '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'
'python: Enable configuration for SWIG Python support'
'ruby: Enable configuration for SWIG Ruby support'
'tcl: Enable configuration for SWIG TCL support')
url="https://github.com/Open-Transactions/opentxs"
license=('custom')
source=(git+https://github.com/Open-Transactions/opentxs)
sha256sums=('SKIP')
provides=('open-transactions' 'opentxs')
conflicts=('open-transactions' 'opentxs')
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short | sed "s|-||g"
}
build() {
cd ${pkgname%-git}
msg 'Building...'
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DKEYRING_FLATFILE=ON \
-DAUTOCOMPLETION=OFF \
-DSIGNAL_HANLDER=ON \
--debug-output ../
# -DCSHARP=ON \
# -DD=ON \
# -DGO=ON \
# -DJAVA=ON \
# -DPERL=ON \
# -DPHP=ON \
# -DPYTHON=ON \
# -DPYTHON_EXECUTABLE=/usr/bin/python \
# -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m \
# -DPYTHON_LIBRARY=/usr/lib/libpython3.4m.so \
# -DRUBY=ON \
# -DTCL=ON \
make
}
package() {
cd ${pkgname%-git}
msg 'Installing license...'
install -Dm 644 docs/LICENSE-AND-CREDITS.txt "$pkgdir/usr/share/licenses/opentxs/LICENSE"
msg 'Installing docs...'
install -dm 755 "$pkgdir/usr/share/doc/opentxs"
for _doc in ChangeLog README.md docs scripts; do
cp -dpr --no-preserve=ownership $_doc "$pkgdir/usr/share/doc/opentxs"
done
msg 'Installing...'
make DESTDIR="$pkgdir" install -C build
msg 'Installing bash completion...'
install -Dm 644 scripts/bash_completion.d/opentxs-bash-completion.sh "$pkgdir/usr/share/bash-completion/completions/opentxs"
msg 'Cleaning up pkgdir...'
find "$pkgdir" -type d -name .git -exec rm -r '{}' +
find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
}
|