Commit 6796daef authored by Francesco Colista's avatar Francesco Colista
Browse files

main/postgresql: include header files in libpq

parent ede807a3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql pkgname=postgresql
pkgver=9.4.1 pkgver=9.4.1
pkgrel=0 pkgrel=1
pkgdesc="A sophisticated object-relational DBMS" pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/" url="http://www.postgresql.org/"
arch="all" arch="all"
...@@ -10,7 +10,7 @@ depends="postgresql-client" ...@@ -10,7 +10,7 @@ depends="postgresql-client"
install="$pkgname.pre-upgrade" install="$pkgname.pre-upgrade"
depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev" depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev"
makedepends="$depends_dev" makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg libpq $pkgname-client subpackages="libpq $pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-client
$pkgname-contrib" $pkgname-contrib"
patches="initdb.patch" patches="initdb.patch"
source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2 source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
...@@ -68,8 +68,26 @@ package() { ...@@ -68,8 +68,26 @@ package() {
libpq() { libpq() {
depends= depends=
pkgdesc="PostgreSQL libraries" pkgdesc="PostgreSQL libraries"
mkdir -p "$subpkgdir"/usr/lib mkdir -p "$subpkgdir"/usr/bin
mkdir -p "$subpkgdir"/usr/lib/pkgconfig
mkdir -p "$subpkgdir"/usr/include/postgresql
mv "$pkgdir"/usr/bin/pg_config "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/include/libpq-events.h "$subpkgdir"/usr/include
mv "$pkgdir"/usr/include/libpq-fe.h "$subpkgdir"/usr/include
mv "$pkgdir"/usr/include/postgresql/internal "$subpkgdir"/usr/include/postgresql/
mv "$pkgdir"/usr/include/libpq-events.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/include/libpq-fe.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/include/libpq "$subpkgdir"/usr/include/
mv "$pkgdir"/usr//include/pg_config.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/include/pg_config_ext.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/include/pg_config_manual.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/include/pg_config_os.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/include/postgres_ext.h "$subpkgdir"/usr/include/
mv "$pkgdir"/usr/lib/libpq.a "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libpq.so* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libpq.so* "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libpqcommon.a "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libpqport.a "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/pkgconfig/libpq.pc "$subpkgdir"/usr/lib/pkgconfig/
} }
client() { client() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment