blob: d167e92e4e0a80751531c7e4419fca72512a56da (
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
|
# Maintainer: Mladen Milinkovic <maxrd2@smoothware.net>
# Contributor: Jesse Juhani Jaara <jesse@Euler>
pkgname=mingw-w64-ki18n
pkgver=5.76.0
pkgrel=1
pkgdesc="Advanced internationalization framework (mingw-w64)"
arch=('any')
url="https://cgit.kde.org/ki18n.git"
license=('LGPL')
depends=('mingw-w64-qt5-script' 'mingw-w64-qt5-declarative')
makedepends=("mingw-w64-extra-cmake-modules" 'python')
optdepends=('python: To compile Transcript property maps from text to binary format.')
options=('!buildflags' 'staticlibs' '!strip')
source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/ki18n-${pkgver}.tar.xz")
sha256sums=('0e87bc1136e21f7860f15daa39e8d16e5a773995fce2b87b0cef0043c4ce0e7a')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/ki18n-${pkgver}"
for _arch in ${_architectures}; do
unset LDFLAGS
mkdir -p build-${_arch}-static && pushd build-${_arch}-static
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
..
make
popd
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "${srcdir}/ki18n-${pkgver}/build-${_arch}-static"
make install DESTDIR="$pkgdir"
cd "${srcdir}/ki18n-${pkgver}/build-${_arch}"
make install DESTDIR="$pkgdir"
${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
done
}
|