diff options
author | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
commit | 02f4ee925d46ff250c9dd8c54f62a174f8220897 (patch) | |
tree | b73cf31478a2717c736544d2e3a7630aa1dd19b7 /PKGBUILD | |
download | aur-opentxs.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ea6ceca479cf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=opentxs +pkgver=0.94.0 +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=($pkgname-$pkgver.tar.gz::https://codeload.github.com/Open-Transactions/$pkgname/tar.gz/$pkgver) +sha256sums=('a26a157c4afde28bd468533bc7ece455c0833e0cb91ab46b7c49d0788f55df37') +provides=('open-transactions' 'opentxs') +conflicts=('open-transactions') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + 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 "$srcdir/$pkgname-$pkgver" + + 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" +} |