diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/perl-gtk2/README | 12 | ||||
-rw-r--r-- | libraries/perl-gtk2/perl-gtk2.SlackBuild | 27 | ||||
-rw-r--r-- | libraries/perl-gtk2/perl-gtk2.info | 2 |
3 files changed, 21 insertions, 20 deletions
diff --git a/libraries/perl-gtk2/README b/libraries/perl-gtk2/README index 0f3989b176..bb9c02e5ec 100644 --- a/libraries/perl-gtk2/README +++ b/libraries/perl-gtk2/README @@ -1,11 +1,3 @@ -Gtk2 (perl module) +Perl bindings to the 2.x series of the Gtk+ graphical user interface library. -Perl bindings to the 2.x series of the Gtk+ graphical user -interface library. - -In order to build it from source, you'll also need - Glib >= 1.140 (Perl module, perl-glib) - Cairo >= 1.00 (Perl module, perl-cairo) - ExtUtils::Depends >= 0.2 (perl-extutils-depends) - ExtUtils::PkgConfig >= 1.03 (perl-extutils-pkgconfig) -All of these are also available from SlackBuilds.org. +This requires perl-glib and perl-cairo. diff --git a/libraries/perl-gtk2/perl-gtk2.SlackBuild b/libraries/perl-gtk2/perl-gtk2.SlackBuild index c0cae2c5ac..1bfa2dbe45 100644 --- a/libraries/perl-gtk2/perl-gtk2.SlackBuild +++ b/libraries/perl-gtk2/perl-gtk2.SlackBuild @@ -34,26 +34,31 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="AUTHORS ChangeLog LICENSE NEWS README TODO" - 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" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $SRCNAM-$VERSION -tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1 -cd $SRCNAM-$VERSION || exit 1 +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -perl Makefile.PL || exit 1 -make OPTIMIZE="$SLKCFLAGS" || exit 1 -make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 +perl Makefile.PL +make OPTIMIZE="$SLKCFLAGS" +make install INSTALLDIRS=vendor DESTDIR=$PKG 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 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog LICENSE NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/* @@ -78,4 +85,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc 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} diff --git a/libraries/perl-gtk2/perl-gtk2.info b/libraries/perl-gtk2/perl-gtk2.info index aa7b3e10b1..99de595e6b 100644 --- a/libraries/perl-gtk2/perl-gtk2.info +++ b/libraries/perl-gtk2/perl-gtk2.info @@ -2,7 +2,9 @@ PRGNAM="perl-gtk2" VERSION="1.161" HOMEPAGE="http://gtk2-perl.sourceforge.net" DOWNLOAD="http://downloads.sourceforge.net/gtk2-perl/Gtk2-1.161.tar.gz" +DOWNLOAD_x86_64="" MD5SUM="4c45fc7e4905e7a72b46d3fb39c2420b" +MD5SUM_x86_64="" MAINTAINER="Michael Wagner" EMAIL="lapinours@web.de" APPROVED="rworkman" |