blob: 34e432b3c337e8c724ca67982856438fbade8f86 (
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
43
44
45
46
47
48
49
50
51
52
53
|
pkgname=mingw-w64-gdk-pixbuf2
pkgver=2.36.8
pkgrel=1
pkgdesc='An image loading library (mingw-w64)'
arch=(any)
url='http://www.gtk.org'
license=('LGPL')
makedepends=(
'mingw-w64-gcc'
'mingw-w64-pkg-config'
'mingw-w64-configure')
depends=(
'mingw-w64-crt'
'mingw-w64-glib2>=2.37.6'
'mingw-w64-jasper'
'mingw-w64-libpng'
'mingw-w64-libjpeg-turbo'
'mingw-w64-libtiff')
options=(!strip !buildflags staticlibs)
source=(
"https://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz")
sha256sums=('5d68e5283cdc0bf9bda99c3e6a1d52ad07a03364fa186b6c26cfc86fcd396a19')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/gdk-pixbuf-${pkgver}"
for _arch in ${_architectures}; do
mkdir -p "build-${_arch}"
cd "build-${_arch}"
${_arch}-configure \
--enable-relocations \
--with-included-loaders \
--with-libjasper
# We don't build dynamic modules, so we can use an empty file here.
touch gdk-pixbuf/loaders.cache
make
cd ..
done
}
package() {
cd "${srcdir}/gdk-pixbuf-${pkgver}"
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
rm -r "$pkgdir/usr/${_arch}/share/man"
cd ..
done
}
|