aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-04-28 13:06:50 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-04-28 13:06:50 +0000
commit6796daef5b5801c2dcc028f6ffed48cc83195793 (patch)
tree605c5b990b12618ee31753510eb607eb954659aa
parentede807a3502d571e0e6257ae8e6be609eba5c2f1 (diff)
downloadaports-6796daef5b5801c2dcc028f6ffed48cc83195793.tar.bz2
aports-6796daef5b5801c2dcc028f6ffed48cc83195793.tar.xz
main/postgresql: include header files in libpq
-rw-r--r--main/postgresql/APKBUILD24
1 files changed, 21 insertions, 3 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD
index ef98b3053d..d4552e365b 100644
--- a/main/postgresql/APKBUILD
+++ b/main/postgresql/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql
pkgver=9.4.1
-pkgrel=0
+pkgrel=1
pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/"
arch="all"
@@ -10,7 +10,7 @@ depends="postgresql-client"
install="$pkgname.pre-upgrade"
depends_dev="readline-dev openssl-dev zlib-dev libxml2-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"
patches="initdb.patch"
source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
@@ -68,8 +68,26 @@ package() {
libpq() {
depends=
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/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() {