From 9feca2adc24cf0597014b3969455166280b24913 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sat, 16 Sep 2017 22:48:49 +0200 Subject: [PATCH] New package: sombok-2.4.0 --- common/shlibs | 1 + srcpkgs/sombok-devel | 1 + srcpkgs/sombok/patches/cross.patch | 17 +++++++++++++++++ srcpkgs/sombok/template | 29 +++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 120000 srcpkgs/sombok-devel create mode 100644 srcpkgs/sombok/patches/cross.patch create mode 100644 srcpkgs/sombok/template diff --git a/common/shlibs b/common/shlibs index f1ffff07526..174c6af1284 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2844,6 +2844,7 @@ libmuthreads.so.1.11 libmupdf-1.11_4 libprotobuf-lite.so.14 protobuf-lite-3.4.0_1 libprotoc.so.14 protobuf-3.4.0_1 libprotobuf.so.14 protobuf-3.4.0_1 +libsombok.so.3 sombok-2.4.0_1 libite.so.3 libite-1.8.2_1 libykclient.so.3 ykclient-2.15_1 libbooster.so.0 cppcms-1.0.5_1 diff --git a/srcpkgs/sombok-devel b/srcpkgs/sombok-devel new file mode 120000 index 00000000000..60399db8ed2 --- /dev/null +++ b/srcpkgs/sombok-devel @@ -0,0 +1 @@ +sombok \ No newline at end of file diff --git a/srcpkgs/sombok/patches/cross.patch b/srcpkgs/sombok/patches/cross.patch new file mode 100644 index 00000000000..0d7b4e444d5 --- /dev/null +++ b/srcpkgs/sombok/patches/cross.patch @@ -0,0 +1,17 @@ +--- configure.ac.orig 2015-06-21 03:57:51.000000000 +0200 ++++ configure.ac 2017-09-11 16:41:33.565358208 +0200 +@@ -120,9 +120,11 @@ + AC_HELP_STRING(--with-unicode-version=VERSION, + [version of Unicode Standard @<:@default=current version@:>@]), + UNICODE_VERSION=$withval,UNICODE_VERSION=$DEFAULT_UNICODE_VERSION) +-AC_CHECK_FILE([lib/$UNICODE_VERSION.c], +- AC_MSG_RESULT($UNICODE_VERSION), +- AC_MSG_ERROR(Unknown Unicode version $UNICODE_VERSION.)) ++if test -f "lib/$UNICODE_VERSION.c"; then ++ AC_MSG_RESULT($UNICODE_VERSION) ++else ++ AC_MSG_ERROR(Unknown Unicode version $UNICODE_VERSION.) ++fi + AC_SUBST(UNICODE_VERSION) + + # check if code to debug memory allocation is enabled. diff --git a/srcpkgs/sombok/template b/srcpkgs/sombok/template new file mode 100644 index 00000000000..b22130e9930 --- /dev/null +++ b/srcpkgs/sombok/template @@ -0,0 +1,29 @@ +# Template file for 'sombok' +pkgname=sombok +version=2.4.0 +revision=1 +wrksrc="${pkgname}-${pkgname}-${version}" +build_style=gnu-configure +hostmakedepends="pkg-config automake autogen libtool" +short_desc="Line Breaking Algorithm described in Unicode Standard Annex UAX #14" +maintainer="newbluemoon " +license="Artistic, GPL-1" +homepage="https://github.com/hatukanezumi/sombok" +distfiles="https://github.com/hatukanezumi/${pkgname}/archive/${pkgname}-${version}.tar.gz" +checksum=14d9dcd3621bf9d591a7158aeac99b4d4a60296558173be51d57b54b8f9d70a2 + +pre_configure() { + autoreconf -i +} + +sombok-devel_package() { + short_desc+=" - development files" + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} +