blob: 0d83ca783e5b2b2b4e85eb8f9db7b2b30146493c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: lantw44 at gmail dot com
pkgname=mingw-w64-adwaita-icon-theme
pkgver=46.0
pkgrel=1
pkgdesc="Adwaita icon theme (mingw-w64)"
arch=('any')
url="https://www.gnome.org"
license=('LGPL3')
makedepends=(
'mingw-w64-meson'
'gtk3'
'librsvg')
depends=('mingw-w64-hicolor-icon-theme')
options=('!strip' '!buildflags' 'staticlibs')
source=("https://download.gnome.org/sources/adwaita-icon-theme/${pkgver%%.*}/adwaita-icon-theme-${pkgver}.tar.xz")
sha256sums=('4bcb539bd75d64da385d6fa08cbaa9ddeaceb6ac8e82b85ba6c41117bf5ba64e')
_architectures=('i686-w64-mingw32' 'x86_64-w64-mingw32')
build() {
cd "${srcdir}/adwaita-icon-theme-${pkgver}"
for _arch in "${_architectures[@]}"; do
mkdir -p "build-${_arch}"
cd "build-${_arch}"
"${_arch}-meson"
ninja
cd ..
done
}
package() {
cd "${srcdir}/adwaita-icon-theme-${pkgver}"
for _arch in "${_architectures[@]}"; do
cd "build-${_arch}"
DESTDIR="${pkgdir}" ninja install
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
}
|