summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorponsfoot2017-04-16 20:46:07 +0900
committerponsfoot2017-04-16 20:46:07 +0900
commitb5ef0c2e3fb5550560626d2ee827e8b1b14ca166 (patch)
treeea42f3802cae42fedc18e019026dafbbdc35979e /PKGBUILD
parentdf9fb9891b7b1f8061b306d960ec9c26f9912dd2 (diff)
downloadaur-b5ef0c2e3fb5550560626d2ee827e8b1b14ca166.tar.gz
2.20.2673.102.20170321-2: Fix to work makepkg --nobuild && makepkg --noprepare
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 7 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ce5a39c094d..ea1ce351420 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -72,6 +72,7 @@ _bldtype=Release
#_bldtype=Debug
_mozcrev=280e38fe3d9db4df52f0713acf2ca65898cd697a
+_mozcver=2.20.2673.102
_utdicver=20170321
_zipcoderel=201703
_uimmozcrev=321.3ea28b1
@@ -79,8 +80,8 @@ _uimmozcrev=321.3ea28b1
pkgbase=mozc-ut2
pkgname=mozc-ut2
true && pkgname=('mozc-ut2')
-pkgver=2.20.2673.102.20170321
-pkgrel=1
+pkgver="${_mozcver}.${_utdicver}"
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.geocities.jp/ep3797/mozc-ut2.html"
license=('BSD' 'GPL' 'CC-BY-SA' 'custom')
@@ -120,21 +121,8 @@ if [[ "$_emacs_mozc" == "yes" ]]; then
fi
-mozcver() {
- . "${srcdir}/mozc/src/data/version/mozc_version_template.bzl"
- printf "%s.%s.%s.%s" $MAJOR $MINOR $BUILD $REVISION
-}
-
-
-pkgver() {
- printf "%s.%s" $_mozcver "${_utdicver}"
-}
-
-
prepare() {
- cd "$srcdir"
- ln -sf `which python2` ./python
- PATH="${srcdir}:${PATH}"
+ ln -sf `which python2` "${srcdir}/python"
cd "${srcdir}/mozc/"
@@ -142,14 +130,13 @@ prepare() {
cd "${srcdir}/mozcdic-ut2-${_utdicver}"
- _mozcver=`mozcver`
"${srcdir}/mod-generate-dictionary.sh"
msg "Generating UT dictionary seed..."
MOZCVER="$_mozcver" DICVER="$_utdicver" NICODIC="$_NICODIC" \
./generate-dictionary.sh
msg "Done."
- cd "${srcdir}/${pkgbase}-`pkgver`/src"
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
# uim-mozc
if [[ "$_uim_mozc" == "yes" ]]; then
@@ -177,6 +164,8 @@ build() {
msg "Starting make..."
+ PATH="${srcdir}:${PATH}"
+
cd "${srcdir}/${pkgbase}-${pkgver}/src"
_targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool "