32 lines
929 B
Bash
32 lines
929 B
Bash
# Template file for 'ibus-bamboo'
|
|
pkgname=ibus-bamboo
|
|
version=0.6.6
|
|
revision=2
|
|
build_style=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="c51651bea965fe66ae89a2f08521ae1840ca5d89b57ab41472ba0ef9fdb9b60d"
|
|
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
|
|
}
|