blob: 2e2c028b1c89fccf07d21ac65ecb90442f45681c (
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
54
55
56
57
58
59
|
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
pkgname=mingw-w64-libassuan
pkgver=2.5.6
pkgrel=1
pkgdesc="IPC library used by some GnuPG related software (mingw-w64)"
arch=('any')
url="http://www.gnupg.org/related_software/libassuan/"
license=('GPL')
makedepends=('mingw-w64-configure')
depends=('mingw-w64-libgpg-error')
options=('!strip' '!buildflags' 'staticlibs')
source=("https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${pkgver}.tar.bz2"
"0001-fix-def-files.mingw.patch"
"0002-enable-silent-rules.mingw.patch"
"0004-enable-gnu.mingw.patch"
"0005-better-check-for-stpcpy.mingw.patch")
sha256sums=('e9fd27218d5394904e4e39788f9b1742711c3e6b41689a31aa3380bd5aa4f426'
'b74089b88544da56bf4e6589516264b30757b9393fb8bdd916ff7c03cbba6e19'
'14a46889fc0a9d3d8c0426983e9a467da46d95dfd77156fc343de8c598504d05'
'4e2f030dbfd0d1069a1d1015ac725509f1a8ac136ff83453d7a9ce31103e8263'
'f907e774b3a065b66e4bdfa67000e6bc30a9e49184b1260b64def03914eba56f')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/libassuan-${pkgver}"
patch -p1 -i ${srcdir}/0001-fix-def-files.mingw.patch
patch -p1 -i ${srcdir}/0002-enable-silent-rules.mingw.patch
patch -p1 -i ${srcdir}/0004-enable-gnu.mingw.patch
patch -p1 -i ${srcdir}/0005-better-check-for-stpcpy.mingw.patch
autoreconf -fi
}
build() {
cd "${srcdir}/libassuan-${pkgver}"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
if [ ${_arch} = "x86_64-w64-mingw32" ]; then
CFLAGS+=" -DHAVE_DOSISH_SYSTEM=1"
fi
${_arch}-configure \
--with-libgpg-error-prefix=/usr/${_arch} \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/libassuan-${pkgver}/build-${_arch}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/${_arch}/share
${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
done
}
|