mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 02:16:39 +02:00
Fix invalid conversion error with clang and reenable on loongarch64. ``` In file included from /usr/include/glib-2.0/glib/gstring.h:35: lib.cpp: In member function 'bool Libs::LookupSimilarWord(const gchar*, glong&, int)': /usr/include/glib-2.0/glib/gunicode.h:809:34: error: invalid conversion from 'const gchar*' {aka 'const char*'} to 'gchar*' {aka 'char*' } [-fpermissive] 809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)]) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const gchar* {aka const char*} lib.cpp:1254:31: note: in expansion of macro 'g_utf8_next_char' 1254 | gchar *nextchar = g_utf8_next_char(sWord); | ^~~~~~~~~~~~~~~~ ```
32 lines
911 B
Text
32 lines
911 B
Text
# Contributor: Taner Tas <taner76@gmail.com>
|
|
# Maintainer: Taner Tas <taner76@gmail.com>
|
|
pkgname=qstardict
|
|
pkgver=2.0.2
|
|
pkgrel=1
|
|
pkgdesc="Free dictionary program written using Qt."
|
|
url="https://qstardict.ylsoftware.com"
|
|
arch="all"
|
|
license="GPL-2.0-only"
|
|
makedepends="qt5-qttools-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://gitlab.com/a-rodin/qstardict/-/archive/$pkgver/qstardict-$pkgver.tar.gz
|
|
lib-type-conversion.patch
|
|
"
|
|
|
|
build() {
|
|
qmake ENABLED_PLUGINS="stardict swac web"
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
70f658c88f1e5708dbe594342c7414269fc7f9bdc2f5fab12bf64f94d28de8fe6eb9f851a4a5c331bb3c8b90fa798ba5643e0a10c294878a5c50a54009b2f980 qstardict-2.0.2.tar.gz
|
|
c9d77bae475bceab714441ba3f6792f564b8fccebe2ceeea6e4ab21baf1c613aac21c1cad679439c9cbe1c361de91f8f2cfdb97fbd3d666bda1a6f8d2f0b3ded lib-type-conversion.patch
|
|
"
|