|
|
@ -6,11 +6,17 @@ |
|
|
|
# Written by Niels Horn - niels.horn@gmail.com |
|
|
|
# revision date 2009/10/07 |
|
|
|
|
|
|
|
# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2: |
|
|
|
# - fix build on 15.0 (-std=c++11). |
|
|
|
# - use correct version of wxPython, regardless of /usr/bin/wx-config. |
|
|
|
# - do not install useless INSTALL in doc dir. |
|
|
|
# - absolute path to icon in .desktop. |
|
|
|
|
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=xpe |
|
|
|
VERSION=${VERSION:-0.9.5b} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
BUILD=${BUILD:-2} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
|
|
|
@ -28,9 +34,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 |
|
|
@ -64,13 +67,14 @@ cd ${SRCPRGNAM} |
|
|
|
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 \ |
|
|
|
-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 {} \; |
|
|
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ |
|
|
|
|
|
|
|
CFLAGS="$SLKCFLAGS" \ |
|
|
|
CPPFLAGS="$SLKCFLAGS" \ |
|
|
|
CPPFLAGS="$SLKCFLAGS -std=c++11" \ |
|
|
|
./configure \ |
|
|
|
--with-wx-config=/usr/lib$LIBDIRSUFFIX/wx/config/gtk2-unicode-release-2.8 \ |
|
|
|
--prefix=/usr \ |
|
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \ |
|
|
|
--sysconfdir=/etc \ |
|
|
@ -91,9 +95,7 @@ cat $CWD/xpe.desktop > $PKG/usr/share/applications/xpe.desktop |
|
|
|
cat $CWD/xpe.png > $PKG/usr/share/pixmaps/xpe.png |
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |
|
|
|
cp -a \ |
|
|
|
AUTHORS COPYING INSTALL TODO \ |
|
|
|
$PKG/usr/doc/$PRGNAM-$VERSION |
|
|
|
cp -a AUTHORS COPYING TODO $PKG/usr/doc/$PRGNAM-$VERSION |
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |
|
|
|
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; |
|
|
|
|
|
|
|