diff options
Diffstat (limited to 'system/posixovl/posixovl.SlackBuild')
-rw-r--r-- | system/posixovl/posixovl.SlackBuild | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/system/posixovl/posixovl.SlackBuild b/system/posixovl/posixovl.SlackBuild index 6528e6d4a9..9512761dda 100644 --- a/system/posixovl/posixovl.SlackBuild +++ b/system/posixovl/posixovl.SlackBuild @@ -22,13 +22,20 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220212 bkw: Modified by SlackBuilds.org: upstream moved from +# sourceforge to github, so update the URLs. The old .tar.xz tarball +# is gone from sourceforge. The new .tar.gz one from github has a +# different md5sum, but its contents are identical (except that the +# top-level directory now has the version number in it). Also, fix +# compliation on 15.0 and stop installing the install instructions. + set -e cd $(dirname $0) ; CWD=$(pwd) PRGNAM=posixovl VERSION=${VERSION:-1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +47,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -70,18 +74,18 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION - -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -mv $PRGNAM $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +chmod 644 * + +# 20220212 bkw: include file moved on 15.0. +sed -i 's,attr/xattr.h,linux/xattr.h,g' * -./autogen.sh +sh ./autogen.sh + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -92,16 +96,13 @@ find -L . \ --build=$ARCH-slackware-linux make -make install PREFIX=/usr DESTDIR=$PKG - -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 +make install-strip PREFIX=/usr DESTDIR=$PKG -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +# 20220212 bkw: really, the man page ought to be in section 8, or else +# the binary ought to be in /usr/bin. but leave it as-is... +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp INSTALL.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |