void-packages/srcpkgs/ibus-bamboo/template

33 lines
959 B
Bash

# Template file for 'ibus-bamboo'
pkgname=ibus-bamboo
version=0.7.8
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=39d4a1425feafe0fa3cb115a437acef36a1bf92e8c23530ebdbe75779891873e
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
vmkdir usr/share/ibus-bamboo/
vcopy data usr/share/ibus-bamboo/data
vcopy icons usr/share/ibus-bamboo/icons
}