From 3a8a54e621c881ba6d5d7c0ab8764efbb3b7cd9b Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Fri, 10 Aug 2018 17:12:07 +0000 Subject: user/uchardet: new package --- user/uchardet/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 user/uchardet/APKBUILD (limited to 'user/uchardet') diff --git a/user/uchardet/APKBUILD b/user/uchardet/APKBUILD new file mode 100644 index 000000000..08770a326 --- /dev/null +++ b/user/uchardet/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +pkgname=uchardet +pkgver=0.0.6 +pkgrel=0 +pkgdesc="Universal character encoding detection library" +url="https://www.freedesktop.org/wiki/Software/uchardet/" +arch="all" +license="MPL-1.1 OR GPL-2.0+ OR LGPL-2.1+" +makedepends="cmake" +subpackages="$pkgname-dev $pkgname-doc" +source="https://www.freedesktop.org/software/uchardet/releases/uchardet-$pkgver.tar.xz" +sha512sums="eceeadae060bf277e298d709856609dde32921271140dc1fb0a33c7b6e1381033fc2960d616ebbd82c92815936864d2c0743b1b5ea1b7d4a200df87df80d6de5 uchardet-0.0.6.tar.xz" +builddir="$srcdir/uchardet-$pkgver" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + -- cgit v1.2.3-70-g09d2