aboutsummaryrefslogtreecommitdiff
path: root/misc/goldencheetah/goldencheetah.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/goldencheetah/goldencheetah.SlackBuild')
-rw-r--r--misc/goldencheetah/goldencheetah.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/misc/goldencheetah/goldencheetah.SlackBuild b/misc/goldencheetah/goldencheetah.SlackBuild
index 28ad3ec29fcf0..a3dec7778efa6 100644
--- a/misc/goldencheetah/goldencheetah.SlackBuild
+++ b/misc/goldencheetah/goldencheetah.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=goldencheetah
SRCNAM=GoldenCheetah
VERSION=${VERSION:-3.5}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -108,12 +108,24 @@ make
install -D -m0755 -s src/GoldenCheetah $PKG/usr/bin/GoldenCheetah
install -D -m0644 src/Resources/linux/51-garmin-usb.rules $PKG/lib/udev/rules.d/51-garmin-usb.rules
+# Generate desktop icon set
+convert -size 512x512 xc:none -fill white -draw "roundrectangle 15,16 487,486 52,52" \
+ src/Resources/images/gc.png -compose Over -composite -crop 475x473+14+15\! logo.png
+for RES in 16 22 24 32 48 64 128 256 512; do
+ mkdir -p $PKG/usr/share/icons/hicolor/${RES}x${RES}/apps
+ convert logo.png -resize ${RES}x${RES}\! $PKG/usr/share/icons/hicolor/${RES}x${RES}/apps/GoldenCheetah.png
+done
+
+mkdir -p $PKG/usr/share/applications
+cp $CWD/GoldenCheetah.desktop $PKG/usr/share/applications/
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}