32 lines
930 B
Bash
32 lines
930 B
Bash
# Template file for 'ibus-bamboo'
|
|
pkgname=ibus-bamboo
|
|
version=0.7.3
|
|
revision=1
|
|
build_style=go
|
|
makedepends="libXtst-devel libX11-devel"
|
|
depends="ibus"
|
|
short_desc="Vietnamese input method for ibus"
|
|
maintainer="ndgnuh <ndgnuh@protonmail.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=0e3faba88e4080e8ee230ed5b3a40439168bc83a3b064bf8bdef0cbf281069e6
|
|
conf_files="/usr/share/ibus-bamboo/data/macro.tpl.txt"
|
|
|
|
do_configure() {
|
|
vsed -i -e 's,/usr/lib/ibus-,/usr/lib/ibus/ibus-,' bamboo.xml
|
|
}
|
|
|
|
do_build() {
|
|
GOPATH=$wrksrc \
|
|
go build -buildmode=pie -o ibus-engine-bamboo \
|
|
-ldflags="$go_ldflags" ibus-bamboo
|
|
}
|
|
|
|
do_install() {
|
|
vinstall ibus-engine-bamboo 755 usr/lib/ibus
|
|
vinstall bamboo.xml 644 usr/share/ibus/component
|
|
vinstall viet-on.png 644 usr/share/ibus-bamboo
|
|
vcopy data usr/share/ibus-bamboo
|
|
}
|