Skip to content

Instantly share code, notes, and snippets.

@Pi03k
Created June 29, 2018 11:49
Show Gist options
  • Save Pi03k/a184c2fbbcb1cad50f607b0ead418bfa to your computer and use it in GitHub Desktop.
Save Pi03k/a184c2fbbcb1cad50f607b0ead418bfa to your computer and use it in GitHub Desktop.
# Maintainer: Ammann Max <maximilian.ammann@googlemail.com>
pkgname=golden-cheetah-git
pkgver=v3.5.DEV1806.r0.a86b0e9b7
pkgrel=1
pkgdesc="Cycling Power Analysis Software. We believe that cyclists and triathletes should be able to download their power data to the
computer of their choice, analyze it in whatever way they see fit, and share their methods of
analysis with others."
arch=('i686' 'x86_64')
url="http://www.goldencheetah.org/"
license=('GPL')
makedepends=(bison flex 'gcc' 'make' 'qt5-tools' )
depends=('qt5-base' 'qt5-svg' qt5-location qt5-declarative qt5-webchannel qt5-sensors qt5-serialport qt5-webkit qt5-multimedia qt5-script qt5-connectivity qt5-charts vlc)
optdepends=('vlc' 'qwtplot3d-svn' 'srmio' 'libftd2xx' 'libkml' 'libical' 'libusb' 'libsamplerate')
options=('!strip' '!buildflags' 'staticlibs')
source=('golden-cheetah::git+https://github.com/GoldenCheetah/GoldenCheetah.git'
GoldenCheetah.desktop gc.png gcconfig.pri)
md5sums=('SKIP' af5e5a4376ee82ccfb69aa455b35a2d9 e1fb382b4a7316da1ffd435e45e50c4a '3857988a67fdf94b999fc05753ac2494')
pkgver() {
cd "${srcdir}/golden-cheetah"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "${srcdir}/golden-cheetah/"
cd "qwt/"
cp qwtconfig.pri.in qwtconfig.pri
qmake-qt5 QMAKE_DEFAULT_INCDIRS=
make -j 25
cd "../src/"
cp $srcdir/gcconfig.pri gcconfig.pri
qmake-qt5 QMAKE_LRELEASE=/usr/bin/lrelease-qt5 QMAKE_DEFAULT_INCDIRS=
make -j 25
}
package() {
mkdir -p "$pkgdir/usr/bin/"
cp "${srcdir}/golden-cheetah/src/GoldenCheetah" "$pkgdir/usr/bin/"
mkdir -p "$pkgdir/usr/lib/udev/rules.d/"
mkdir -p "$pkgdir/usr/share/applications/"
cp "${srcdir}/GoldenCheetah.desktop" "$pkgdir/usr/share/applications/"
mkdir -p "$pkgdir/usr/share/pixmaps/"
cp "${srcdir}/gc.png" "$pkgdir/usr/share/pixmaps/"
}
@simjetlag
Copy link

Hello,
I am a TOTAL novice and just want to get Golden Cheetah to work on my Fedora 29 system. Can anyone translate into english how to install GC? I see the list of "sentences" above but don't know what we are supposed to do with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment