void-packages/srcpkgs/ibus-bamboo/template

32 lines
930 B
Bash

# Template file for 'ibus-bamboo'
pkgname=ibus-bamboo
version=0.7.7
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=38b067d6406de128d32d9ae066a0747ad5f865583e15b4ae3508ccb8e8f13945
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
}