diff options
author | Saren Arterius | 2018-10-27 15:58:32 +0800 |
---|---|---|
committer | Saren Arterius | 2018-10-27 15:58:32 +0800 |
commit | 7c29cbd2017add0c82fe5d3517b7de4bdd2e1df5 (patch) | |
tree | e1d6b28a8fee1bcd0d98854b4ae38f4172fe4703 | |
download | aur-7c29cbd2017add0c82fe5d3517b7de4bdd2e1df5.tar.gz |
first
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | google-chinese-handwriting-ime.desktop | 6 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a7856b15e2b8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = google-chinese-handwriting-ime + pkgdesc = Chinese handwriting IME powered by Google Translate. MacOS style touchpad writing is supported. Written in Electron for Linux. + pkgver = 2.0.0 + pkgrel = 1 + url = https://github.com/Saren-Arterius/google-chinese-handwriting-ime + arch = x86_64 + depends = xdotool + depends = xorg-xinput + depends = xorg-xdpyinfo + depends = python-pyperclip + depends = yarn + depends = evtest + source = git+https://github.com/Saren-Arterius/google-chinese-handwriting-ime.git + source = google-chinese-handwriting-ime.desktop + sha256sums = SKIP + sha256sums = 8aad77fc7e22ec8017243d57c530845b336d65cf321386b1b78e4362f38bbab4 + +pkgname = google-chinese-handwriting-ime + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..98b063e57490 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +pkgname=google-chinese-handwriting-ime +pkgver=2.0.0 +pkgrel=1 +pkgdesc="Chinese handwriting IME powered by Google Translate. MacOS style touchpad writing is supported. Written in Electron for Linux." +arch=('x86_64') +url="https://github.com/Saren-Arterius/google-chinese-handwriting-ime" +depends=('xdotool' 'xorg-xinput' 'xorg-xdpyinfo' 'python-pyperclip' 'yarn' 'evtest') +source=('git+https://github.com/Saren-Arterius/google-chinese-handwriting-ime.git' 'google-chinese-handwriting-ime.desktop') +sha256sums=('SKIP' '8aad77fc7e22ec8017243d57c530845b336d65cf321386b1b78e4362f38bbab4') + +build() { + cd "${pkgname}" + yarn +} + +package() { + mkdir -p "${pkgdir}/opt/" + cp -r "${pkgname}" "${pkgdir}/opt/${pkgname}" + rm -r "${pkgdir}/opt/${pkgname}/.git" + install -Dm644 "google-chinese-handwriting-ime.desktop" "${pkgdir}/usr/share/applications/google-chinese-handwriting-ime.desktop" +} diff --git a/google-chinese-handwriting-ime.desktop b/google-chinese-handwriting-ime.desktop new file mode 100644 index 000000000000..3c7adf024668 --- /dev/null +++ b/google-chinese-handwriting-ime.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=Google Chinese Handwriting IME +Terminal=false +Exec=/bin/bash -c "cd /opt/google-chinese-handwriting-ime && yarn start" +Hidden=false |