32 lines
929 B
Bash
32 lines
929 B
Bash
# Template file for 'ibus-bamboo'
|
|
pkgname=ibus-bamboo
|
|
version=0.6.7
|
|
revision=1
|
|
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="92d49fe232f241b3e62348c49883aed8a439f256bf6c39034270e069e6c34563"
|
|
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
|
|
}
|