From 15e0b8bd38b998cf4c8b0d6361c0454a8345ef7c Mon Sep 17 00:00:00 2001 From: "R. S. Ananda Murthy" Date: Mon, 26 May 2014 11:31:34 +0700 Subject: [PATCH] multimedia/gtick: Added (A Metronome Application for GNU Linux). Signed-off-by: Willy Sudiarto Raharjo --- multimedia/gtick/README | 6 ++ multimedia/gtick/doinst.sh | 9 +++ multimedia/gtick/gtick.SlackBuild | 120 ++++++++++++++++++++++++++++++ multimedia/gtick/gtick.info | 10 +++ multimedia/gtick/gtick.png | Bin 0 -> 4682 bytes multimedia/gtick/slack-desc | 19 +++++ 6 files changed, 164 insertions(+) create mode 100644 multimedia/gtick/README create mode 100644 multimedia/gtick/doinst.sh create mode 100644 multimedia/gtick/gtick.SlackBuild create mode 100644 multimedia/gtick/gtick.info create mode 100644 multimedia/gtick/gtick.png create mode 100644 multimedia/gtick/slack-desc diff --git a/multimedia/gtick/README b/multimedia/gtick/README new file mode 100644 index 0000000000..c17e437d6f --- /dev/null +++ b/multimedia/gtick/README @@ -0,0 +1,6 @@ +GTick (A Metronome Application for GNU Linux) + +GTick is a metronome application written for GNU/Linux and other +UN*X-like operting systems supporting different meters (Even, 2/4, +3/4, 4/4 and more) and speeds ranging from 10 to 1000 bpm. It utilizes +GTK+ and OSS (ALSA compatible). It is part of the GNU Project. diff --git a/multimedia/gtick/doinst.sh b/multimedia/gtick/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /dev/null +++ b/multimedia/gtick/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/multimedia/gtick/gtick.SlackBuild b/multimedia/gtick/gtick.SlackBuild new file mode 100644 index 0000000000..1332568c28 --- /dev/null +++ b/multimedia/gtick/gtick.SlackBuild @@ -0,0 +1,120 @@ +#!/bin/sh + +# Slackware build script for GTick + +# Copyright 2014 R. S. Ananda Murthy, Mysore, India +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=gtick +VERSION=${VERSION:-0.5.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +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 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING NEWS README THANKS TODO ABOUT-NLS INSTALL $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cp $CWD/$PRGNAM.png $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.png + +mkdir -p $PKG/install +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/slack-desc > $PKG/install/slack-desc + +mkdir -p $PKG/usr/share/applications +mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps +cp $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png +chmod -x $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png + +cat < $PKG/usr/share/applications/$PRGNAM.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=GTick +Comment=GTick is a metronome application +Exec=gtick +Terminal=false +Type=Application +Categories=AudioVideo +Icon=gtick +StartupNotify=false +EOF + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/gtick/gtick.info b/multimedia/gtick/gtick.info new file mode 100644 index 0000000000..be12ba1f25 --- /dev/null +++ b/multimedia/gtick/gtick.info @@ -0,0 +1,10 @@ +PRGNAM="gtick" +VERSION="0.5.2" +HOMEPAGE="http://www.antcom.de/gtick/" +DOWNLOAD="http://www.antcom.de/gtick/download/gtick-0.5.2.tar.gz" +MD5SUM="acd1711e8dad0c313832a6a9da0c5215" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="pulseaudio" +MAINTAINER="R. S. Ananda Murthy" +EMAIL="rsamurti@gmail.com" diff --git a/multimedia/gtick/gtick.png b/multimedia/gtick/gtick.png new file mode 100644 index 0000000000000000000000000000000000000000..b0c24f8df8ae2f4e5bd173f9993dc2ea0fff9704 GIT binary patch literal 4682 zcmV-Q61DA#P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FWS01FWTe`H^g00007bV*G`2iOG) z3^64Ur*UTh01?VbL_t(&-p!h8tYzm}-+%9At+n?)XP?W=oVj^C^R23aUy)5 z@px|Mvd_M(z1Dg!&(jZkNHrBW9-LHN(*Clw-=+Uw&;Pl+|7RQi8qaV3kKg3lg{OJX z_k5UpPTa-+i|0@N>=i_^J$v%Fto6;;zc+uKmwn!`p$6BOQkbOF=LnN*$Wr0q>Up-u08tU zp9!~$<(3Kjlb`q(th&a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Ylfn5 z$B}&us}idbW5JolOLM*f%0a*Eg9yn(6hYF$CeNZQQ?gk6S&T-&VywZUlpb8sBZO|T ztx=1!8N^fedKeX)HDsW&o?KZB%Fy;%U0&iVuUtVSYY2_rBq8<7N35L=4<6W{UszI( zWa-hX9Ih%6<1n5@n8~OlKu~Ki3S=e5i1*;kV&UP85>rV?;EjMQNj8(|5iz73D9VbW zT&D6RF)t!l_A4YU%wHwbg~-;V<>Z?vo;m85gHQRAF8x=GvjEIOoVY z5`v)W2|-9PK^8)abTL!*3)-A+mQZ1QN~*^Ck{lw=ETq!LOkqo$CM5STsu(MvnVb`4 zQR1z^ssm#%n()ShQLKZ)2$G@KFNy6OQ(BTP$eU;}#^D@@I8+kO7}_>tS(Ioak(33a z2Go*rhj&iAo?z2_HQ*y6w`&akk?jlmngm}@K;moQk!ENpWl zSW$XQea3Z7Q%@EEB$Km4Q5M@+C5D8k!C8lKO65R8M!ZF}z?g_F%p&KoAPG_be1-b5`6LzhGgYx}6{6@@V9myvsrOyzdv+Fvk|ZJX0&RsX975sOgzz9~wd=Uu0wnhS)LwI#B}460Sy`HT=1Y*G|T z?=>M3O(CjT3YW8JU;BMbjLr^x1!^d5&qPDsyJtn~d99@@jrVF4Ocq#K8%Sz)CFh*y zi91&Z)%mhl+C9s?*AEQK`v3fO=2t$!|Bufz|Lw>4)&KD5H~iiI28bu+jl}+`F#rGn M07*qoM6N<$f_8;4QUCw| literal 0 HcmV?d00001 diff --git a/multimedia/gtick/slack-desc b/multimedia/gtick/slack-desc new file mode 100644 index 0000000000..8ed90c16e9 --- /dev/null +++ b/multimedia/gtick/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gtick: GTick (A Metronome Application for GNU Linux) +gtick: +gtick: GTick is a metronome application written for GNU/Linux and other +gtick: UN*X-like operting systems supporting different meters (Even, 2/4, +gtick: 3/4, 4/4 and more) and speeds ranging from 10 to 1000 bpm. It utilizes +gtick: GTK+ and OSS (ALSA compatible). It is part of the GNU Project. +gtick: +gtick: +gtick: +gtick: +gtick: