2010-03-02 06:01:46 +01:00
|
|
|
# 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."
|
|
|
|
|
2010-04-22 15:05:57 +02:00
|
|
|
revision=1
|
|
|
|
|
2010-03-02 06:01:46 +01:00
|
|
|
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
|
2010-04-22 15:05:57 +02:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib
|
2010-03-02 06:01:46 +01:00
|
|
|
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
|
|
|
|
}
|