void-packages/srcpkgs/postgresql/postgresql-libs-devel.template
Juan RP 888834d9c5 Added postgresql-8.4.2 build template.
--HG--
extra : convert_revision : bc2fb198b40e73611b230fdd576883f7cb1c0a06
2010-03-02 06:01:46 +01:00

30 lines
973 B
Text

# Template file for 'postgresql-libs-devel'.
#
short_desc="PostgreSQL shared libraries (development files)"
long_desc="${long_desc}
This package provides the development files required to build any
PostgreSQL application."
Add_dependency run glibc
Add_dependency run postgresql-libs
do_install()
{
mkdir -p ${DESTDIR}/usr/lib/postgresql ${DESTDIR}/usr/bin \
${DESTDIR}/usr/share/man/man1
for f in pg_config ecpg; do
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/share/man/man1/${f}* \
${DESTDIR}/usr/share/man/man1
done
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.{a,so} ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/postgresql/pgxs \
${DESTDIR}/usr/lib/postgresql
for d in $(find ${SRCPKGDESTDIR}/usr/share/locale \
-type f -name pg_config\* -o -name ecpg\*); do
mkdir -p ${DESTDIR}/$(dirname ${d#${SRCPKGDESTDIR}})
mv ${d} ${DESTDIR}/$(dirname ${d#${SRCPKGDESTDIR}})
done
}