blob: 4f009bd70a4f8d88defd89bb0f40e1f571eadfb7 (
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
|
# Maintainer: Karl-Felix Glatzer <karl.glatzer@gmx.de>
pkgname=mingw-w64-recode
pkgver=3.7.14
pkgrel=1
pkgdesc="Converts files between various character sets and usages (mingw-w64)"
arch=('any')
url='https://github.com/rrthomas/recode'
license=('GPL3' 'LGPL3')
depends=('mingw-w64-crt' 'mingw-w64-gettext')
options=('!strip' '!buildflags' 'staticlibs')
makedepends=('mingw-w64-gcc' 'mingw-w64-configure' 'mingw-w64-wine' 'python' 'help2man')
source=("https://github.com/rrthomas/recode/releases/download/v${pkgver}/recode-${pkgver}.tar.gz"
"autotools.patch")
sha256sums=('786aafd544851a2b13b0a377eac1500f820ce62615ccc2e630b501e7743b9f33'
'10d2f285ba33589b05713c4c11debfa84a7b7ca2041ec7ecb0fa195b6cc1098e')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd ${srcdir}/recode-${pkgver}
autoreconf -fi
libtoolize
patch -Np1 -i ${srcdir}/autotools.patch
}
build() {
for _arch in ${_architectures}; do
mkdir -p ${srcdir}/recode-${pkgver}/build-${_arch} && cd ${srcdir}/recode-${pkgver}/build-${_arch}
${_arch}-configure \
--mandir=/usr/${_arch}/share/man \
--infodir=/usr/${_arch}/share/info \
--without-included-gettext
make -j1
done
}
package() {
for _arch in ${_architectures}; do
cd ${srcdir}/recode-${pkgver}/build-${_arch}
make DESTDIR="${pkgdir}" install
rm -r "${pkgdir}/usr/${_arch}/share"
${_arch}-strip -s "${pkgdir}/usr/${_arch}"/bin/*.exe
${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}"/bin/*.dll
${_arch}-strip -g "${pkgdir}/usr/${_arch}"/lib/*.a
done
}
|