Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
26b3ae9c
Commit
26b3ae9c
authored
4 years ago
by
Rasmus Thomsen
Browse files
Options
Downloads
Patches
Plain Diff
community/uchardet: upgrade to 0.0.7
parent
0a5576dd
No related branches found
No related tags found
1 merge request
!7269
community/uchardet: upgrade to 0.0.7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/uchardet/APKBUILD
+18
-14
18 additions, 14 deletions
community/uchardet/APKBUILD
with
18 additions
and
14 deletions
community/uchardet/APKBUILD
+
18
−
14
View file @
26b3ae9c
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname
=
uchardet
pkgname
=
uchardet
pkgver
=
0.0.
6
pkgver
=
0.0.
7
pkgrel
=
1
pkgrel
=
0
pkgdesc
=
"Encoding detector library ported from Mozilla"
pkgdesc
=
"Encoding detector library ported from Mozilla"
url
=
"https://www.freedesktop.org/wiki/Software/uchardet"
url
=
"https://www.freedesktop.org/wiki/Software/uchardet"
arch
=
"all"
arch
=
"all"
license
=
"MPL-1.1"
license
=
"MPL-1.1"
makedepends
=
"cmake"
makedepends
=
"cmake"
options
=
"!check"
# fail on x86, upstream is dead
subpackages
=
"
$pkgname
-static
$pkgname
-dev
$pkgname
-doc"
subpackages
=
"
$pkgname
-dev
$pkgname
-doc"
source
=
"https://www.freedesktop.org/software/uchardet/releases/uchardet-
$pkgver
.tar.xz"
source
=
"https://www.freedesktop.org/software/uchardet/releases/uchardet-
${
pkgver
}
.tar.xz"
builddir
=
"
$srcdir
/uchardet-
$pkgver
"
build
()
{
build
()
{
case
"
$CARCH
"
in
# Failing tests without SSE2 enabled
# https://gitlab.freedesktop.org/uchardet/uchardet/-/issues/16
x86
)
export
CXXFLAGS
=
"
$CXXFLAGS
-mfpmath=sse -msse2"
;;
esac
if
[
"
$CBUILD
"
!=
"
$CHOST
"
]
;
then
if
[
"
$CBUILD
"
!=
"
$CHOST
"
]
;
then
CMAKE_CROSSOPTS
=
"-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
CMAKE_CROSSOPTS
=
"-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
fi
cmake
\
cmake
-B
build
\
-DCMAKE_INSTALL_PREFIX
=
/usr
\
-DCMAKE_INSTALL_PREFIX
=
/usr
\
-DCMAKE_INSTALL_LIBDIR
=
lib
\
-DCMAKE_INSTALL_LIBDIR
=
lib
\
-DBUILD_SHARED_LIBS
=
True
\
-DBUILD_SHARED_LIBS
=
True
\
-DCMAKE_BUILD_TYPE
=
None
\
-DCMAKE_BUILD_TYPE
=
None
\
-DCMAKE_CXX_FLAGS
=
"
$CXXFLAGS
"
\
-DCMAKE_CXX_FLAGS
=
"
$CXXFLAGS
"
\
-DCMAKE_C_FLAGS
=
"
$CFLAGS
"
\
-DCMAKE_C_FLAGS
=
"
$CFLAGS
"
\
$
{
CMAKE_CROSSOPTS
}
$CMAKE_CROSSOPTS
make
make
-C
build
}
}
check
()
{
check
()
{
# overwrite failing test
make
-C
build
test
touch test
/th/utf-8.txt
test
/th/tis-620.txt
make
test
}
}
package
()
{
package
()
{
make
DESTDIR
=
"
$pkgdir
"
install
make
-C
build
DESTDIR
=
"
$pkgdir
"
install
}
}
sha512sums
=
"
eceeadae060bf277e298d709856609dde32921271140dc1fb0a33c7b6e1381033fc2960d616ebbd82c92815936864d2c0743b1b5ea1b7d4a200df87df80d6de5
uchardet-0.0.
6
.tar.xz"
sha512sums
=
"
ddb7b63dd09c1d9acbe620d86217e583d9aa5340780ab4010ec9faa4fd331498859d5efa7829bf8847da89325accf8f7304b51d410210178fc1ffa6658064a6f
uchardet-0.0.
7
.tar.xz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment