Skip to content

Commit

Permalink
surreal: bump to 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
termux-pacman-bot committed Oct 4, 2024
1 parent 94665d0 commit 01f31f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions tur/surreal/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ TERMUX_PKG_DESCRIPTION="A scalable, distributed, collaborative, document-graph d
TERMUX_PKG_LICENSE="non-free"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@SunPodder"
TERMUX_PKG_VERSION="2.0.2"
TERMUX_PKG_VERSION="2.0.3"
TERMUX_PKG_SRCURL="https://github.com/surrealdb/surrealdb/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=fa0e1ba30bf32e4ce62a9ff96655670455999e181c29a9167ff1011b43e17519
TERMUX_PKG_SHA256=5f5d096f89502ddd667e638528fc46370c8490bf6e159a357cdf656fd9c7f53b
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BUILD_DEPENDS="openssl, zlib"
Expand All @@ -20,14 +20,14 @@ termux_step_configure() {
export CARGO_HOME="${HOME}/.cargo"
cargo fetch --target $CARGO_TARGET_NAME

rm -rf $CARGO_HOME/registry/src/index.crates.io-*/librocksdb-sys-0.11.0*/
rm -rf $CARGO_HOME/registry/src/index.crates.io-*/jemalloc-sys*/
rm -rf $CARGO_HOME/registry/src/index.crates.io-*/librocksdb-sys-*/
rm -rf $CARGO_HOME/registry/src/index.crates.io-*/jemalloc-sys-*/
cargo fetch --target $CARGO_TARGET_NAME

sed -e "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
$TERMUX_PKG_BUILDER_DIR/librocksdb-sys.diff \
| patch --silent -p1 \
-d $CARGO_HOME/registry/src/index.crates.io-*/librocksdb-sys-0.11.0*/rocksdb
-d $CARGO_HOME/registry/src/index.crates.io-*/librocksdb-sys-*/

cat $TERMUX_PKG_BUILDER_DIR/jemalloc-sys.diff \
| patch --silent -p1 \
Expand All @@ -43,3 +43,8 @@ termux_step_make() {
termux_step_make_install() {
install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/surreal
}

termux_step_post_make_install() {
rm -rf $CARGO_HOME/registry/src/index.crates.io-*/librocksdb-sys-*/
rm -rf $CARGO_HOME/registry/src/index.crates.io-*/jemalloc-sys*/
}
4 changes: 2 additions & 2 deletions tur/surreal/librocksdb-sys.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- a/util/compression.h
+++ b/util/compression.h
--- a/rocksdb/util/compression.h
+++ b/rocksdb/util/compression.h
@@ -33,9 +33,7 @@
#include <snappy.h>
#endif
Expand Down

0 comments on commit 01f31f4

Please sign in to comment.