blob: 6b6602b3efc2e8e348922605d93e898e4bad6f21 (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_name="dbus-glib"
pkgname="mingw-w64-${_name}"
pkgver=0.112
pkgrel=1
pkgdesc="GLib bindings for D-Bus (deprecated) (mingw-w64)"
arch=('any')
url="https://www.freedesktop.org/wiki/Software/dbus"
_url="https://gitlab.freedesktop.org/dbus/${_name}"
license=('AFL-2.1 OR GPL-2.0-or-later')
depends=('mingw-w64-crt' 'mingw-w64-dbus' 'mingw-w64-expat' 'mingw-w64-glib2')
makedepends=('dbus-glib' 'git' 'glib2-devel' 'gtk-doc' 'mingw-w64-configure')
options=('!strip' '!buildflags' 'staticlibs')
_pkgsrc="${_name}-${pkgver}"
source=("${_pkgsrc}::git+${_url}.git?signed#tag=${_pkgsrc}")
sha256sums=('00d56564489516f1cb4a9d0cbaff88e38321fae6c08ecc8858cefe012e312d41')
validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90') # Simon McVittie
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/${_pkgsrc}"
./autogen.sh \
--no-configure
}
build() {
cd "${srcdir}/${_pkgsrc}"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure .. \
--disable-bash-completion \
--disable-checks \
--disable-gtk-doc \
--with-dbus-binding-tool='/usr/bin/dbus-binding-tool' # https://bugs.gentoo.org/346353
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/${_pkgsrc}/build-${_arch}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/${_arch}/"{'etc','libexec','share'}
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 '{}' ';'
done
}
# vim: ts=2 sw=2 et:
|