blob: 7d1f911cd5dcd3373774a0d72f1fdf1d997edb7b (
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
|
# Maintainer: osfans <waxaca (at) 163 (dot) com>
_pkgname=opencc-gui
pkgname=mingw-w64-$_pkgname-git
pkgver=r38.47b0e26
pkgrel=1
pkgdesc="Gui in Qt5 of Library for Open Chinese Convert (mingw-w64)"
arch=(any)
url="http://code.google.com/p/opencc/"
license=('Apache License 2.0')
depends=('mingw-w64-opencc' 'mingw-w64-qt5-base')
optdepends=('mingw-w64-uchardet')
source=('opencc-gui::git+https://github.com/BYVoid/opencc-gui.git')
md5sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
pkgver() {
cd $srcdir/$_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd $srcdir/$_pkgname
for _arch in ${_architectures}; do
rm -rf build
env PATH=/usr/$_arch/lib/qt/bin:$PATH ./build.sh
mkdir -p ${pkgdir}/usr/$_arch/share/$_pkgname
cp build/release/$_pkgname.exe build/*.qm ${pkgdir}/usr/$_arch/share/$_pkgname
mkdir -p ${pkgdir}/usr/$_arch/bin
ln -s /usr/$_arch/share/$_pkgname/$_pkgname.exe ${pkgdir}/usr/$_arch/bin
done
}
|