blob: b3ae973edecbbbcb31afe4218cc359abee78583a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Stanislav Vasilev <contact@i-use-gentoo-btw.com>
PKG_REAL_NAME="UntitledIBusHandwriting"
PKG_FRAMEWORK_VERSION="0.9.8.10"
pkgname=untitled-ibus-handwriting
pkgver=1.3.0.0
pkgrel=1
pkgdesc="A Chinese handwriting input method for IBus"
url="https://github.com/MadLadSquad/${PKG_REAL_NAME}"
arch=(x86_64 aarch64)
license=('MIT')
depends=("gcc-libs" "glibc" "pkgconf" "untitled-imgui-framework")
provides=("lib${PKG_REAL_NAME}Lib.so" "${PKG_REAL_NAME}")
makedepends=("cmake" "make" "pkgconf" "untitled-imgui-framework" "rust")
source=("https://github.com/MadLadSquad/UntitledImGuiFramework/releases/download/v${PKG_FRAMEWORK_VERSION}/untitled-imgui-framework.tar.xz" "https://github.com/MadLadSquad/${PKG_REAL_NAME}/releases/download/v${pkgver}/${pkgname}.tar.xz")
sha256sums=('7844ae7820bfb202bfb11c10d86361a7dbbdb788b422e837e78e7b1afe375663'
'e494a5ecb676c03f70139336e4b9d6adb54d148fc1479bd444ce51e07bd27226')
noextract=("${pkgname}.tar.xz")
prepare() {
mkdir -p "${srcdir}"/"${PKG_REAL_NAME}"/Exported || exit
bsdtar -xf "${srcdir}"/${pkgname}.tar.xz -C "${srcdir}/${PKG_REAL_NAME}" || exit
}
build() {
cd $srcdir || exit
sed -i "s/lib64/lib/g" "${srcdir}"/UVKBuildTool/src/UntitledImGuiFramework/ReleaseBuild.cpp
./install.sh ci || exit
cp -r "${srcdir}/${PKG_REAL_NAME}" "${srcdir}/Projects/"
cd "${srcdir}"/UVKBuildTool/build
./UVKBuildTool --generate ../../Projects/"${PKG_REAL_NAME}" || exit
cd "${srcdir}"/Projects/"${PKG_REAL_NAME}"/hanzi_lookup || exit
cargo build --release || exit
sed -i "s/install-framework: true/install-framework: false/g" "${srcdir}"/Projects/"${PKG_REAL_NAME}"/uvproj.yaml
sed -i "s/build-mode-vendor: true/build-mode-vendor: false/g" "${srcdir}"/Projects/"${PKG_REAL_NAME}"/uvproj.yaml
echo "install-framework: false" >> "${srcdir}"/Projects/${PKG_REAL_NAME}/uvproj.yaml
sed -i "s/lib64/lib/g" "${srcdir}"/Projects/"${PKG_REAL_NAME}"/uvproj.yaml
}
package() {
cd $srcdir/UVKBuildTool/build || exit
./UVKBuildTool --build "${pkgdir}"/usr /usr ../../Projects/"${PKG_REAL_NAME}" || exit
# Delete unneeded files
rm -rf "${pkgdir}"/usr/share/utf8cpp "${pkgdir}"/usr/include/utf8cpp "${pkgdir}"/share/utf8cpp "${pkgdir}"/include/utf8cpp || exit
}
|