void-packages/srcpkgs/gcc/libssp-devel.template

30 lines
751 B
Text
Raw Normal View History

# Template file for 'libssp'.
#
short_desc="GCC SSP library support"
long_desc="${long_desc}
This package contains the Stack Smashing Protection development
files provided by GCC."
Add_dependency run glibc-devel
Add_dependency run libssp
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/gcc/${triplet}/${version}/include
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libssp*.a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libssp.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/gcc/${triplet}/${version}/include/ssp \
${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include
}