games/gtkballs: Script Cleanup + New Maintainer.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2014-03-01 07:06:18 +07:00 committed by Willy Sudiarto Raharjo
parent 865817ae8b
commit cfd7957bba
2 changed files with 9 additions and 16 deletions

View file

@ -20,9 +20,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20140228 bkw: took over maintenance, simplified a bit
PRGNAM=gtkballs
VERSION=${VERSION:-3.1.5}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -77,32 +79,23 @@ CFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
make install-strip DESTDIR=$PKG
chown -R root:games $PKG/var/games/$PRGNAM
chmod -R ug+w $PKG/var/games/$PRGNAM
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
gzip $PKG/usr/man/man?/$PRGNAM.*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO \
cp -a AUTHORS COPYING ChangeLog NEWS README* TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
# Link icon to /usr/share/pixmaps
mkdir -p $PKG/usr/share/pixmaps
( cd $PKG/usr/share/pixmaps
ln -sf /usr/share/gtkballs/gtkballs_16x16.png gtkballs.png
)
ln -s ../$PRGNAM/${PRGNAM}_16x16.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -6,5 +6,5 @@ MD5SUM="1654799db1e9a46607b06f7ad3c0bf05"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="nobody"
EMAIL="nobody"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"