diff options
author | Guillaume Horel | 2017-05-03 14:15:06 -0400 |
---|---|---|
committer | Guillaume Horel | 2017-05-03 14:15:06 -0400 |
commit | f016f3d812139c9136340f78612b1edaa7f37c4b (patch) | |
tree | f984b073a00b7ec30ad57c8bf674927d5cc6cf01 /PKGBUILD | |
download | aur-f016f3d812139c9136340f78612b1edaa7f37c4b.tar.gz |
initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba362fba295d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Guillaume Horel +# Contributor: Byron Clark <byron@theclarkfamily.name> + +pkgname=thrift-static +pkgver=0.10.0 +pkgrel=2 +pkgdesc='Scalable cross-language services framework for IPC/RPC' +arch=(i686 x86_64) +url='http://thrift.apache.org/' +license=(APACHE) +depends=(gcc-libs openssl) +makedepends=(boost libevent emacs) +conflicts=('thrift') +provides=('thrift') +options=(staticlibs) +source=(thrift-$pkgver.zip::https://github.com/apache/thrift/archive/$pkgver.zip) +sha1sums=('461cad8da7e73dab11c036760ce76c39b65cd59a') + +build() { + cd thrift-$pkgver + + ./bootstrap.sh + CXXFLAGS+=" -fpic" + ./configure --prefix=/usr \ + --with-cpp \ + --with-c_glib \ + --without-qt4 \ + --without-qt5 \ + --with-libevent \ + --with-csharp \ + --without-haskell \ + --without-php \ + --without-ruby \ + --without-python \ + --without-erlang \ + --without-perl \ + --without-java \ + --without-c_sharp \ + --without-d \ + --without-php \ + --without-go \ + --without-lua \ + --without-nodejs + + make + + emacs -Q --batch -f batch-byte-compile contrib/thrift.el +} + +check() { + cd thrift-$pkgver + make check +} + +package() { + cd thrift-$pkgver + make DESTDIR="$pkgdir" install + + install -m0644 -D contrib/thrift.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/thrift.vim + install -m0644 -D contrib/thrift.el "$pkgdir"/usr/share/emacs/site-lisp/thrift.el + install -m0644 -D contrib/thrift.elc "$pkgdir"/usr/share/emacs/site-lisp/thrift.elc +} |