From 810850c2046ba42ddf85685db51da315a72f0375 Mon Sep 17 00:00:00 2001
From: Duncan Bellamy <dunk@denkimushi.com>
Date: Wed, 10 Nov 2021 09:12:22 +0000
Subject: [PATCH] community/sphinx: rebuild against libstemmer 2.2.0

* fix linter warning
---
 community/sphinx/APKBUILD | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/community/sphinx/APKBUILD b/community/sphinx/APKBUILD
index 2d7af1ddcbb0..6012be8083ac 100644
--- a/community/sphinx/APKBUILD
+++ b/community/sphinx/APKBUILD
@@ -3,7 +3,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=sphinx
 pkgver=2.2.11
-pkgrel=5
+pkgrel=6
 pkgdesc="Free open-source SQL full-text search engine"
 url="http://www.sphinxsearch.com"
 arch="all"
@@ -58,9 +58,8 @@ php() {
 	pkgdesc="PHP api for sphinx search engine"
 
 	mkdir -p "$subpkgdir"/usr/share/php/$pkgname/api
-	for i in $(ls $builddir/api/*.php); do
-		mv $i "$subpkgdir"/usr/share/php/$pkgname/api ;
-	done
+	find $builddir/api/ -type f -maxdepth 1 -name "*.php" \
+		-exec mv {} "$subpkgdir"/usr/share/php/$pkgname/api/ \;
 }
 
 
-- 
GitLab