blob: e826452b5dddcb0c90c19256e6ce6828558eeb12 (
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
|
# $Id$
# Maintainer: osfans <waxaca at 163 dot com>
_pkgname=librime
pkgname=mingw-w64-$_pkgname-git
pkgver=1.2.9.r209.g939893c0
pkgrel=1
pkgdesc="Rime input method engine (mingw-w64)"
arch=('i686' 'x86_64')
url="http://code.google.com/p/rimeime/"
license=('GPL3')
options=('!strip' '!buildflags' 'staticlibs')
depends=('mingw-w64-boost' 'mingw-w64-opencc' 'mingw-w64-yaml-cpp' 'mingw-w64-leveldb' 'mingw-w64-google-glog' 'mingw-w64-marisa' 'mingw-w64-libiconv')
makedepends=('mingw-w64-cmake' 'git')
source=("git+https://github.com/rime/$_pkgname.git")
sha512sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^rime-//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_pkgname
for _arch in ${_architectures}; do
${_arch}-cmake -Bbuild-${_arch}-static -DBUILD_SHARED_LIBS:BOOL=OFF -H.
make -C build-${_arch}-static rime-static
${_arch}-cmake -Bbuild-${_arch} -H.
make -C build-${_arch}
done
}
package() {
cd $_pkgname
for _arch in ${_architectures}; do
make -C build-${_arch}-static DESTDIR="$pkgdir" install
make -C build-${_arch} DESTDIR="$pkgdir" install
mv "$pkgdir"/usr/${_arch}/lib/*.dll "$pkgdir"/usr/${_arch}/bin/
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|