mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
academic/gtypist: Added desktop file.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
233432d3db
commit
e143dcab1a
2 changed files with 18 additions and 4 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
PRGNAM=gtypist
|
||||
VERSION=${VERSION:-2.9.5}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -64,10 +64,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
|
|||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
@ -84,6 +84,10 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Copy .desktop file
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
cp $CWD/gtypist.desktop $PKG/usr/share/applications/
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
|
10
academic/gtypist/gtypist.desktop
Normal file
10
academic/gtypist/gtypist.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Gtypist
|
||||
GenericName=GNU Typist typing tutor
|
||||
Icon=gtypist
|
||||
Exec=gtypist
|
||||
Type=Application
|
||||
Categories=Education;
|
||||
Terminal=true
|
||||
StartupNotify=false
|
Loading…
Reference in a new issue