summaryrefslogtreecommitdiff
path: root/user/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'user/postgresql')
-rw-r--r--user/postgresql/APKBUILD10
1 files changed, 2 insertions, 8 deletions
diff --git a/user/postgresql/APKBUILD b/user/postgresql/APKBUILD
index fef7c4ef2..975cd7e7f 100644
--- a/user/postgresql/APKBUILD
+++ b/user/postgresql/APKBUILD
@@ -62,9 +62,8 @@ source="https://ftp.postgresql.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
prepare() {
default_prepare
- cd "$builddir"
- local file; for file in $pkgname.initd $pkgname.confd; do
+ for file in $pkgname.initd $pkgname.confd; do
sed "s|@VERSION@|${pkgver%.*}|" "$srcdir"/$file > $file
done
}
@@ -93,16 +92,12 @@ build() {
}
check() {
- cd "$builddir"
-
_run_tests src/test
_run_tests src/pl
_run_tests contrib
}
package() {
- cd "$builddir"
-
make DESTDIR="$pkgdir" install install-docs
cd "$pkgdir"
@@ -167,7 +162,6 @@ contrib() {
depends=""
cd "$builddir"
-
# Avoid installing plperl and plpython extensions, these will be
# installed into separate subpackages.
sed -Ei -e 's/(.*_plperl)/#\1/' \
@@ -250,7 +244,7 @@ _run_tests() {
}
_submv() {
- local path; for path in "$@"; do
+ for path in "$@"; do
mkdir -p "$subpkgdir/${path%/*}"
mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/
done