development/simulavr: Updated for version 20201006_32985f7.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-26 14:34:05 +01:00 committed by Willy Sudiarto Raharjo
parent fbcdde7c08
commit 4484adf1c7
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 27 additions and 20 deletions

View File

@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=simulavr
VERSION=${VERSION:-git20170521}
VERSION=${VERSION:-20201006_32985f7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -70,7 +70,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.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -79,21 +79,29 @@ 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 {} \;
./bootstrap
# Respect standard locations and avoid overwriting system headers
sed -i \
-e "s|DESTINATION\ \"lib|DESTINATION \"lib$LIBDIRSUFFIX|" \
-e "s|DESTINATION\ \"include|DESTINATION \"include/$PRGNAM|" \
libsim{,ulavr}/CMakeLists.txt
sed -i \
-e "s|share/man|man|" \
-e "s|share/doc/common|doc/$PRGNAM-$VERSION|" \
{app,doc}/CMakeLists.txt
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux \
--with-tclconfig=/usr/lib${LIBDIRSUFFIX}
make
make install DESTDIR=$PKG
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TCL=ON \
-DBUILD_PYTHON=ON \
-DCMAKE_BUILD_TYPE=Release ..
make -j1
make -j1 progdoc
make install DESTDIR=$PKG
cd ..
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
@ -103,7 +111,6 @@ rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING README.* INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,8 +1,8 @@
PRGNAM="simulavr"
VERSION="git20170521"
VERSION="20201006_32985f7"
HOMEPAGE="http://www.nongnu.org/simulavr/"
DOWNLOAD="https://www.dropbox.com/s/49s2wypi31a62mc/simulavr-git20170521.tar.gz"
MD5SUM="a4352148372dad2358aceed27d81de93"
DOWNLOAD="https://ponce.cc/slackware/sources/repo/simulavr-20201006_32985f7.tar.xz"
MD5SUM="a19d3f65e20ffdf03298d49d29cc6606"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="avr-gcc avr-libc"