summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3309714da80
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Mon May 15 09:55:06 UTC 2017
+pkgbase = mingw-w64-opencc-gui-git
+ pkgdesc = Gui in Qt5 of Library for Open Chinese Convert (mingw-w64)
+ pkgver = r38.47b0e26
+ pkgrel = 1
+ url = http://code.google.com/p/opencc/
+ arch = any
+ license = Apache License 2.0
+ depends = mingw-w64-opencc
+ depends = mingw-w64-qt5-base
+ optdepends = mingw-w64-uchardet
+ source = opencc-gui::git+https://github.com/BYVoid/opencc-gui.git
+ md5sums = SKIP
+
+pkgname = mingw-w64-opencc-gui-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7d1f911cd5d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}