mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
perl/perl-net-dbus: Miscellaneous cleanup to build script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
3d9ef854c3
commit
a15940ffc2
3 changed files with 26 additions and 20 deletions
|
@ -1,19 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for <appname>
|
||||
# Slackware build script for perl-net-dbus
|
||||
|
||||
# Written by (your name) (your contact information)
|
||||
|
||||
# (add license information here if you desire; otherwise,
|
||||
# all submissions are considered to be in the public domain)
|
||||
# Some licenses may incorporate the "Written by" information
|
||||
# above, and if so, that line can be omitted
|
||||
# We strongly suggest *not* using GPL for scripts, as it requires
|
||||
# a copy of the GPL to be distributed with it. Since the GPL
|
||||
# itself is longer than any build script will be, this just doesn't
|
||||
# make good sense...
|
||||
|
||||
Net-DBus-0.33.6.tar.gz
|
||||
# Copyright 2011 Binh Nguyen <binhnguyen@fastmail.fm>
|
||||
# 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=perl-net-dbus
|
||||
VERSION=${VERSION:-0.33.6}
|
||||
|
@ -49,7 +56,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -65,6 +72,7 @@ find . \
|
|||
-exec chmod 644 {} \;
|
||||
|
||||
perl Makefile.PL \
|
||||
OPTIMIZE="$SLKCFLAGS" \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3
|
||||
|
@ -76,15 +84,13 @@ find $PKG | xargs 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
|
||||
|
||||
# Remove perllocal.pod, other special files, and empty directories
|
||||
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
|
||||
find $PKG -depth -type d -empty -delete || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS CHANGES LICENSE README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS CHANGES LICENSE README examples/ $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
PRGNAM="perl-net-dbus"
|
||||
VERSION="0.33.6"
|
||||
HOMEPAGE="http://search.cpan.org/~danberr/Net-DBus/"
|
||||
HOMEPAGE="http://search.cpan.org/dist/Net-DBus/"
|
||||
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/D/DA/DANBERR/Net-DBus-0.33.6.tar.gz"
|
||||
MD5SUM="a1dbce89b1b839fd0e46d74067ae2e35"
|
||||
DOWNLOAD_x86_64=""
|
||||
|
|
|
@ -12,7 +12,7 @@ perl-net-dbus: Net::DBus provides a Perl XS API to the dbus inter-application
|
|||
perl-net-dbus: messaging system. The Perl API covers the core base level of the
|
||||
perl-net-dbus: dbus APIs, not concerning itself yet with the GLib or QT wrappers.
|
||||
perl-net-dbus:
|
||||
perl-net-dbus: Homepage: http://www.freedesktop.org/software/dbus/
|
||||
perl-net-dbus: Homepage: http://search.cpan.org/dist/Net-DBus/
|
||||
perl-net-dbus:
|
||||
perl-net-dbus:
|
||||
perl-net-dbus:
|
||||
|
|
Loading…
Reference in a new issue