84222395b8
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version), SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR (XBPS_TEMPLATESDIR/pkgname/files). This simplifies packages that used them. --HG-- extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
34 lines
854 B
Text
34 lines
854 B
Text
# Template file for 'gcc-c++'.
|
|
#
|
|
short_desc="GCC C++ support"
|
|
long_desc="${long_desc}
|
|
|
|
This package contains GCC C++ support."
|
|
|
|
Add_dependency run gcc ${version}
|
|
Add_dependency run gcc-libstdc++ ${version}
|
|
|
|
do_install()
|
|
{
|
|
local triplet=
|
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
triplet="${xbps_machine}-unknown-linux-gnu"
|
|
else
|
|
triplet="${xbps_machine}-pc-linux-gnu"
|
|
fi
|
|
|
|
mkdir -p ${DESTDIR}/usr/lib
|
|
mkdir -p ${DESTDIR}/usr/bin
|
|
mkdir -p ${DESTDIR}/usr/share/man/man1
|
|
mkdir -p ${DESTDIR}/usr/libexec/gcc/${triplet}/${version}
|
|
|
|
for f in g++ c++ ${triplet}-g++ ${triplet}-c++; do
|
|
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin
|
|
done
|
|
mv ${SRCPKGDESTDIR}/usr/libexec/gcc/${triplet}/${version}/cc1plus \
|
|
${DESTDIR}/usr/libexec/gcc/${triplet}/${version}
|
|
|
|
mv ${SRCPKGDESTDIR}/usr/share/man/man1/g++.1 \
|
|
${DESTDIR}/usr/share/man/man1
|
|
}
|