diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-25 06:16:32 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-25 06:16:32 -0600 |
commit | 754b3fc000a30529e63362a7b4921bf697468232 (patch) | |
tree | 0f72607e29a7e741e06127df2507482e5a33e32d /user/postgresql/APKBUILD | |
parent | 5fa1a959ce020d9e72d9232fe9205b274cac086d (diff) | |
download | packages-754b3fc000a30529e63362a7b4921bf697468232.tar.gz packages-754b3fc000a30529e63362a7b4921bf697468232.tar.bz2 packages-754b3fc000a30529e63362a7b4921bf697468232.tar.xz packages-754b3fc000a30529e63362a7b4921bf697468232.zip |
user/*: Fix metadata
Diffstat (limited to 'user/postgresql/APKBUILD')
-rw-r--r-- | user/postgresql/APKBUILD | 10 |
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 |