Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphene 1.10.8-1: disable neon simd on armv7h #1977

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions extra/graphene/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>

pkgname=graphene
pkgver=1.10.8
pkgrel=1
pkgdesc="A thin layer of graphic data types"
url="https://ebassi.github.io/graphene/"
arch=(x86_64)
license=(MIT)
makedepends=(git gtk-doc gobject-introspection meson glib2)
checkdepends=(python-gobject python-tappy)
options=(debug)
_commit=4e2578450809c2099400cf85caf18eafcd7100aa # tags/1.10.8^0
source=("git+https://github.com/ebassi/graphene#commit=$_commit"
"git+https://github.com/ebassi/mutest"
no-installed-tests.diff)
sha256sums=('SKIP'
'SKIP'
'fd7c41b25920077158d7de77f5d073e3a5a215c4d96c3b9bd016ffda615be4c4')

pkgver() {
cd graphene
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

prepare() {
cd graphene

# Don't install tests
git apply -3 ../no-installed-tests.diff

git submodule init
git submodule set-url subprojects/mutest "$srcdir/mutest"
git submodule update
}

build() {
if [ "${arch}" == "armv7h" ]; then
EXTRAFLAGS="-D arm_neon=false"
fi
arch-meson graphene build \
-D gtk_doc=true \
$EXTRAFLAGS \
-D installed_tests=false
meson compile -C build
}

check() {
meson test -C build --print-errorlogs
}

package() {
depends=(libg{lib,object}-2.0.so)
provides=(libgraphene-1.0.so)

meson install -C build --destdir "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 graphene/LICENSE.txt
}

# vim:set sw=2 et:
15 changes: 15 additions & 0 deletions extra/graphene/no-installed-tests.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git i/tests/meson.build w/tests/meson.build
index 0a6a355..0120c29 100644
--- i/tests/meson.build
+++ w/tests/meson.build
@@ -67,7 +67,9 @@ src_build_path = meson.current_build_dir() / '../src'

if build_gir and host_system == 'linux' and not meson.is_cross_build()
foreach unit: ['introspection.py']
- install_data(unit, install_dir: installed_test_bindir)
+ if get_option('installed_tests')
+ install_data(unit, install_dir: installed_test_bindir)
+ endif

wrapper = '@[email protected]'.format(unit)
custom_target(wrapper,