Split pkgs required by xbps-base-chroot, as it was made in Fedora.
- Added an additional shell func to add full (build/run), build or run time dependencies to packages. An optional third parameter can be used to specify other version than the one set in the depends file. - Use a "depends" file in package directory to specify minimum required ABI/API version for a package, so that there's no need to set the version all the time in pkgs. - Updated bash to 4.0. --HG-- extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
This commit is contained in:
35
templates/gcc/c++.template
Normal file
35
templates/gcc/c++.template
Normal file
@@ -0,0 +1,35 @@
|
||||
# Template file for 'gcc-c++'.
|
||||
#
|
||||
short_desc="GCC C++ support"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains GCC C++ support."
|
||||
|
||||
Add_dependency run gcc
|
||||
Add_dependency run gcc-libstdc++
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
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 ${origdir}/usr/bin/${f} ${destdir}/usr/bin
|
||||
done
|
||||
mv ${origdir}/usr/libexec/gcc/${triplet}/${version}/cc1plus \
|
||||
${destdir}/usr/libexec/gcc/${triplet}/${version}
|
||||
|
||||
mv ${origdir}/usr/share/man/man1/g++.1 ${destdir}/usr/share/man/man1
|
||||
}
|
||||
Reference in New Issue
Block a user