diff options
author | Michel Zou | 2017-02-26 20:54:45 +0100 |
---|---|---|
committer | Michel Zou | 2017-02-26 20:54:45 +0100 |
commit | 55143e59d69de4b1951c4841341685b88d791559 (patch) | |
tree | 83e14ef64868ead6adb570f1355acd98d8441bf6 | |
parent | 63ef106a47a2d6f6bfe961c2509431f21cc0fc4d (diff) | |
download | aur-55143e59d69de4b1951c4841341685b88d791559.tar.gz |
3.2.0
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 21 insertions, 24 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Sun Feb 26 19:54:45 UTC 2017 pkgbase = mingw-w64-protobuf - pkgdesc = Protocol Buffers - Google's data interchange format - pkgver = 2.6.1 + pkgdesc = Protocol Buffers - Google's data interchange format (mingw-w64) + pkgver = 3.2.0 pkgrel = 1 url = https://developers.google.com/protocol-buffers/ arch = any @@ -12,8 +14,8 @@ pkgbase = mingw-w64-protobuf options = !strip options = !buildflags options = staticlibs - source = https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2 - md5sums = 11aaac2d704eef8efd1867a807865d85 + source = https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz + md5sums = 46ab34b63ac77c02d4351961f6f85ded pkgname = mingw-w64-protobuf @@ -2,41 +2,36 @@ pkgname=('mingw-w64-protobuf') _pkgname=protobuf -pkgver=2.6.1 +pkgver=3.2.0 pkgrel=1 -pkgdesc="Protocol Buffers - Google's data interchange format" +pkgdesc="Protocol Buffers - Google's data interchange format (mingw-w64)" arch=('any') url='https://developers.google.com/protocol-buffers/' license=('BSD') depends=('mingw-w64-crt' 'mingw-w64-zlib') makedepends=('mingw-w64-gcc' 'protobuf') options=(!strip !buildflags staticlibs) -source=(https://github.com/google/protobuf/releases/download/v$pkgver/protobuf-$pkgver.tar.bz2) -md5sums=('11aaac2d704eef8efd1867a807865d85') +source=("https://github.com/google/protobuf/releases/download/v${pkgver}/protobuf-cpp-${pkgver}.tar.gz") +md5sums=('46ab34b63ac77c02d4351961f6f85ded') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" build() { cd ${srcdir}/${_pkgname}-${pkgver} for _arch in ${_architectures}; do - mkdir -p build-${_arch} - pushd build-${_arch} - ${_arch}-configure --with-protoc=/usr/bin/protoc - make - popd + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --with-protoc=/usr/bin/protoc .. + make + popd done } package() { - cd ${srcdir}/${_pkgname}-${pkgver} - for _arch in ${_architectures}; do - pushd build-${_arch} - make DESTDIR="$pkgdir" install - install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - find ${pkgdir}/usr/${_arch} -name \*.a | xargs ${_arch}-strip -g - find ${pkgdir}/usr/${_arch} -name \*.dll | xargs ${_arch}-strip --strip-unneeded - rm -f ${pkgdir}/usr/${_arch}/bin/*.exe - popd - done + for _arch in ${_architectures}; do + cd "${srcdir}"/${_pkgname}-${pkgver}/build-${_arch} + make DESTDIR="$pkgdir" install + rm "${pkgdir}"/usr/${_arch}/bin/*.exe + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done } - |