diff options
Diffstat (limited to 'libraries/libunicapgtk/libunicapgtk.SlackBuild')
-rw-r--r-- | libraries/libunicapgtk/libunicapgtk.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/libraries/libunicapgtk/libunicapgtk.SlackBuild b/libraries/libunicapgtk/libunicapgtk.SlackBuild index 1dc3f822dc..819c3bf195 100644 --- a/libraries/libunicapgtk/libunicapgtk.SlackBuild +++ b/libraries/libunicapgtk/libunicapgtk.SlackBuild @@ -23,7 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libunicapgtk -VERSION=${VERSION:-0.9.8} +SRCNAM=unicap +VERSION=${VERSION:-20110826} +SRCVERSION=${SRCVERSION:-d3b3e72ba5347fa00d9bfb589f5ad5066a8b64d9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +61,17 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$SRCVERSION + +# The upstream tarball will be named differently, depending on the +# file being downloaded manually (web browser) or with wget. +if [ -e $CWD/$SRCVERSION.tar.gz ]; then + tar xvzf $CWD/$SRCVERSION.tar.gz +else + tar xvzf $CWD/$SRCNAM-$SRCVERSION.tar.gz +fi + +cd $SRCNAM-$SRCVERSION/$PRGNAM chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -72,6 +82,9 @@ find -L . \ PRGSHR=$PKG/usr/share PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +autoreconf --force --install +intltoolize + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -89,9 +102,6 @@ mkdir -p $PRGDOC cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL README $PRGDOC/ cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild -# Remove empty doc-gtk documentation. -rm -r $PRGSHR/gtk-doc - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |