blob: 236e173ff12b73696a88bb0e62294c240f550e2f (
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
|
# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Filip Dvorak <fila@pruda.com>
pkgname=mingw-w64-enca
pkgver=1.16
pkgrel=1
pkgdesc="Charset analyser and converter (mingw-w64)"
arch=('any')
url="http://cihar.com/software/enca/"
options=('!strip !buildflags staticlibs')
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-recode')
makedepends=('mingw-w64-gcc' 'wine')
source=("http://dl.cihar.com/enca/enca-${pkgver}.tar.xz"
'configure.patch'
'tools.patch')
md5sums=('0a1483530b1fdb9e2a54786489ee0b69'
'efb65212b3dffbd29eb253ec07f2db63'
'e62da0e6fd31affa1f3e15171dbc95c6')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/enca-${pkgver}"
patch -Np1 -i "${srcdir}/configure.patch"
patch -Np1 -i "${srcdir}/tools.patch"
./autogen.sh
make distclean
}
build() {
for _arch in ${_architectures}; do
mkdir -p ${srcdir}/build-${_arch} && cd ${srcdir}/build-${_arch}
${srcdir}/enca-${pkgver}/configure --host=${_arch} \
--prefix=/usr/${_arch} \
--libexecdir=/usr/${_arch}/lib \
--mandir=/usr/${_arch}/share/man \
--with-librecode=/usr/${_arch} \
--enable-external
make
done
}
package() {
for _arch in ${_architectures}; do
cd ${srcdir}/build-${_arch}
make DESTDIR="${pkgdir}" install
rm "${pkgdir}/usr/${_arch}"/bin/*.exe
rm -r "${pkgdir}/usr/${_arch}/share"
rm -r "${pkgdir}/usr/${_arch}/lib/enca"
${_arch}-strip -x -g "${pkgdir}/usr/${_arch}"/bin/*.dll
${_arch}-strip -g "${pkgdir}/usr/${_arch}"/lib/*.a
done
}
|