summaryrefslogtreecommitdiffstats
path: root/libraries/libucil/libucil.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libucil/libucil.SlackBuild')
-rw-r--r--libraries/libucil/libucil.SlackBuild23
1 files changed, 18 insertions, 5 deletions
diff --git a/libraries/libucil/libucil.SlackBuild b/libraries/libucil/libucil.SlackBuild
index 79eb6704e1..db80221ec5 100644
--- a/libraries/libucil/libucil.SlackBuild
+++ b/libraries/libucil/libucil.SlackBuild
@@ -23,7 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libucil
-VERSION=${VERSION:-0.9.10}
+SRCNAM=unicap
+VERSION=${VERSION:-20110724}
+SRCVERSION=${SRCVERSION:-c56564102dbf88d525b1cce4da7b031324aea718}
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
+# Generate build files.
+autoreconf --force --install
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -82,7 +95,7 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PRGDOC