vp-build/srcpkgs/gcc/libssp-devel.template
Juan RP e330f85add gcc: move ssp devel stuff to libssp-devel subpkg.
--HG--
extra : convert_revision : cdcdcd1aa66827f66097a0563f552e973206154f
2009-12-08 08:32:04 +01:00

30 lines
751 B
Plaintext

# 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
}