Diff libopenaptx-0.2.1-r1 with a libopenaptx-9999

/usr/portage/media-libs/libopenaptx/libopenaptx-9999.ebuild 2023-10-09 14:52:31.688368406 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit flag-o-matic multilib-minimal toolchain-funcs
6
inherit flag-o-matic toolchain-funcs
7 7

  
8 8
DESCRIPTION="Reverse-engineered aptX and aptX HD library"
9 9
HOMEPAGE="https://github.com/pali/libopenaptx"
......
13 13
	EGIT_REPO_URI="https://github.com/pali/${PN}"
14 14
else
15 15
	SRC_URI="https://github.com/pali/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16
	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
16
	KEYWORDS="~amd64"
17 17
fi
18 18

  
19
LICENSE="GPL-3+"
19
LICENSE="LGPL-2.1+"
20 20
SLOT="0"
21 21

  
22 22
IUSE="cpu_flags_x86_avx2"
23 23

  
24
src_prepare() {
25
	default
26

  
27
	# custom Makefiles
28
	multilib_copy_sources
29
}
30

  
31
multilib_src_compile() {
24
src_compile() {
32 25
	tc-export CC AR
33 26

  
34 27
	use cpu_flags_x86_avx2 && append-cflags "-mavx2"
......
42 35
		all
43 36
}
44 37

  
45
multilib_src_install() {
38
src_install() {
46 39
	emake \
47 40
		PREFIX="${EPREFIX}"/usr \
48 41
		DESTDIR="${D}" \
......
52 45
		ARFLAGS="${ARFLAGS} -rcs" \
53 46
		install
54 47

  
55
	find "${ED}" -name '*.a' -delete || die
48
	rm -f "${ED}/usr/$(get_libdir)"/libopenaptx.a || die "Failed to remove static lib"
56 49
}
Thank you!