Skip to content

Commit

Permalink
maintainer @termux -> @EDLLT, gettext-latest patch as version
Browse files Browse the repository at this point in the history
Change maintainer to @EDLLT

future-proof upstream gettext version: gettext-X.Y -> gettext-latest (reverted cargo toml version)

Co-authored-by: Biswapriyo Nath <[email protected]>
Co-authored-by: TomIO <[email protected]>
  • Loading branch information
3 people committed Sep 22, 2024
1 parent 3945e03 commit 29d2a04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions x11-packages/rnote/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE="https://github.com/flxzt/rnote"
TERMUX_PKG_DESCRIPTION="An infinite canvas vector-based drawing application for handwritten notes"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_MAINTAINER="@EDLLT"
TERMUX_PKG_VERSION="0.11.0"
TERMUX_PKG_SRCURL="https://github.com/flxzt/rnote/archive/v${TERMUX_PKG_VERSION}/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=b133d4331963d3c09d3a7477f60fc4c5072471dcbf459379a593ca1724164af4
Expand All @@ -11,7 +11,7 @@ TERMUX_PKG_BUILD_DEPENDS="libiconv"
TERMUX_PKG_PYTHON_BUILD_DEPS="toml2json"

__fetch_gettext_rs() {
# This version is relative to gettext-sys provided by the gettext-rs crate
# Latest version of gettext-sys, provided by the gettext-rs crate
local crate_version
crate_version="$(curl -s https://crates.io/api/v1/crates/gettext-sys | jq --raw-output '.crate.max_stable_version')"
grep -qP '\d+\.\d+\.\d+' <<< "$crate_version" || {
Expand All @@ -23,13 +23,10 @@ __fetch_gettext_rs() {
'211773408ab61880b94a0ea680785fc21fad307cd42594d547cf5a056627fcda' # SHA256 checksum
)

local gettext_version
gettext_version="$(. "$TERMUX_SCRIPTDIR/packages/gettext/build.sh"; echo ${TERMUX_PKG_VERSION})"

# Fetch latest and greatest gettext from upstream and place it inside gettext-source/gettext-sys
# Fetch latest gettext from upstream
local -a upstream=(
"$(. "$TERMUX_SCRIPTDIR/packages/gettext/build.sh"; echo ${TERMUX_PKG_SRCURL})" # Upstream URL (from gettext's build script)
"$TERMUX_PKG_SRCDIR/gettext-source/gettext-sys/gettext-${gettext_version}.tar.xz" # Local save path
"$TERMUX_PKG_SRCDIR/gettext-source/gettext-sys/gettext-latest.tar.xz" # Local save path
"$(. "$TERMUX_SCRIPTDIR/packages/gettext/build.sh"; echo ${TERMUX_PKG_SHA256})" # SHA256 checksum (from gettext's build script)
)

Expand Down
2 changes: 1 addition & 1 deletion x11-packages/rnote/gettext-rs-crate.diff
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ index 7772f74..42bc167 100644
cmd.current_dir(&build_dir.join("gettext"))
.arg("xJf")
- .arg(&src.join("gettext-0.21.tar.xz"))
+ .arg(&src.join("gettext-0.22.5.tar.xz"))
+ .arg(&src.join("gettext-latest.tar.xz"))
.arg("--strip-components")
.arg("1");
if host.contains("windows") {
Expand Down

0 comments on commit 29d2a04

Please sign in to comment.