diff options
author | Ting-Wei Lan | 2018-04-29 21:20:32 +0800 |
---|---|---|
committer | Ting-Wei Lan | 2018-04-29 21:20:32 +0800 |
commit | 49ff59261634e7998e0cd18ed8672d47461b67ed (patch) | |
tree | d11b972834f0a766efb511bfca795645da292a60 | |
parent | 138b823fdaee9bf6845206caaa932bbccd89e0ef (diff) | |
download | aur-49ff59261634e7998e0cd18ed8672d47461b67ed.tar.gz |
mingw-w64-{gdk-pixbuf2,gtk{2,3}}: Quote variables and avoid xargs
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -2,7 +2,7 @@ pkgname=mingw-w64-gtk2 pkgver=2.24.32 pkgrel=1 pkgdesc="GObject-based multi-platform GUI toolkit (legacy) (mingw-w64)" -arch=(any) +arch=('any') url="http://www.gtk.org" license=("LGPL") makedepends=( @@ -18,21 +18,21 @@ depends=( 'mingw-w64-glib2>=2.28.0' 'mingw-w64-cairo>=1.6' 'mingw-w64-gdk-pixbuf2>=2.21.0') -options=(!strip !buildflags staticlibs) +options=('!strip' '!buildflags' 'staticlibs') source=("https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar.xz") sha256sums=("b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e") -_architectures="i686-w64-mingw32 x86_64-w64-mingw32" +_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32') build() { cd "${srcdir}/gtk+-${pkgver}" - for _arch in ${_architectures}; do + for _arch in "${_architectures[@]}"; do msg "Building for ${_arch}" rm "${srcdir}/gtk+-${pkgver}/gtk/gtk.def" mkdir -p "build-${_arch}" cd "build-${_arch}" msg "Starting configure and make" - ${_arch}-configure \ + "${_arch}-configure" \ --with-gdktarget=win32 \ --disable-modules \ --disable-cups \ @@ -45,12 +45,12 @@ build() { package() { cd "${srcdir}/gtk+-${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 '{}' ';' rm "$pkgdir/usr/${_arch}/bin/gtk-update-icon-cache.exe" rm "$pkgdir/usr/${_arch}/lib/"*.def rm -r "$pkgdir/usr/${_arch}/etc" |