main/apitrace: fix building package on aarch64/armhf (!676)

current version merged was missing the zlib-dev and libpng-dev
dependency which would make apitrace build internal copies of them, and
that would fail due to missing patches for musl.

add dependencies zlib-dev and libpng-dev
This commit is contained in:
Bhushan Shah 2019-10-10 22:45:08 +05:30 committed by Martijn Braam
parent 1280bde87b
commit 259fcc6e6f
No known key found for this signature in database
GPG key ID: C4280ACB000B060F

View file

@ -2,33 +2,38 @@
# Maintainer: Bhushan Shah <bshah@kde.org> # Maintainer: Bhushan Shah <bshah@kde.org>
pkgname=apitrace pkgname=apitrace
pkgver=8.0 pkgver=8.0
pkgrel=0 pkgrel=1
_commit="81c73a74860a45cbc21da9925eb04e1edad646d5" _commit="81c73a74860a45cbc21da9925eb04e1edad646d5"
pkgdesc="Tools for tracing OpenGL, Direct3D, and other graphics APIs" pkgdesc="Tools for tracing OpenGL, Direct3D, and other graphics APIs"
arch="all" arch="all"
url="http://apitrace.github.io/" url="http://apitrace.github.io/"
license="MIT" license="MIT"
depends_dev="mesa-dev libx11-dev linux-headers" depends_dev="mesa-dev zlib-dev libpng-dev libx11-dev linux-headers"
makedepends="$depends_dev cmake python3" makedepends="$depends_dev cmake python3"
source="$pkgname-$_commit.tar.gz::https://github.com/apitrace/apitrace/archive/$_commit.tar.gz source="$pkgname-$_commit.tar.gz::https://github.com/apitrace/apitrace/archive/$_commit.tar.gz
musl-fixes.patch" musl-fixes.patch"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
options="!check" # Tests fail under QEMU
builddir="$srcdir/$pkgname-$_commit" builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() { build() {
cmake \ cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_LIBDIR=lib
make make
} }
check() {
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() { package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install DESTDIR="$pkgdir" make install
} }
sha512sums="2c02106730e4c46c929dfa1b475691bbc72eaf232625276540ab46bbc80728f8b3d230c4297bdcbb11d8396490ed1f91ad592bb404c52fe2c63ef5840678eb32 apitrace-81c73a74860a45cbc21da9925eb04e1edad646d5.tar.gz sha512sums="2c02106730e4c46c929dfa1b475691bbc72eaf232625276540ab46bbc80728f8b3d230c4297bdcbb11d8396490ed1f91ad592bb404c52fe2c63ef5840678eb32 apitrace-81c73a74860a45cbc21da9925eb04e1edad646d5.tar.gz
a204b51654d9adc484657ec68da6f89cbcdc4dd3a810d024979dcbeacffa5867d3e5ce0b40fcdc9133b36e8927d2c7672ef5c3a40db3dee0813fe2766130e21b musl-fixes.patch" a204b51654d9adc484657ec68da6f89cbcdc4dd3a810d024979dcbeacffa5867d3e5ce0b40fcdc9133b36e8927d2c7672ef5c3a40db3dee0813fe2766130e21b musl-fixes.patch"