void-packages/srcpkgs/ibus-bamboo/template

30 lines
1 KiB
Bash
Raw Normal View History

2019-04-28 14:40:09 +00:00
# Template file for 'ibus-bamboo'
pkgname=ibus-bamboo
version=0.5.1
2019-04-28 14:40:09 +00:00
revision=1
2019-05-25 13:49:26 +00:00
hostmakedepends="go"
2019-04-28 14:40:09 +00:00
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"
2019-05-25 13:49:26 +00:00
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum="58dcbc97e8e8546f1410747ebedf76ecba834755cc4e767df7d5a63cb049814a"
2019-05-25 13:49:26 +00:00
nocross="armv7l-linux-gnueabihf-gcc: error: unrecognized command line option '-m64'"
2019-04-28 14:40:09 +00:00
_engine_dir="usr/share/ibus-bamboo/"
_ibus_dir="usr/share/ibus"
2019-05-25 13:49:26 +00:00
do_build() {
GOPATH=$wrksrc go build -buildmode=pie -o ibus-bamboo -ldflags="-s -w -extld=$CC" ./src/ibus-bamboo
}
do_install() {
2019-04-28 14:40:09 +00:00
mkdir -p ${PKGDESTDIR}/${_engine_dir}
mkdir -p ${PKGDESTDIR}/usr/lib/
mkdir -p ${PKGDESTDIR}/${_ibus_dir}/component
2019-05-25 13:49:26 +00:00
cp ${wrksrc}/ibus-bamboo ${PKGDESTDIR}/usr/lib/ibus-engine-bamboo
2019-04-28 14:40:09 +00:00
cp -R -f viet-on.png data ${PKGDESTDIR}/${_engine_dir}
cp -f bamboo.xml ${PKGDESTDIR}/${_ibus_dir}/component/
}