diff options
Diffstat (limited to 'libraries/libetonyek/libetonyek.SlackBuild')
-rw-r--r-- | libraries/libetonyek/libetonyek.SlackBuild | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/libraries/libetonyek/libetonyek.SlackBuild b/libraries/libetonyek/libetonyek.SlackBuild index d9fa680ea4..52949c8a35 100644 --- a/libraries/libetonyek/libetonyek.SlackBuild +++ b/libraries/libetonyek/libetonyek.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libetonyek -VERSION=${VERSION:-0.1.6} +VERSION=${VERSION:-0.1.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -69,23 +69,17 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -DOC=${DOC:-no} -if [ ! "$DOC" = "yes" ]; then - doc="--without-docs" -else - doc="" -fi +case "${DOC:-0}" in + 0) doc='--without-docs' ;; + *) doc='--with-docs' ;; +esac -if ! pkg-config --exists cppunit; then - cppunit="--disable-tests" +if pkg-config --exists cppunit; then + cppunit='--enable-tests' else - cppunit="" + cppunit='--disable-tests' fi -# patch taken from Debian -zcat $CWD/mdds-1.2.patch.gz | patch -p1 -autoreconf -fi - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -102,7 +96,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog FEATURES NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog FEATURES NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |