1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 PATCHELF_P
="${PATCHELF_PN}-${PATCHELF_PV}"
12 DESCRIPTION
="patchelf patched for building libLoL only"
13 HOMEPAGE
="https://github.com/NixOS/patchelf https://liblol.aosc.io"
14 SRC_URI
="https://github.com/NixOS/${PATCHELF_PN}/archive/${PATCHELF_PV}.tar.gz -> ${PATCHELF_P}.tar.gz"
15 S
="${WORKDIR}/${PATCHELF_P}"
19 KEYWORDS
="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~riscv-linux ~x86-linux"
22 # "${FILESDIR}"/${PATCHELF_PN}-glibc-dt-mips-xhash.patch # conflicts with liblol
23 "${FILESDIR}"/${PATCHELF_PN}-0.18
.0-alpha.
patch
24 "${FILESDIR}"/${PATCHELF_P}-liblol-${PV}.patch
28 # rm src/elf.h || die # this file is touched by the liblol patch
40 --program-suffix=-liblol
42 econf "${myeconfargs[@]}"
48 # prevent collision with the vanilla patchelf
49 rm -rf "${D}/usr
/share
/zsh
"