New package: postgresql15-libs-devel-15.4

This commit is contained in:
Piotr Wójcik 2023-11-10 08:20:04 +01:00 committed by Chocimier
parent 87192164d2
commit 9f92a896b3
2 changed files with 8 additions and 12 deletions

View File

@ -0,0 +1 @@
postgresql15

View File

@ -109,25 +109,20 @@ postgresql15-doc_package() {
}
}
postgresql-libs_package() {
short_desc="PostgreSQL shared libraries"
conflicts="postgresql9.6-libs>=0 postgresql12-libs>=0 postgresql13-libs>=0 postgresql14-libs>=0"
postgresql15-libs-devel_package() {
depends="postgresql-libs>=${version}_${revision} openssl-devel"
short_desc="PostgreSQL shared libraries (development files)"
conflicts="postgresql9.6-libs-devel>=0 postgresql12-libs-devel>=0 postgresql13-libs-devel>=0 postgresql14-libs-devel>=0"
pkg_install() {
# postgresql-libs
vmove "${_prefix}/lib/*.so*"
for d in $(find ${DESTDIR}/${_prefix}/share/locale \
-type f -name libpq5\*); do
mkdir -p ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
mv ${d} ${PKGDESTDIR}/$(dirname ${d#${DESTDIR}})
done
mv ${PKGDESTDIR}/${_prefix}/lib/* ${PKGDESTDIR}/usr/lib
}
}
postgresql-libs-devel_package() {
depends="postgresql-libs>=${version}_${revision} openssl-devel"
short_desc="PostgreSQL shared libraries (development files)"
conflicts="postgresql9.6-libs-devel>=0 postgresql12-libs-devel>=0 postgresql13-libs-devel>=0 postgresql14-libs-devel>=0"
pkg_install() {
rm -r "${PKGDESTDIR}/${_prefix}"
# postgresql-libs-devel
vmkdir usr/bin
vmkdir usr/lib
for f in pg_config ecpg; do