void-packages/srcpkgs/libime/template

67 lines
1.8 KiB
Bash

# Template file for 'libime'
pkgname=libime
version=1.1.6
revision=1
build_style=cmake
build_helper=qemu
hostmakedepends="pkg-config gettext extra-cmake-modules python3"
makedepends="libfcitx5-devel boost-devel libzstd-devel"
short_desc="Library to support generic input method implementation"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://fcitx-im.org/wiki/Fcitx"
_lm_sc=lm_sc.arpa-20230712.tar.xz
_dict=dict-20230412.tar.xz
_table=table-20240108.tar.gz
distfiles="https://download.fcitx-im.org/fcitx5/libime/libime-${version}.tar.xz
https://download.fcitx-im.org/data/${_lm_sc}
https://download.fcitx-im.org/data/${_dict}
https://download.fcitx-im.org/data/$_table"
checksum="2d9bb381762d3e0becb7b9867f262b12aae57bcf6fd332da8a1fb978f29a2f1f
badd62c16c6373787a0fda8f09cd452d12f60d5868856f651ceecf1a07baba32
f05fccaff9687900aac3d9ad5a81b20888b573201403fbcd9bbc7907d9e97507
729c596d86907de727c74d0fc3fd241c406c5debd2b4cb74eefe022387ee9dae"
skip_extraction="
${_lm_sc}
${_dict}
${_table}"
CXXFLAGS="-D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"
post_extract() {
local _srcdistdir=${XBPS_SRCDISTDIR}/${pkgname}-${version}
local _file
for _file in ${skip_extraction}; do
cp ${_srcdistdir}/${_file} data
done
}
post_install() {
sed -i '/INTERFACE_INCLUDE_DIRECTORIES/s,"/usr,"${_IMPORT_PREFIX},' \
"${DESTDIR}/usr/lib/cmake"/*/*Targets.cmake
}
libime-migration_package() {
short_desc+=" - migration tools"
pkg_install() {
vmove "usr/bin/libime_migrate_*"
}
}
libime-utils_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}
libime-devel_package() {
short_desc+=" - development files"
depends="boost-devel libime-utils>=${version}_${revision}
libfcitx5-devel libime>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}