From ae0d5d318da2f6c5cba96263d30300349e9dc17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 7 Apr 2018 12:43:16 +0200 Subject: [PATCH] New package: libucontext-0.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- common/shlibs | 1 + srcpkgs/libucontext-devel | 1 + srcpkgs/libucontext/template | 40 ++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 120000 srcpkgs/libucontext-devel create mode 100644 srcpkgs/libucontext/template diff --git a/common/shlibs b/common/shlibs index 60a754eec3..e21ca55a24 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2252,6 +2252,7 @@ libkookularGenerator_odt.so.16 calligra-extras-3.1.0_1 libkookularGenerator_odp.so.16 calligra-extras-3.1.0_1 libgemini.so.16 calligra-gemini-3.1.0_1 libfts.so.0 musl-fts-1.2_2 +libucontext.so.0 libucontext-0.1.1_1 libgavl.so.1 gavl-1.40_1 libmxml.so.1 mxml-2.9_1 libKF5Pty.so.5 kpty-5.26.0_1 diff --git a/srcpkgs/libucontext-devel b/srcpkgs/libucontext-devel new file mode 120000 index 0000000000..177d1f1694 --- /dev/null +++ b/srcpkgs/libucontext-devel @@ -0,0 +1 @@ +libucontext \ No newline at end of file diff --git a/srcpkgs/libucontext/template b/srcpkgs/libucontext/template new file mode 100644 index 0000000000..0d50c50062 --- /dev/null +++ b/srcpkgs/libucontext/template @@ -0,0 +1,40 @@ +# Template file for 'libucontext' +pkgname=libucontext +version=0.1.1 +revision=1 +short_desc="Compatibility layer providing ucontext functions" +maintainer="Peter Bui " +license="ISC" +homepage="http://github.com/kaniini/libucontext" +distfiles="https://distfiles.dereferenced.org/${pkgname}/${pkgname}-${version}.tar.xz" +only_for_archs="aarch64-musl armv6l-musl armv7l-musl i686-musl mips-musl mipshf-musl mipsel-musl mipselhf-musl x86_64-musl" +checksum=0dfe75b3f2d8e0b0b2901f0217bb4ab1baf319a1374a68c5242d776abb797e98 + +case "${XBPS_TARGET_MACHINE}" in +arm*) export LIBUCONTEXT_ARCH="arm";; +*) export LIBUCONTEXT_ARCH="${XBPS_TARGET_MACHINE%%-musl}";; +esac + +do_build() { + make ARCH="${LIBUCONTEXT_ARCH}" +} + +do_check() { + make ARCH="${LIBUCONTEXT_ARCH}" check +} + +do_install() { + make ARCH="${LIBUCONTEXT_ARCH}" DESTDIR="${DESTDIR}/usr" install +} + +post_install() { + vlicense LICENSE +} + +libucontext-devel_package() { + depends="libucontext>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove "usr/lib/*.so" + } +}