void-packages/srcpkgs/ibus-bamboo/template
ndgnuh bfe41358e7 ibus-bamboo: update to 0.5.1
- Fix dbus timeout, resolve [issue](https://github.com/BambooEngine/ibus-bamboo/issues/18)
- Add a new prop menu to disable input lookup table, thanks @viettuan1807
- Allow 'uowo' -> 'uo^' instead of 'u?oo'
- Allow 'linuxx' -> 'linux' instead of 'linu~x'
2019-07-10 09:00:18 +02:00

29 lines
1 KiB
Bash

# Template file for 'ibus-bamboo'
pkgname=ibus-bamboo
version=0.5.1
revision=1
hostmakedepends="go"
makedepends="libXtst-devel libX11-devel"
depends="ibus"
short_desc="Vietnamese input method for ibus"
maintainer="ndgnuh <ndgnuh99@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/BambooEngine/ibus-bamboo"
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum="58dcbc97e8e8546f1410747ebedf76ecba834755cc4e767df7d5a63cb049814a"
nocross="armv7l-linux-gnueabihf-gcc: error: unrecognized command line option '-m64'"
_engine_dir="usr/share/ibus-bamboo/"
_ibus_dir="usr/share/ibus"
do_build() {
GOPATH=$wrksrc go build -buildmode=pie -o ibus-bamboo -ldflags="-s -w -extld=$CC" ./src/ibus-bamboo
}
do_install() {
mkdir -p ${PKGDESTDIR}/${_engine_dir}
mkdir -p ${PKGDESTDIR}/usr/lib/
mkdir -p ${PKGDESTDIR}/${_ibus_dir}/component
cp ${wrksrc}/ibus-bamboo ${PKGDESTDIR}/usr/lib/ibus-engine-bamboo
cp -R -f viet-on.png data ${PKGDESTDIR}/${_engine_dir}
cp -f bamboo.xml ${PKGDESTDIR}/${_ibus_dir}/component/
}