diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-05-13 12:24:59 +0300 |
---|---|---|
committer | Shiz <hi@shiz.me> | 2017-05-13 17:53:48 +0200 |
commit | c1c443b4397fea38f067dc6e5e71e61f91bb9a9c (patch) | |
tree | c6cc2b78aadbbc401f25c537cc43ae2f0e752134 | |
parent | 988a01e90a72c323c916aafefa6876411117a660 (diff) | |
download | aports-c1c443b4397fea38f067dc6e5e71e61f91bb9a9c.tar.bz2 aports-c1c443b4397fea38f067dc6e5e71e61f91bb9a9c.tar.xz |
community/php7: fix _php_default checks
-rw-r--r-- | community/php7/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/php7/APKBUILD b/community/php7/APKBUILD index 0e29fd9a2b..75b5b675e1 100644 --- a/community/php7/APKBUILD +++ b/community/php7/APKBUILD @@ -386,8 +386,9 @@ package() { find "$pkgdir" -name '.*' | xargs rm -rf rmdir "$pkgdir"/var/run - [ "$_default_php" = yes ] \ - && ln -s php$_suffix "$pkgdir"/usr/bin/php + if [ "$_default_php" = yes ]; then + ln -s php$_suffix "$pkgdir"/usr/bin/php + fi } dev() { @@ -436,8 +437,9 @@ phpdbg() { install -Dm755 "$builddir"/sapi/phpdbg/phpdbg \ "$subpkgdir"/usr/bin/phpdbg$_suffix - [ "$_default_php" = yes ] \ - && ln -s phpdbg$_suffix "$subpkgdir"/usr/bin/phpdbg + if [ "$_default_php" = yes ]; then + ln -s phpdbg$_suffix "$subpkgdir"/usr/bin/phpdbg + fi } embed() { @@ -452,8 +454,9 @@ litespeed() { mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/lsphp "$subpkgdir"/usr/bin/lsphp$_suffix - [ "$_default_php" = yes ] \ - && ln -s lsphp$_suffix "$subpkgdir"/usr/bin/lsphp + if [ "$_default_php" = yes ]; then + ln -s lsphp$_suffix "$subpkgdir"/usr/bin/lsphp + fi } cgi() { @@ -461,8 +464,9 @@ cgi() { _mv "$pkgdir"/usr/bin/php-cgi$_suffix "$subpkgdir"/usr/bin/ - [ "$_default_php" = yes ] \ - && ln -s php-cgi$_suffix "$subpkgdir"/usr/bin/php-cgi + if [ "$_default_php" = yes ]; then + ln -s php-cgi$_suffix "$subpkgdir"/usr/bin/php-cgi + fi } fpm() { @@ -502,8 +506,9 @@ pear() { mkdir -p "$subpkgdir"/usr/bin local file; for file in pecl pear peardev; do mv usr/bin/$file "$subpkgdir"/usr/bin/$file$_suffix - [ "$_default_php" = yes ] \ - && ln -s $file$_suffix "$subpkgdir"/usr/bin/$file + if [ "$_default_php" = yes ]; then + ln -s $file$_suffix "$subpkgdir"/usr/bin/$file + fi done _mv etc/$pkgname/pear.conf "$subpkgdir"/etc/$pkgname/ |