New package: libucontext-0.1.1

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-04-07 12:43:16 +02:00
parent a51c539d5b
commit ae0d5d318d
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
3 changed files with 42 additions and 0 deletions

View File

@ -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

1
srcpkgs/libucontext-devel Symbolic link
View File

@ -0,0 +1 @@
libucontext

View File

@ -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 <pbui@github.bx612.space>"
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"
}
}