summaryrefslogtreecommitdiffstats
path: root/libraries/PDCurses/PDCurses.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/PDCurses/PDCurses.SlackBuild')
-rw-r--r--libraries/PDCurses/PDCurses.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/libraries/PDCurses/PDCurses.SlackBuild b/libraries/PDCurses/PDCurses.SlackBuild
index 800607a13b..3a7bc0dba7 100644
--- a/libraries/PDCurses/PDCurses.SlackBuild
+++ b/libraries/PDCurses/PDCurses.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=PDCurses
-VERSION=${VERSION:-3.4}
+VERSION=${VERSION:-3.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,6 +62,10 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+
+cp -p x11/Makefile.in x11/Makefile.in.orig
+cat $CWD/PDCurses-3.6-makefile-in.patch | patch -p0
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,10 +73,7 @@ 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 {} \;
-if [ "$ARCH" = "x86_64" ]; then
- patch -p1 < $CWD/PDCurses_x64.patch
-fi
-
+cd x11
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -83,24 +84,24 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-x \
+ --x-libraries=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux
+
make
make install DESTDIR=$PKG
+cd $TMP/$PRGNAM-$VERSION
+
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
-# remove static library
-rm $PKG/usr/lib${LIBDIRSUFFIX}/libXCurses.a
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a HISTORY IMPLEMNT README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a HISTORY.md IMPLEMNT.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}