diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2014-11-19 16:55:07 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2014-11-19 16:55:44 +0800 |
commit | a7bdfa752b6f0325e62a88a5ec7a76766a1b034c (patch) | |
tree | 2a9a48ea3701e36941804164336e0b69eda2ba3d /mingw-w64-gtk3 | |
parent | 9445b167ee7cb4066ffeafd2fa5a0a23e690f63d (diff) | |
download | AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.tar AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.tar.gz AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.tar.bz2 AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.tar.lz AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.tar.xz AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.tar.zst AUR-PKGBUILD-a7bdfa752b6f0325e62a88a5ec7a76766a1b034c.zip |
mingw-w64-{gdk-pixbuf2,gtk2,gtk3}: Use mingw-w64-configure
Diffstat (limited to 'mingw-w64-gtk3')
-rw-r--r-- | mingw-w64-gtk3/PKGBUILD | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/mingw-w64-gtk3/PKGBUILD b/mingw-w64-gtk3/PKGBUILD index 35e0821..73d4b22 100644 --- a/mingw-w64-gtk3/PKGBUILD +++ b/mingw-w64-gtk3/PKGBUILD @@ -3,26 +3,30 @@ pkgname=mingw-w64-gtk3 pkgver=3.14.5 pkgrel=1 -pkgdesc="GObject-based multi-platform GUI toolkit (v3) (mingw-w64)" +pkgdesc='GObject-based multi-platform GUI toolkit (v3) (mingw-w64)' arch=(any) -url="http://www.gtk.org" -license=("LGPL") -makedepends=(mingw-w64-gcc mingw-w64-pkg-config gtk-update-icon-cache python2) -# python2 is required to run gdbus-codegen +url='http://www.gtk.org' +license=('LGPL') +makedepends=( + 'mingw-w64-gcc' + 'mingw-w64-pkg-config' + 'mingw-w64-configure' + 'gtk-update-icon-cache' + 'python2') # python2 is required to run gdbus-codegen depends=( -'mingw-w64-crt' -'mingw-w64-atk>=2.12.0' -'mingw-w64-pango>=1.36.7' -'mingw-w64-glib2>=2.41.2' -'mingw-w64-cairo>=1.12.0' -'mingw-w64-gdk-pixbuf2>=2.30.0') + 'mingw-w64-crt' + 'mingw-w64-atk>=2.12.0' + 'mingw-w64-pango>=1.36.7' + 'mingw-w64-glib2>=2.41.2' + 'mingw-w64-cairo>=1.12.0' + 'mingw-w64-gdk-pixbuf2>=2.30.0') options=(!strip !buildflags staticlibs) source=( -"http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar.xz" -"0005-Remove-gobject-introspection.patch" -"gtk3-bug-731013-fix-cross-compilation.patch" -"window-GtkPlug-is-conditionally-supported-on-X11-o.patch") + "http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar.xz" + "0005-Remove-gobject-introspection.patch" + "gtk3-bug-731013-fix-cross-compilation.patch" + "window-GtkPlug-is-conditionally-supported-on-X11-o.patch") # The third patch is downloaded from Fedora Project # The fourth patch: https://bugzilla.gnome.org/show_bug.cgi?id=739885 @@ -42,34 +46,30 @@ build() { autoreconf -i for _arch in ${_architectures}; do unset LDFLAGS - export CFLAGS="-O2 -mms-bitfields" - export CXXFLAGS="${CFLAGS}" export PKG_CONFIG="${_arch}-pkg-config" export PKG_CONFIG_FOR_BUILD="pkg-config" - mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" - cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" + mkdir -p "build-${_arch}" + cd "build-${_arch}" msg "Starting configure and make" - ${srcdir}/gtk+-${pkgver}/configure \ - --prefix=/usr/${_arch} \ - --build=$CHOST \ - --host=${_arch} \ + ${_arch}-configure \ --enable-win32-backend \ --enable-gtk2-dependency \ - --enable-static \ - --enable-shared \ --disable-cups make + cd .. done } package() { + cd "${srcdir}/gtk+-${pkgver}" for _arch in ${_architectures}; do - cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" + cd "build-${_arch}" make -j1 DESTDIR="$pkgdir" install find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' -o -name '*.manifest' | xargs -rtl1 rm find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip -x find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g rm -r "$pkgdir/usr/${_arch}/etc" rm -r "$pkgdir/usr/${_arch}/share/man" + cd .. done } |