Skip to content

Instantly share code, notes, and snippets.

@Korvox
Created December 14, 2024 05:43
Show Gist options
  • Select an option

  • Save Korvox/277dda1a1bd75fc63497ffb203864562 to your computer and use it in GitHub Desktop.

Select an option

Save Korvox/277dda1a1bd75fc63497ffb203864562 to your computer and use it in GitHub Desktop.
gridcoinresearch-qt-git new pkgbuild
pkgname=gridcoinresearch-qt-git
_name=Gridcoin-Research
pkgver=5.4.8.0.r79.g6f728b0
pkgrel=1
pkgdesc="GridCoin is a cryptocurrency that helps science via BOINC - Qt - git branch"
depends=(boost-libs leveldb qrencode qt5-base qt5-charts libzip miniupnpc curl boinc vim)
makedepends=(boost cmake git qt5-tools qrencode)
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://gridcoin.us"
license=('custom:gridcoin')
source=("git+https://github.com/gridcoin-community/Gridcoin-Research.git#branch=development")
sha256sums=('SKIP')
pkgver() {
cd "$_name"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S "$_name" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_GUI=on \
-DENABLE_QRENCODE=on \
-DENABLE_UPNP=on \
-DUSE_DBUS=on \
-DSYSTEM_BDB=on \
-DSYSTEM_LEVELDB=on \
-DSYSTEM_XXD=on
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment