diff options
author | Tim Dickson <dickson.tim@googlemail.com> | 2023-07-19 09:53:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-19 09:53:26 +0700 |
commit | 52401eeb1aa6e4f3d75946bd1e0a49b5ac66f114 (patch) | |
tree | c9834f4cb69e45fe58d8b2d4ccbc996c01ce7d8e /libraries/libpaper/libpaper.SlackBuild | |
parent | cd696f71b6c428162b3b08deb59570d10cbbfa7b (diff) |
libraries/libpaper: Updated for version 2.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libpaper/libpaper.SlackBuild')
-rw-r--r-- | libraries/libpaper/libpaper.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libraries/libpaper/libpaper.SlackBuild b/libraries/libpaper/libpaper.SlackBuild index 8c9ced54826b0..1734dedb158ee 100644 --- a/libraries/libpaper/libpaper.SlackBuild +++ b/libraries/libpaper/libpaper.SlackBuild @@ -9,11 +9,14 @@ # 25/06/2019 updated for 1.1.27 # 25/06/2019 updated for 1.1.28 # 14/04/2022 updated for 1.1.28build2 +# 24/02/2023 updated for 2.0.10 and new upstream location, path for autoconf +# 16/07/2023 updated for 2.1.1 +# note: we use release source, as archive source misses out submodules. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libpaper -VERSION=${VERSION:-1.1.28build2} +VERSION=${VERSION:-2.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -52,7 +55,8 @@ else LIBDIRSUFFIX="" fi -# Set default papersize: a3, a4, a5, b5, letter, legal, executive, note, 11x17 +# Set default papersize: a3, a4, a5, b5, letter, legal, executive, note, 11x17 etc.. +# /etc/paperspecs contains the full list. PAPERSIZE=${PAPERSIZE:-a4} set -e @@ -61,7 +65,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf "$CWD/${PRGNAM}_${VERSION}.tar.gz" +tar xvf "$CWD/${PRGNAM}-${VERSION}.tar.gz" cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,12 +73,13 @@ find -L . \ -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -#patch configure.ac for default paper size -sed -i "s/PAPERSIZE=letter/PAPERSIZE=$PAPERSIZE/g" configure.ac -autoreconf -i +#patch configure.ac to allow with slackware's autoconf version +sed -i "s/2.71/2.69/g" configure.ac +#autoreconf -i -f CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ + --enable-relocatable \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ @@ -85,9 +90,7 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make make install DESTDIR=$PKG - rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la - # Create a /etc/papersize default file mkdir -p $PKG/etc echo $PAPERSIZE > $PKG/etc/papersize.new |