mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
parent
027b8e56fd
commit
c6a5e4d5c8
1 changed files with 5 additions and 33 deletions
|
@ -1,46 +1,18 @@
|
||||||
# Template file for 'libucontext'
|
# Template file for 'libucontext'
|
||||||
pkgname=libucontext
|
pkgname=libucontext
|
||||||
version=1.2
|
version=1.3.2
|
||||||
revision=1
|
revision=1
|
||||||
archs="*-musl"
|
archs="*-musl"
|
||||||
|
build_style=meson
|
||||||
|
configure_args="-Ddocs=true"
|
||||||
|
hostmakedepends="pkg-config scdoc"
|
||||||
short_desc="Compatibility layer providing ucontext functions"
|
short_desc="Compatibility layer providing ucontext functions"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
homepage="https://github.com/kaniini/libucontext"
|
homepage="https://github.com/kaniini/libucontext"
|
||||||
changelog="https://raw.githubusercontent.com/kaniini/libucontext/master/NEWS"
|
changelog="https://raw.githubusercontent.com/kaniini/libucontext/master/NEWS"
|
||||||
distfiles="https://github.com/kaniini/libucontext/archive/refs/tags/libucontext-${version}.tar.gz"
|
distfiles="https://github.com/kaniini/libucontext/archive/refs/tags/libucontext-${version}.tar.gz"
|
||||||
checksum=937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3
|
checksum=4faf1838a15d61efe27ddac24fded2c290929eb3a1fefc72f952ae96d5bda006
|
||||||
|
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
|
||||||
x86_64*) _luctx_arch="x86_64" ;;
|
|
||||||
i686*) _luctx_arch="x86" ;;
|
|
||||||
aarch64*) _luctx_arch="aarch64" ;;
|
|
||||||
arm*) _luctx_arch="arm" ;;
|
|
||||||
ppc64*) _luctx_arch="ppc64" ;;
|
|
||||||
ppc*) _luctx_arch="ppc" ;;
|
|
||||||
mips*64*) _luctx_arch="mips64" ;;
|
|
||||||
mips*) _luctx_arch="mips" ;;
|
|
||||||
riscv64*) _luctx_arch="riscv64" ;;
|
|
||||||
s390x*) _luctx_arch="s390x" ;;
|
|
||||||
*) broken="libucontext not available for ${XBPS_TARGET_MACHINE}";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# we provide our own CFLAGS, which overwrite all of theirs
|
|
||||||
export CFLAGS=" -DEXPORT_UNPREFIXED"
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make ARCH="${_luctx_arch}" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
|
||||||
}
|
|
||||||
|
|
||||||
do_check() {
|
|
||||||
make ARCH="${_luctx_arch}" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" check
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make ARCH="${_luctx_arch}" DESTDIR="${DESTDIR}" LIBDIR="/usr/lib" install
|
|
||||||
# missing from release?
|
|
||||||
ln -s libucontext_posix.so.1 ${DESTDIR}/usr/lib/libucontext_posix.so
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Reference in a new issue