Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: Gazou #48156

Closed
jaminW55 opened this issue Jan 10, 2024 · 1 comment · Fixed by #48160
Closed

Package request: Gazou #48156

jaminW55 opened this issue Jan 10, 2024 · 1 comment · Fixed by #48160
Labels
request Package request

Comments

@jaminW55
Copy link

Package name

gazou

Package homepage

https://github.com/kamui-fin/gazou

Description

Gazou is a Japanese and Chinese OCR application written in C++. It utilizes image processing, and other parameters to improve the accuracy.

Does the requested package meet the package requirements?

System, Compiled

Is the requested package released?

Yes

@jaminW55 jaminW55 added the request Package request label Jan 10, 2024
@jaminW55
Copy link
Author

# Template file for 'gazou'
pkgname=gazou
version=0.3.3
revision=1
build_style=cmake
configure_args="-DGUI=ON"
makedepends="qt5-devel tesseract-ocr-devel leptonica-devel qt5-x11extras-devel"
hostmakedepends="pkg-config"
short_desc="Japanese and Chinese OCR application"
maintainer="jaminW <jaminW55@gmail.com>"
license="GPL-3.0"
homepage="https://github.com/kamui-fin/gazou"
distfiles="https://github.com/kamui-fin/gazou/archive/refs/tags/v${version}.tar.gz"
checksum=b939ebfaca7fa5703025328c5cb670e8718aaeace11eaadcbde506b0eb6c04e2


#if [ "$build_option_gui" ]; then
#    makedepends+=" qhotkey-devel"
#fi

do_fetch() {
    # Clone the repository with submodules
    git clone --recursive https://github.com/kamui-fin/gazou.git ${wrksrc}
    cd ${wrksrc}
    git submodule init
    git submodule update
}

do_configure() {
    cmake ${wrksrc} ${configure_args} -DBUILD_TESTING=OFF
}

do_build() {
    make
}

do_install() {
    make DESTDIR=${DESTDIR} install
}

I've started this one myself, but have had some issues building. I used the Nixpkg as my guide, which was built by me, but couldn't seem to fix the build issues. I referred to some other templates as reference and had it cross checked by a friend for some build specifics (I'm not entirely certain on the submodule part).

Primarily it seems to be failing on the qhotkey program, which is a separate program used by Gazou. I tried doing some things with it, but the template became very confusing and nothing was gained, so I've just kept a single, commented out line as reference.

Hopefully this template could help expedite the process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant