aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-04-26 22:11:16 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-04-28 20:16:31 +0200
commit26b3ae9c9f85741e6179e34d3828f0dfb2e118f8 (patch)
treeed6f56110d7a57ab62a669844c90705abcf973df
parent0a5576dd6955c89ef242b931bd16024cfea0a5ad (diff)
downloadaports-26b3ae9c9f85741e6179e34d3828f0dfb2e118f8.tar.gz
aports-26b3ae9c9f85741e6179e34d3828f0dfb2e118f8.tar.bz2
aports-26b3ae9c9f85741e6179e34d3828f0dfb2e118f8.tar.xz
community/uchardet: upgrade to 0.0.7
-rw-r--r--community/uchardet/APKBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/community/uchardet/APKBUILD b/community/uchardet/APKBUILD
index 93fa1d4490..216980f792 100644
--- a/community/uchardet/APKBUILD
+++ b/community/uchardet/APKBUILD
@@ -1,41 +1,45 @@
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=uchardet
-pkgver=0.0.6
-pkgrel=1
+pkgver=0.0.7
+pkgrel=0
pkgdesc="Encoding detector library ported from Mozilla"
url="https://www.freedesktop.org/wiki/Software/uchardet"
arch="all"
license="MPL-1.1"
makedepends="cmake"
-options="!check" # fail on x86, upstream is dead
-subpackages="$pkgname-dev $pkgname-doc"
-source="https://www.freedesktop.org/software/uchardet/releases/uchardet-${pkgver}.tar.xz"
-builddir="$srcdir/uchardet-$pkgver"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
+source="https://www.freedesktop.org/software/uchardet/releases/uchardet-$pkgver.tar.xz"
build() {
+ case "$CARCH" in
+ # Failing tests without SSE2 enabled
+ # https://gitlab.freedesktop.org/uchardet/uchardet/-/issues/16
+ x86)
+ export CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse2"
+ ;;
+ esac
+
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake \
+ cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
- ${CMAKE_CROSSOPTS}
- make
+ $CMAKE_CROSSOPTS
+ make -C build
}
check() {
- # overwrite failing test
- touch test/th/utf-8.txt test/th/tis-620.txt
- make test
+ make -C build test
}
package() {
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
}
-sha512sums="eceeadae060bf277e298d709856609dde32921271140dc1fb0a33c7b6e1381033fc2960d616ebbd82c92815936864d2c0743b1b5ea1b7d4a200df87df80d6de5 uchardet-0.0.6.tar.xz"
+sha512sums="ddb7b63dd09c1d9acbe620d86217e583d9aa5340780ab4010ec9faa4fd331498859d5efa7829bf8847da89325accf8f7304b51d410210178fc1ffa6658064a6f uchardet-0.0.7.tar.xz"