mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/perl-cairo: Updated for version 1.043
This commit is contained in:
parent
262c67fb24
commit
7133f1729d
3 changed files with 21 additions and 15 deletions
|
@ -2,8 +2,5 @@ Cairo (perl module)
|
||||||
|
|
||||||
Perl bindings to the cairo graphics library.
|
Perl bindings to the cairo graphics library.
|
||||||
|
|
||||||
In order to build it from source, you'll also need
|
This requires perl-extutils-pkgconfig, perl-extutils-depends, and
|
||||||
ExtUtils::PkgConfig >= 0.2 (perl-extutils-pkgconfig)
|
perl-test-number-delta.
|
||||||
ExtUtils::Depends >= 1.0 (perl-extutils-depends)
|
|
||||||
Test::Number::Delta >= 1.0 (perl-test-number-delta)
|
|
||||||
All of these are also available from SlackBuilds.org.
|
|
||||||
|
|
|
@ -34,26 +34,31 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
DOCS="ChangeLog LICENSE NEWS README TODO"
|
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP || exit 1
|
cd $TMP
|
||||||
rm -rf $SRCNAM-$VERSION
|
rm -rf $SRCNAM-$VERSION
|
||||||
tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
cd $SRCNAM-$VERSION || exit 1
|
cd $SRCNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
perl Makefile.PL || exit 1
|
perl Makefile.PL
|
||||||
make OPTIMIZE="$SLKCFLAGS" || exit 1
|
make OPTIMIZE="$SLKCFLAGS"
|
||||||
make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
|
make install INSTALLDIRS=vendor DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG -name $SRCNAM.so -exec strip --strip-unneeded $PKG 2> /dev/null {} \;
|
find $PKG -name $SRCNAM.so -exec strip --strip-unneeded $PKG 2> /dev/null {} \;
|
||||||
|
|
||||||
|
@ -70,7 +75,9 @@ gzip -9 $PKG/usr/man/man3/* 2> /dev/null
|
||||||
find $PKG -depth -type d -empty -exec rm -rf {} \;
|
find $PKG -depth -type d -empty -exec rm -rf {} \;
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
ChangeLog LICENSE NEWS README TODO \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
|
||||||
|
|
||||||
|
@ -78,4 +85,4 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="perl-cairo"
|
||||||
VERSION="1.043"
|
VERSION="1.043"
|
||||||
HOMEPAGE="http://gtk2-perl.sourceforge.net"
|
HOMEPAGE="http://gtk2-perl.sourceforge.net"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/gtk2-perl/Cairo-1.043.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/gtk2-perl/Cairo-1.043.tar.gz"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM="7f79fe4776c725d698d52231f86fab6b"
|
MD5SUM="7f79fe4776c725d698d52231f86fab6b"
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Michael Wagner"
|
MAINTAINER="Michael Wagner"
|
||||||
EMAIL="lapinours@web.de"
|
EMAIL="lapinours@web.de"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in a new issue