diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2018-08-10 17:12:07 +0000 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2018-08-10 17:12:07 +0000 |
commit | 3a8a54e621c881ba6d5d7c0ab8764efbb3b7cd9b (patch) | |
tree | 7f13f7ac000868039195e147b3dcc25735d4485f /user/uchardet/APKBUILD | |
parent | 967628eb9921b14acdc1fb1a4b5021a5bc6ee7b0 (diff) | |
download | packages-3a8a54e621c881ba6d5d7c0ab8764efbb3b7cd9b.tar.gz packages-3a8a54e621c881ba6d5d7c0ab8764efbb3b7cd9b.tar.bz2 packages-3a8a54e621c881ba6d5d7c0ab8764efbb3b7cd9b.tar.xz packages-3a8a54e621c881ba6d5d7c0ab8764efbb3b7cd9b.zip |
user/uchardet: new package
Diffstat (limited to 'user/uchardet/APKBUILD')
-rw-r--r-- | user/uchardet/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
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 <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +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 +} + |