Skip to content

Commit

Permalink
Merge pull request #161 from mxaddict/contrib-guix
Browse files Browse the repository at this point in the history
  • Loading branch information
aguycalled authored Aug 4, 2024
2 parents d0a3345 + 494cf59 commit 710285f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 68 deletions.
43 changes: 0 additions & 43 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,6 @@ mkdir -p "$DISTSRC"

mkdir -p "$OUTDIR"

# Make the os-specific installers
case "$HOST" in
*mingw*)
make deploy ${V:+V=1} BITCOIN_WIN_INSTALLER="${OUTDIR}/${DISTNAME}-win64-setup-unsigned.exe"
;;
esac

# Setup the directory where our Bitcoin Core build for HOST will be
# installed. This directory will also later serve as the input for our
# binary tarballs.
Expand All @@ -298,26 +291,6 @@ mkdir -p "$DISTSRC"
;;
esac

case "$HOST" in
*darwin*)
make osx_volname ${V:+V=1}
make deploydir ${V:+V=1}
mkdir -p "unsigned-app-${HOST}"
cp --target-directory="unsigned-app-${HOST}" \
osx_volname \
contrib/macdeploy/detached-sig-create.sh
mv --target-directory="unsigned-app-${HOST}" dist
(
cd "unsigned-app-${HOST}"
find . -print0 \
| sort --zero-terminated \
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.tar.gz" \
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.tar.gz" && exit 1 )
)
make deploy ${V:+V=1} OSX_ZIP="${OUTDIR}/${DISTNAME}-${HOST}-unsigned.zip"
;;
esac
(
cd installed

Expand Down Expand Up @@ -398,22 +371,6 @@ mkdir -p "$DISTSRC"
;;
esac
) # $DISTSRC/installed

case "$HOST" in
*mingw*)
cp -rf --target-directory=. contrib/windeploy
(
cd ./windeploy
mkdir -p unsigned
cp --target-directory=unsigned/ "${OUTDIR}/${DISTNAME}-win64-setup-unsigned.exe"
find . -print0 \
| sort --zero-terminated \
| tar --create --no-recursion --mode='u+rw,go+r-w,a+X' --null --files-from=- \
| gzip -9n > "${OUTDIR}/${DISTNAME}-win64-unsigned.tar.gz" \
|| ( rm -f "${OUTDIR}/${DISTNAME}-win64-unsigned.tar.gz" && exit 1 )
)
;;
esac
) # $DISTSRC

rm -rf "$ACTUAL_OUTDIR"
Expand Down
29 changes: 4 additions & 25 deletions depends/packages/gmp.mk
Original file line number Diff line number Diff line change
@@ -1,30 +1,9 @@
package=gmp
$(package)_version=6.2.1
$(package)_download_path=https://gmplib.org/download/gmp
$(package)_file_name=gmp-$($(package)_version).tar.bz2
$(package)_sha256_hash=eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c
$(package)_version=6.3.0
$(package)_download_path=https://mirrors.kernel.org/gnu/gmp/
$(package)_file_name=gmp-$($(package)_version).tar.xz
$(package)_sha256_hash=a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898

define $(package)_set_vars
$(package)_config_opts+=--enable-cxx --enable-fat --with-pic --disable-shared
$(package)_config_opts_i686_linux+=ABI=32
$(package)_cflags_armv7l_linux+=-march=armv7-a
endef

define $(package)_config_cmds
CC_FOR_BUILD="$(CC)" \
CXX_FOR_BUILD="$(CXX)" \
AR="$(AR)" \
NM="$(NM)" \
RANLIB="$(RANLIB)" \
LD="$(LD)" \
STRIP="$(STRIP)" \
$($(package)_autoconf)
endef

define $(package)_build_cmds
$(MAKE) -j$(JOBS)
endef

define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef

0 comments on commit 710285f

Please sign in to comment.