From 32011656fd5e996338be664ab7d59609ff2da8ba Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Sun, 27 Feb 2022 18:35:09 -0500 Subject: [PATCH] New package: Gridcoin-Research-5.4.1.0 --- srcpkgs/Gridcoin-Research-qt | 1 + srcpkgs/Gridcoin-Research/template | 48 ++++++++++++++++++++++++++++++ srcpkgs/Gridcoin-Research/update | 1 + 3 files changed, 50 insertions(+) create mode 120000 srcpkgs/Gridcoin-Research-qt create mode 100644 srcpkgs/Gridcoin-Research/template create mode 100644 srcpkgs/Gridcoin-Research/update diff --git a/srcpkgs/Gridcoin-Research-qt b/srcpkgs/Gridcoin-Research-qt new file mode 120000 index 000000000000..f6dc5bb1ae67 --- /dev/null +++ b/srcpkgs/Gridcoin-Research-qt @@ -0,0 +1 @@ +Gridcoin-Research/ \ No newline at end of file diff --git a/srcpkgs/Gridcoin-Research/template b/srcpkgs/Gridcoin-Research/template new file mode 100644 index 000000000000..79d5e1620105 --- /dev/null +++ b/srcpkgs/Gridcoin-Research/template @@ -0,0 +1,48 @@ +# Template file for 'Gridcoin-Research' +pkgname=Gridcoin-Research +version=5.4.1.0 +revision=1 +build_style=gnu-configure +configure_args="--with-incompatible-bdb --with-boost=${XBPS_CROSS_BASE}/usr" +hostmakedepends="automake libtool pkg-config" +makedepends="openssl-devel boost-devel libevent-devel miniupnpc-devel + db-devel qt5-tools-devel qrencode-devel libzip-devel qt5-charts-devel + libcurl-devel" +short_desc="Open source cryptocurrency rewarding computing through BOINC" +maintainer="Joel Beckmeyer " +license="MIT" +homepage="https://gridcoin.us" +changelog="https://raw.githubusercontent.com/gridcoin-community/Gridcoin-Research/development/CHANGELOG.md" +distfiles="https://github.com/gridcoin-community/Gridcoin-Research/archive/refs/tags/${version}.tar.gz" +checksum=d4a817fad86bb60e06cfcb672419b827e8452ae1e9494af11650de230d9ca13d + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools" +fi + +pre_configure() { + ./autogen.sh + # taken from bitcoin package to fix CRC32 errors + case "$XBPS_TARGET_MACHINE" in + aarch64*) + CFLAGS=${CFLAGS/armv8-a/armv8-a+crc+crypto} + CXXFLAGS=${CXXFLAGS/armv8-a/armv8-a+crc+crypto} + ;; + esac +} + +post_install() { + rm "${DESTDIR}"/usr/bin/test_gridcoin{,-qt} + vlicense COPYING +} + +Gridcoin-Research-qt_package() { + short_desc+=" - QT GUI" + pkg_install() { + vmove usr/bin/gridcoinresearch + vmove usr/share/applications + vmove usr/share/icons + vmove usr/share/man/man1/gridcoinresearch.1 + vlicense COPYING + } +} diff --git a/srcpkgs/Gridcoin-Research/update b/srcpkgs/Gridcoin-Research/update new file mode 100644 index 000000000000..e72bf9cbf571 --- /dev/null +++ b/srcpkgs/Gridcoin-Research/update @@ -0,0 +1 @@ +ignore="99"