From 2b0bf5e7e06abf1c9e47a9f025adcb0368813120 Mon Sep 17 00:00:00 2001 From: gruve-p Date: Sun, 17 Apr 2022 12:48:55 +0200 Subject: [PATCH 1/2] New package: groestlcoin-22.0 --- srcpkgs/groestlcoin/template | 71 ++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 srcpkgs/groestlcoin/template diff --git a/srcpkgs/groestlcoin/template b/srcpkgs/groestlcoin/template new file mode 100644 index 000000000000..a57ce73eb67d --- /dev/null +++ b/srcpkgs/groestlcoin/template @@ -0,0 +1,71 @@ +# Template file for 'groestlcoin' +pkgname=groestlcoin +version=22.0 +revision=1 +build_style=gnu-configure +configure_args="--disable-ccache --disable-static + --enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr --with-gui" +hostmakedepends="automake libtool pkg-config yasm" +makedepends="db-devel boost-devel miniupnpc-devel qt5-tools-devel + libevent-devel qrencode-devel libatomic-devel sqlite-devel" +short_desc="Groestlcoin is a peer-to-peer network based digital currency" +maintainer="Groestlcoin developers " +license="MIT" +homepage="https://www.groestlcoin.org/groestlcoin-core-wallet/" +distfiles="https://github.com/Groestlcoin/groestlcoin/releases/download/v${version}/groestlcoin-${version}.tar.gz + https://raw.githubusercontent.com/Groestlcoin/packaging/${version}/debian/groestlcoin-qt.desktop + https://raw.githubusercontent.com/Groestlcoin/groestlcoin/v${version}/share/pixmaps/groestlcoin128.png" +checksum="6c412361e7ff84e9f7cf6a25be0d18742098ddc0f91688b368b0be3e6daa46f1 + 134c50eb1fbc3bd635c5e71f72891a144e49833d9f47938e22e446b625c1bc57 + ceaf8defe048b9eb47d7427c6a20587b6c0d5caabd97387982cf5c30ad59718b" +skip_extraction="groestlcoin-qt.desktop groestlcoin128.png" + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools" +fi + +pre_configure() { + autoreconf -fi + case "$XBPS_TARGET_MACHINE" in + aarch64*) + CFLAGS=${CFLAGS/armv8-a/armv8-a+crc+crypto} + CXXFLAGS=${CXXFLAGS/armv8-a/armv8-a+crc+crypto} + ;; + esac +} + +pre_build() { + export GROESTLCOIN_GENBUILD_NO_GIT=1 +} + +post_install() { + for b in groestlcoind groestlcoin-cli groestlcoin-tx; do + vcompletion contrib/${b}.bash-completion bash $b + done + + vlicense COPYING +} + +groestlcoin-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vdoc doc/shared-libraries.md # Provides information on libgroestlcoinconsensus + } +} + +groestlcoin-qt_package() { + depends="desktop-file-utils" + short_desc+=" - QT GUI" + pkg_install() { + vmove usr/bin/groestlcoin-qt + vmove usr/share/man/man1/groestlcoin-qt.1 + vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/groestlcoin-qt.desktop 644 usr/share/applications + vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/groestlcoin128.png 644 usr/share/pixmaps + vlicense COPYING + rm "${DESTDIR}"/usr/bin/test_groestlcoin-qt + } +} From 23c45d41c12606c0cdc470ca7a9b262ac7548189 Mon Sep 17 00:00:00 2001 From: gruve-p Date: Sun, 17 Apr 2022 21:00:13 +0200 Subject: [PATCH 2/2] fix --- srcpkgs/groestlcoin-devel/groestlcoin | 1 + srcpkgs/groestlcoin-qt/groestlcoin | 1 + 2 files changed, 2 insertions(+) create mode 120000 srcpkgs/groestlcoin-devel/groestlcoin create mode 120000 srcpkgs/groestlcoin-qt/groestlcoin diff --git a/srcpkgs/groestlcoin-devel/groestlcoin b/srcpkgs/groestlcoin-devel/groestlcoin new file mode 120000 index 000000000000..77a0da53be6b --- /dev/null +++ b/srcpkgs/groestlcoin-devel/groestlcoin @@ -0,0 +1 @@ +groestlcoin \ No newline at end of file diff --git a/srcpkgs/groestlcoin-qt/groestlcoin b/srcpkgs/groestlcoin-qt/groestlcoin new file mode 120000 index 000000000000..77a0da53be6b --- /dev/null +++ b/srcpkgs/groestlcoin-qt/groestlcoin @@ -0,0 +1 @@ +groestlcoin \ No newline at end of file