summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan2018-04-29 21:20:32 +0800
committerTing-Wei Lan2018-04-29 21:20:32 +0800
commitc3078b7369f1040bced9add12ffbe4c5a4c50ed9 (patch)
treec32a2ca6c78392283c05d5e3c84f4247b32729e1
parentae7a5d52b1ed186b8edcdddfb88e7017b3fabf45 (diff)
downloadaur-c3078b7369f1040bced9add12ffbe4c5a4c50ed9.tar.gz
mingw-w64-libepoxy: Quote variables and avoid xargs
-rw-r--r--PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 47fdf759659..08c2dec152f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=mingw-w64-libepoxy
pkgver=1.5.0
pkgrel=1
pkgdesc="A library for handling OpenGL function pointer management for you (mingw-w64)"
-arch=(any)
+arch=('any')
url="https://github.com/anholt/libepoxy"
license=('MIT')
makedepends=(
@@ -14,18 +14,18 @@ makedepends=(
'xorg-util-macros')
depends=(
'mingw-w64-crt')
-options=(!strip !buildflags staticlibs)
+options=('!strip' '!buildflags' 'staticlibs')
source=("https://github.com/anholt/libepoxy/releases/download/${pkgver}/libepoxy-${pkgver}.tar.xz")
sha256sums=('4c94995398a6ebf691600dda2e9685a0cac261414175c2adf4645cdfab42a5d5')
-_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
build() {
cd "${srcdir}/libepoxy-${pkgver}"
- for _arch in ${_architectures}; do
+ for _arch in "${_architectures[@]}"; do
mkdir -p "build-${_arch}"
cd "build-${_arch}"
- ${_arch}-configure
+ "${_arch}-configure"
make
cd ..
done
@@ -33,12 +33,12 @@ build() {
package() {
cd "${srcdir}/libepoxy-${pkgver}"
- for _arch in ${_architectures}; do
+ for _arch in "${_architectures[@]}"; do
cd "build-${_arch}"
make DESTDIR="$pkgdir" install
- find "$pkgdir/usr/${_arch}" -name '*.exe' | xargs -rtL1 ${_arch}-strip
- find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtL1 ${_arch}-strip --strip-unneeded
- find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtL1 ${_arch}-strip -g
+ find "$pkgdir/usr/${_arch}" -name '*.exe' -exec "${_arch}-strip" '{}' ';'
+ find "$pkgdir/usr/${_arch}" -name '*.dll' -exec "${_arch}-strip" --strip-unneeded '{}' ';'
+ find "$pkgdir/usr/${_arch}" '(' -name '*.a' -o -name '*.dll' ')' -exec "${_arch}-strip" -g '{}' ';'
cd ..
done
}