perl/perl-lirc-client: Updated for version 2.00.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2013-11-09 15:38:07 +07:00 committed by Robby Workman
parent 44268e67df
commit 5d92195a46
2 changed files with 19 additions and 15 deletions

View file

@ -6,16 +6,14 @@
PRGNAM=perl-lirc-client
SRCNAM=Lirc-Client
VERSION=${VERSION:-1.51}
VERSION=${VERSION:-2.00}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -48,15 +46,21 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find . \
find -L . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
perl Makefile.PL INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3
make
make install DESTDIR=$PKG
perl Build.PL \
prefix=/usr \
installdirs=vendor \
destdir=$PKG
./Build
./Build test
./Build install \
--install_path bindoc=/usr/man/man1 \
--install_path libdoc=/usr/man/man3
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@ -77,7 +81,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -depth -type d -empty -exec rmdir {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Changes README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="perl-lirc-client"
VERSION="1.51"
HOMEPAGE="http://search.cpan.org/~mgrimes/Lirc-Client-1.51/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/M/MG/MGRIMES/Lirc-Client-1.51.tar.gz"
MD5SUM="b5b6421d9f4fc773716be4b5aff49d05"
VERSION="2.00"
HOMEPAGE="http://search.cpan.org/~mgrimes/Lirc-Client-2.00/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/M/MG/MGRIMES/Lirc-Client-2.00.tar.gz"
MD5SUM="58c8be6a2f8dfdccd2bb89f735253d7e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-class-accessor perl-file-path-expand"
REQUIRES="perl-Moo perl-class-accessor perl-file-path-expand"
MAINTAINER="Pablo Santamaria"
EMAIL="pablosantamaria@gmail.com"