blob: 05ab221dd93d61c6bea9c5b665288b2ab37b9b60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="ldconfig for musl in Gentoo"
HOMEPAGE="http://dev.gentoo.org/~blueness"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
#KEYWORDS="~amd64"
KEYWORDS=""
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
pkg_preinst () {
use elibc_musl || die "This package only works on a musl system"
}
src_unpack () {
mkdir -p ${P}
cp "${FILESDIR}"/${P} ${P}/${PN}
}
src_install () {
into /
dosbin ${PN}
echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00musl
doenvd "${T}"/00musl || die
}
|