mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
office/hamster: Updated for version 3.0.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
c00f1e9ef4
commit
be64fc3588
3 changed files with 12 additions and 24 deletions
|
@ -1,13 +1,3 @@
|
||||||
schema_install() {
|
|
||||||
SCHEMA="$1"
|
|
||||||
GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
|
|
||||||
chroot . gconftool-2 --makefile-install-rule \
|
|
||||||
/etc/gconf/schemas/$SCHEMA \
|
|
||||||
1>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
schema_install hamster-time-tracker.schemas
|
|
||||||
|
|
||||||
if [ -x /usr/bin/update-desktop-database ]; then
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# Slackware build script for Hamster - The Gnome Time Tracker
|
# Slackware build script for Hamster - The Gnome Time Tracker
|
||||||
#
|
#
|
||||||
# Copyright 2016-2022 Marek Šrejma <marek@modweb.de>, Germany
|
# Copyright 2016-2023 Marek Šrejma <marek@modweb.de>, Germany
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=hamster
|
PRGNAM=hamster
|
||||||
VERSION=${VERSION:-3.0.2}
|
VERSION=${VERSION:-3.0.3}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
||||||
# the name of the created package would be, and then exit. This information
|
|
||||||
# could be useful to other scripts.
|
|
||||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -50,13 +47,10 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i586" ]; then
|
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
SLKCFLAGS="-O2 -march=$ARCH -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
|
||||||
LIBDIRSUFFIX=""
|
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
LIBDIRSUFFIX="64"
|
LIBDIRSUFFIX="64"
|
||||||
else
|
else
|
||||||
|
@ -78,6 +72,8 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
sed -e "s/python/python3/" -i waf
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./waf configure build \
|
./waf configure build \
|
||||||
|
@ -89,6 +85,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
DESTDIR=$PKG \
|
DESTDIR=$PKG \
|
||||||
./waf install
|
./waf install
|
||||||
|
|
||||||
|
rm -f $PKG/usr/share/glib-2.0/schemas/gschemas.compiled
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a \
|
||||||
AUTHORS COPYING MAINTAINERS NEWS.md README.md \
|
AUTHORS COPYING MAINTAINERS NEWS.md README.md \
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="hamster"
|
PRGNAM="hamster"
|
||||||
VERSION="3.0.2"
|
VERSION="3.0.3"
|
||||||
HOMEPAGE="http://projecthamster.org/"
|
HOMEPAGE="http://projecthamster.org/"
|
||||||
DOWNLOAD="https://github.com/projecthamster/hamster/archive/v3.0.2/hamster-3.0.2.tar.gz"
|
DOWNLOAD="https://github.com/projecthamster/hamster/archive/v3.0.3/hamster-3.0.3.tar.gz"
|
||||||
MD5SUM="1c229c304cc0aae85f02c72a4e27d66a"
|
MD5SUM="5594d01516278c48584f335b97f5a55f"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in a new issue