aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-26 09:22:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-26 09:22:43 +0000
commitf9dec81910fb7c8da1d791229da40a7f5967f893 (patch)
tree2660007e2fca3955eae3715adeb9f58efa2213f0 /main/postgresql/APKBUILD
parentafacba455c92b054a51e28c2490629cbe1bb5f9d (diff)
downloadaports-f9dec81910fb7c8da1d791229da40a7f5967f893.tar.bz2
aports-f9dec81910fb7c8da1d791229da40a7f5967f893.tar.xz
main/postgresql: reduce dependencies for -dev
packages needing postgresql-dev will normally only need the libpq client libs. We avoid pull in the entire server package by splitting out -libs. fixes #3642
Diffstat (limited to 'main/postgresql/APKBUILD')
-rw-r--r--main/postgresql/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD
index efa472c94d..80e8999b51 100644
--- a/main/postgresql/APKBUILD
+++ b/main/postgresql/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql
pkgver=9.5.2
-pkgrel=3
+pkgrel=4
pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/"
arch="all"
@@ -13,7 +13,7 @@ pkggroups="postgres"
depends_dev="openssl-dev"
makedepends="$depends_dev libedit-dev zlib-dev libxml2-dev util-linux-dev
openldap-dev"
-subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client
+subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-libs $pkgname-client
$pkgname-contrib"
patches="initdb.patch"
source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
@@ -78,7 +78,12 @@ libpq() {
depends=
pkgdesc="PostgreSQL libraries"
mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/libpq.so* "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libpq.so.* "$subpkgdir"/usr/lib/
+}
+
+libs() {
+ depends=
+ default_libs
}
client() {