2017-09-18 00:28:57 +02:00
|
|
|
# Template file for 'gcompat'
|
|
|
|
pkgname=gcompat
|
2017-10-15 17:18:06 +02:00
|
|
|
version=0.1.0
|
2017-09-18 00:28:57 +02:00
|
|
|
revision=1
|
|
|
|
build_style="gnu-makefile"
|
|
|
|
short_desc="Compatibility layer to allow running glibc binaries on musl systems"
|
|
|
|
maintainer="Daniel James <djames@orcadian.net>"
|
2017-10-15 17:18:06 +02:00
|
|
|
homepage="https://code.foxkit.us/adelie/gcompat"
|
2017-09-18 00:28:57 +02:00
|
|
|
license="ISC"
|
2017-10-15 17:18:06 +02:00
|
|
|
distfiles="https://distfiles.AdelieLinux.org/source/${pkgname}-${version}.tar.xz"
|
|
|
|
checksum="3093397f69dfee45b60e3b7ea02b26b625bfb57f9c1dbb5d6ceadda6f823578b"
|
2017-09-18 00:28:57 +02:00
|
|
|
|
|
|
|
# https://sourceware.org/glibc/wiki/ABIList
|
|
|
|
# https://wiki.linaro.org/RikuVoipio/LdSoTable
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
|
|
aarch64-musl) _glibc="ld-linux-aarch64.so.1" _musl="ld-musl-aarch64.so.1";;
|
|
|
|
armv5te-musl) _glibc="ld-linux.so.3" _musl="ld-musl-arm.so.1";;
|
|
|
|
armv5tel-musl) _glibc="ld-linux.so.3" _musl="ld-musl-arm.so.1";;
|
|
|
|
armv6hf-musl) _glibc="ld-linux-armhf.so.3" _musl="ld-musl-armhf.so.1";;
|
|
|
|
armv6l-musl) _glibc="ld-linux-armhf.so.3" _musl="ld-musl-armhf.so.1";;
|
|
|
|
armv7hf-musl) _glibc="ld-linux-armhf.so.3" _musl="ld-musl-armhf.so.1";;
|
|
|
|
armv7l-musl) _glibc="ld-linux-armhf.so.3" _musl="ld-musl-armhf.so.1";;
|
|
|
|
i686-musl) _glibc="ld-linux.so.2" _musl="ld-musl-x86.so.1";;
|
|
|
|
mips-musl) _glibc="ld.so.1" _musl="ld-musl-mips-sf.so.1";;
|
|
|
|
mipsel-musl) _glibc="ld.so.1" _musl="ld-musl-mipsel-sf.so.1";;
|
|
|
|
mipselhf-musl) _glibc="ld.so.1" _musl="ld-musl-mipsel.so.1";;
|
|
|
|
x86_64-musl) _glibc="ld-linux-x86-64.so.2" _musl="ld-musl-x86_64.so.1";;
|
2017-10-01 12:53:24 +02:00
|
|
|
*-musl) broken="Template does not yet recognize this arch, please fix";;
|
|
|
|
*) broken="Only for musl libc";;
|
2017-09-18 00:28:57 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
make_build_args="LINKER_PATH=/usr/lib/${_musl} LOADER_NAME=${_glibc}
|
|
|
|
LIBGCOMPAT_PATH=/usr/lib/libgcompat.so.0 LOADER_PATH=/usr/lib/${LOADER_NAME}"
|
|
|
|
make_install_args="LINKER_PATH=/usr/lib/${_musl} LOADER_NAME=${_glibc}
|
|
|
|
LIBGCOMPAT_PATH=/usr/lib/libgcompat.so.0 LOADER_PATH=/usr/lib/${LOADER_NAME}"
|
|
|
|
|
|
|
|
post_install() {
|
2017-10-15 17:18:06 +02:00
|
|
|
vlicense LICENSE
|
2017-09-18 00:28:57 +02:00
|
|
|
}
|