blob: 1d77a75e4336d27b87308a25927ebaa934869ae5 (
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
|
pkgname=google-chinese-handwriting-ime
pkgver=3.0.8
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' 'python-pyperclip' 'yarn' 'evtest' 'gconf' 'unclutter')
_commit=36844c09835eb0d1d8d29639237a50360cfc1ce8
source=(
"git+https://github.com/Saren-Arterius/google-chinese-handwriting-ime.git#commit=$_commit"
'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"
}
|