Merge branch 'master' of github.com:gwenhael-le-moine/slackbuilds
This commit is contained in:
commit
66aae09156
9 changed files with 490 additions and 18 deletions
84
ap/fish/SlackBuild
Executable file
84
ap/fish/SlackBuild
Executable file
|
@ -0,0 +1,84 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# variables
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
GITHUB_REPO=fish-shell/fish-shell
|
||||||
|
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk
|
||||||
|
ARCH=${ARCH:-$(uname -m)}
|
||||||
|
BUILD=1
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
OUTPUT=/tmp
|
||||||
|
|
||||||
|
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||||
|
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
SLCKFLAGS=" -O "
|
||||||
|
|
||||||
|
# nettoyage préalable
|
||||||
|
rm -fr $PKG $TMP/$PRGNAM-*
|
||||||
|
|
||||||
|
mkdir -p $PKG
|
||||||
|
|
||||||
|
# mise en place
|
||||||
|
cd $TMP
|
||||||
|
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
|
||||||
|
|
||||||
|
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||||
|
cd $TMP/$PRGNAM-$VERSION
|
||||||
|
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
||||||
|
|
||||||
|
# configuration
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||||
|
-DCMAKE_INSTALL_MANDIR=$PREFIX/man \
|
||||||
|
-DCMAKE_INSTALL_DOCDIR=$PREFIX/doc/$PRGNAM \
|
||||||
|
.
|
||||||
|
|
||||||
|
# compilation
|
||||||
|
make -j$(nproc)
|
||||||
|
|
||||||
|
# installation
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
mkdir -p $PKG$PREFIX/man/man1
|
||||||
|
mv $PKG$PREFIX/man/lsyncd.1 $PKG$PREFIX/man/man1/
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp -R COPYING ChangeLog INSTALL *.md examples $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
|
||||||
|
# correction
|
||||||
|
cd $PKG
|
||||||
|
chown -R root:root *
|
||||||
|
|
||||||
|
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||||
|
|
||||||
|
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||||
|
|
||||||
|
# Strip binaries
|
||||||
|
cd $PKG
|
||||||
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
|
||||||
|
# embaumement
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (The user-friendly command line shell)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: fish is a smart and user-friendly command line shell for macOS, Linux,
|
||||||
|
$PRGNAM: and the rest of the family. fish includes features like syntax highlighting,
|
||||||
|
$PRGNAM: autosuggest-as-you-type, and fancy tab completions that just work,
|
||||||
|
$PRGNAM: with no configuration required.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://fishshell.com/
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# empaquetage
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
72
d/hptools/SlackBuild
Executable file
72
d/hptools/SlackBuild
Executable file
|
@ -0,0 +1,72 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -x -e
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
BUILD=1
|
||||||
|
VERSION=${VERSION:-3.0.8}
|
||||||
|
PATCH_VERSION=${PATCH_VERSION:-0.3.2.1}
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
OUTPUT=/tmp
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||||
|
|
||||||
|
mkdir -p $REPOSITORY
|
||||||
|
|
||||||
|
# cleaning
|
||||||
|
rm -fr $PKG $TMP
|
||||||
|
|
||||||
|
# download
|
||||||
|
[ ! -e $REPOSITORY/hptools-src-${VERSION}.tar.gz ] && wget -c https://www.hpcalc.org/hp48/pc/programming/hptools-src-${VERSION}.tar.gz -O $REPOSITORY/hptools-src-${VERSION}.tar.gz
|
||||||
|
[ ! -e $REPOSITORY/hptools-patch-${PATCH_VERSION}.zip ] && wget -c https://www.hpcalc.org/hp48/pc/programming/hptools-patch-${PATCH_VERSION}.zip -O $REPOSITORY/hptools-patch-${PATCH_VERSION}.zip
|
||||||
|
|
||||||
|
# installation
|
||||||
|
mkdir -p $PKG $TMP
|
||||||
|
cd $TMP
|
||||||
|
tar xvf $REPOSITORY/hptools-src-${VERSION}.tar.gz
|
||||||
|
cd Hptools
|
||||||
|
|
||||||
|
unzip $REPOSITORY/hptools-patch-${PATCH_VERSION}.zip
|
||||||
|
gunzip hptools.patch.gz
|
||||||
|
patch -p2 < ./hptools.patch
|
||||||
|
bash -x ./fixperms.sh
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
./configure \
|
||||||
|
--prefix=$PREFIX
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
sed -i "s|dir = $PREFIX|dir = $PKG$PREFIX|g" x86_64-unknown-linux-gnu/Makefile
|
||||||
|
mkdir -p $PKG$PREFIX/bin
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp -R doc/* $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
chmod 644 $PKG$PREFIX/doc/$PRGNAM/*
|
||||||
|
|
||||||
|
# packaging
|
||||||
|
cd $PKG
|
||||||
|
mkdir install
|
||||||
|
cat <<EOF > install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (System RPL and assembly language development kit)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: free System RPL and assembly language (HP syntax and MASD [Meta Kernel] syntax) development kit.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://www.hpcalc.org/details/4263
|
||||||
|
$PRGNAM: https://www.hpcalc.org/details/8971
|
||||||
|
EOF
|
||||||
|
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$PATCH_VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -3,7 +3,7 @@
|
||||||
# variables
|
# variables
|
||||||
VERSION=${VERSION:-"trunk"}
|
VERSION=${VERSION:-"trunk"}
|
||||||
|
|
||||||
BUILD=1
|
BUILD=2
|
||||||
|
|
||||||
TAG=gwh
|
TAG=gwh
|
||||||
OUTPUT=/tmp
|
OUTPUT=/tmp
|
||||||
|
@ -35,18 +35,22 @@ cp -R $REPOSITORY $TMP/
|
||||||
cd $TMP/$PRGNAM/
|
cd $TMP/$PRGNAM/
|
||||||
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
||||||
|
|
||||||
mkdir build-elf2rom
|
# https://www.hpmuseum.org/forum/thread-17667-post-154012.html#pid154012
|
||||||
cd build-elf2rom/
|
# elf2rom is only needed to build actual calculator firmware
|
||||||
qmake ../tools/elf2rom//elf2rom.pro
|
# bmp2font is only needed to edit or create fonts
|
||||||
make -j$NPROC
|
|
||||||
cp elf2rom ../tools-bin/
|
|
||||||
|
|
||||||
cd $TMP/$PRGNAM/
|
# mkdir build-elf2rom
|
||||||
mkdir build-bmp2font
|
# cd build-elf2rom/
|
||||||
cd build-bmp2font/
|
# qmake ../tools/elf2rom//elf2rom.pro
|
||||||
qmake ../tools/fonts/bmp2font//bmp2font.pro
|
# make -j$NPROC
|
||||||
make -j$NPROC
|
# cp elf2rom ../tools-bin/
|
||||||
cp bmp2font ../tools-bin/
|
|
||||||
|
# cd $TMP/$PRGNAM/
|
||||||
|
# mkdir build-bmp2font
|
||||||
|
# cd build-bmp2font/
|
||||||
|
# qmake ../tools/fonts/bmp2font//bmp2font.pro
|
||||||
|
# make -j$NPROC
|
||||||
|
# cp bmp2font ../tools-bin/
|
||||||
|
|
||||||
cd $TMP/$PRGNAM/
|
cd $TMP/$PRGNAM/
|
||||||
mkdir build-comp
|
mkdir build-comp
|
||||||
|
@ -71,8 +75,8 @@ cd $TMP/$PRGNAM/
|
||||||
mkdir -p $PKG$PREFIX/bin/
|
mkdir -p $PKG$PREFIX/bin/
|
||||||
cp build-ui/newrpl-ui build-comp/newrpl-comp $PKG$PREFIX/bin/
|
cp build-ui/newrpl-ui build-comp/newrpl-comp $PKG$PREFIX/bin/
|
||||||
cp build-ui-prime/newrpl-ui $PKG$PREFIX/bin/newrpl-ui-prime
|
cp build-ui-prime/newrpl-ui $PKG$PREFIX/bin/newrpl-ui-prime
|
||||||
cp build-elf2rom/elf2rom $PKG$PREFIX/bin/newrpl-elf2rom
|
# cp build-elf2rom/elf2rom $PKG$PREFIX/bin/newrpl-elf2rom
|
||||||
cp build-bmp2font/bmp2font $PKG$PREFIX/bin/newrpl-bmp2font
|
# cp build-bmp2font/bmp2font $PKG$PREFIX/bin/newrpl-bmp2font
|
||||||
|
|
||||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
cp LICENSE* $PKG$PREFIX/doc/$PRGNAM/
|
cp LICENSE* $PKG$PREFIX/doc/$PRGNAM/
|
||||||
|
|
93
d/rpl2/SlackBuild.broken
Executable file
93
d/rpl2/SlackBuild.broken
Executable file
|
@ -0,0 +1,93 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# variables
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
VERSION=${VERSION:-4.1.32}
|
||||||
|
ARCH=${ARCH:-$(uname -m)}
|
||||||
|
BUILD=1
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
OUTPUT=/tmp
|
||||||
|
|
||||||
|
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||||
|
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
SLCKFLAGS=" -O "
|
||||||
|
|
||||||
|
# nettoyage préalable
|
||||||
|
rm -fr $PKG $TMP/rpl-$VERSION
|
||||||
|
|
||||||
|
mkdir -p $PKG
|
||||||
|
|
||||||
|
# mise en place
|
||||||
|
cd $TMP
|
||||||
|
mkdir -p $REPOSITORY
|
||||||
|
[ ! -e $REPOSITORY/$PRGNAM-$VERSION.tar.bz2 ] && wget -c -O $REPOSITORY/$PRGNAM-$VERSION.tar.bz2 http://www.rpl2.net/download/rpl-${VERSION}.tar.bz2
|
||||||
|
|
||||||
|
cd $TMP/
|
||||||
|
tar xvf $REPOSITORY/$PRGNAM-$VERSION.tar.bz2
|
||||||
|
cd rpl-$VERSION
|
||||||
|
|
||||||
|
# configuration
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=$PREFIX \
|
||||||
|
--mandir=$PREFIX/man \
|
||||||
|
--libdir=$PREFIX/lib$(uname -m | grep -o 64) \
|
||||||
|
--disable-embedded-gnuplot \
|
||||||
|
--disable-dependency-tracking
|
||||||
|
# --enable-rplcas \
|
||||||
|
# --enable-native \
|
||||||
|
# --enable-experimental \
|
||||||
|
# --with-x \
|
||||||
|
|
||||||
|
# compilation
|
||||||
|
make -j$(nproc)
|
||||||
|
|
||||||
|
# installation
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp -R AUTHORS COPYING ChangeLog HEADER INSTALL LIMITATIONS Licence_CeCILL_V2-en.txt Licence_CeCILL_V2-fr.txt NEWS README doc/ examples/ $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
|
||||||
|
[ ! -e $REPOSITORY/reference_rpl_french.ps.bz2 ] && wget -c -O $REPOSITORY/reference_rpl_french.ps.bz2 http://www.rpl2.net/download/reference_rpl_french.ps.bz2
|
||||||
|
|
||||||
|
bzcat $REPOSITORY/reference_rpl_french.ps.bz2 > $PKG$PREFIX/doc/$PRGNAM/reference_rpl_french.ps
|
||||||
|
|
||||||
|
# correction
|
||||||
|
cd $PKG
|
||||||
|
chown -R root:root *
|
||||||
|
|
||||||
|
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||||
|
|
||||||
|
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||||
|
|
||||||
|
# Strip binaries
|
||||||
|
cd $PKG
|
||||||
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
|
||||||
|
# embaumement
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (a programming language designed for scientific computations)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Your goal: improve the portability and facilitate the writing of your numerical
|
||||||
|
$PRGNAM: algorithms or symbolic computations on parallel calulators.
|
||||||
|
$PRGNAM: A simple solution: use RPL/2 language and extensions
|
||||||
|
$PRGNAM: An functional Turing-equivalent language
|
||||||
|
$PRGNAM: A compiled language
|
||||||
|
$PRGNAM: A type-inference language
|
||||||
|
$PRGNAM: An extensible language
|
||||||
|
$PRGNAM: https://github.com/${GITHUB_REPO}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# empaquetage
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
80
wayland/cage/SlackBuild
Executable file
80
wayland/cage/SlackBuild
Executable file
|
@ -0,0 +1,80 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# variables
|
||||||
|
GITHUB_REPO=Hjdskes/cage
|
||||||
|
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk
|
||||||
|
BUILD=1
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
OUTPUT=/tmp
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
# nettoyage préalable
|
||||||
|
rm -fr $PKG $TMP/$PRGNAM
|
||||||
|
|
||||||
|
mkdir -p $PKG
|
||||||
|
|
||||||
|
# mise en place
|
||||||
|
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO} $REPOSITORY
|
||||||
|
cd $REPOSITORY
|
||||||
|
git pull --all
|
||||||
|
|
||||||
|
cp -R $REPOSITORY $TMP/
|
||||||
|
cd $TMP/$PRGNAM/
|
||||||
|
|
||||||
|
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
|
||||||
|
|
||||||
|
# wget -c https://github.com/Hjdskes/cage/pull/217.patch
|
||||||
|
# git am 217.patch
|
||||||
|
|
||||||
|
meson setup --prefix /usr --mandir /usr/man/ -Dxwayland=true build/
|
||||||
|
ninja -C build/
|
||||||
|
cd build/
|
||||||
|
meson install --destdir=$PKG
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp LICENSE *.md $PKG$PREFIX/doc/$PRGNAM/
|
||||||
|
|
||||||
|
# correction
|
||||||
|
cd $PKG
|
||||||
|
chown -R root:root *
|
||||||
|
find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \;
|
||||||
|
|
||||||
|
# embaumement
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
|
||||||
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
# HOW TO EDIT THIS FILE:
|
||||||
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||||
|
# up the first '|' above the ':' following the base package name, and the '|'
|
||||||
|
# on the right side marks the last column you can put a character in. You must
|
||||||
|
# make exactly 11 lines for the formatting to be correct. It's also
|
||||||
|
# customary to leave one space after the ':'.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
$PRGNAM: $PRGNAM (A Wayland kiosk)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://github.com/${GITHUB_REPO}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# empaquetage
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -37,6 +37,9 @@ for p in $CWD/patches/*.patch; do
|
||||||
git am $p
|
git am $p
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Slackware ships meson 0.59.4 and won't move to 0.60.x for the time being
|
||||||
|
sed -i 's|0.60|0.59|' meson.build
|
||||||
|
|
||||||
meson setup \
|
meson setup \
|
||||||
--prefix /usr \
|
--prefix /usr \
|
||||||
--mandir /usr/man/ \
|
--mandir /usr/man/ \
|
||||||
|
|
60
xap/hp49flash/SlackBuild
Executable file
60
xap/hp49flash/SlackBuild
Executable file
|
@ -0,0 +1,60 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -x -e
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
BUILD=1
|
||||||
|
VERSION=${VERSION:-0.2.3}
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
OUTPUT=/tmp
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||||
|
|
||||||
|
mkdir -p $REPOSITORY
|
||||||
|
|
||||||
|
# cleaning
|
||||||
|
rm -fr $PKG $TMP
|
||||||
|
|
||||||
|
# download
|
||||||
|
[ ! -e $REPOSITORY/${PRGNAM}-${VERSION}.tar.gz ] && wget -c https://www.hpcalc.org/hp49/pc/rom/hp49fl02.tgz -O $REPOSITORY/${PRGNAM}-${VERSION}.tar.gz
|
||||||
|
|
||||||
|
# installation
|
||||||
|
mkdir -p $PKG $TMP
|
||||||
|
cd $TMP
|
||||||
|
tar xvf $REPOSITORY/${PRGNAM}-${VERSION}.tar.gz
|
||||||
|
cd ${PRGNAM}-${VERSION}
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/bin
|
||||||
|
cp upgrade $PKG$PREFIX/bin/$PRGNAM
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp Changes FileFormat GPL Protocol README ToDo $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
chmod 644 $PKG$PREFIX/doc/$PRGNAM/*
|
||||||
|
|
||||||
|
# packaging
|
||||||
|
cd $PKG
|
||||||
|
mkdir install
|
||||||
|
cat <<EOF > install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (program to update the HP 49G's ROM under Linux.)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: GPL source code for a program to update the HP 49G's ROM under Linux.
|
||||||
|
$PRGNAM: Works with either a GTK graphical interface or a command line interface.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://www.hpcalc.org/details/3242
|
||||||
|
$PRGNAM:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}-$ARCH-$BUILD$TAG.txz
|
65
xap/hptalx/SlackBuild
Executable file
65
xap/hptalx/SlackBuild
Executable file
|
@ -0,0 +1,65 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -x -e
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
BUILD=1
|
||||||
|
VERSION=${VERSION:-1.3.1a}
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
OUTPUT=/tmp
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM}
|
||||||
|
|
||||||
|
mkdir -p $REPOSITORY
|
||||||
|
|
||||||
|
# cleaning
|
||||||
|
rm -fr $PKG $TMP
|
||||||
|
|
||||||
|
# download
|
||||||
|
[ ! -e $REPOSITORY/${PRGNAM}-${VERSION}.tar.gz ] && wget -c https://master.dl.sourceforge.net/project/hptalx/hptalx/${VERSION}/hptalx-${VERSION}.tar.bz2?viasf=1 -O $REPOSITORY/${PRGNAM}-${VERSION}.tar.gz
|
||||||
|
|
||||||
|
# installation
|
||||||
|
mkdir -p $PKG $TMP
|
||||||
|
cd $TMP
|
||||||
|
tar xvf $REPOSITORY/${PRGNAM}-${VERSION}.tar.gz
|
||||||
|
cd ${PRGNAM}-${VERSION}
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=$PREFIX \
|
||||||
|
--mandir=$PREFIX/man \
|
||||||
|
--docdir=$PREFIX/doc/$PRGNAM \
|
||||||
|
--libdir=$PREFIX/lib$(uname -m | grep -o 64)
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp -R doc/ AUTHORS BUGS COPYING ChangeLog INSTALL NEWS NOTE README README.hp49gplus ToDo $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
chmod 644 $PKG$PREFIX/doc/$PRGNAM/*
|
||||||
|
|
||||||
|
# packaging
|
||||||
|
cd $PKG
|
||||||
|
mkdir install
|
||||||
|
cat <<EOF > install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (HP Calculator<->PC communications program)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: This is HPTalx, a HP Calculator<->PC communications program for Linux,
|
||||||
|
$PRGNAM: initially written by Bruno Barberi Gnecco, extended by Rafael Ostertag
|
||||||
|
$PRGNAM: and released under the GNU Public License.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: http://hptalx.sourceforge.net/index.shtml
|
||||||
|
$PRGNAM:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}-$ARCH-$BUILD$TAG.txz
|
|
@ -4,7 +4,7 @@ set -x
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=$(basename $CWD)
|
PRGNAM=$(basename $CWD)
|
||||||
GITHUB_REPO=gwenhael-le-moine/x49gp
|
GITHUB_REPO=claudiobsd/x49gp
|
||||||
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk
|
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^null$|trunk|')} # or VERSION=trunk
|
||||||
NEWRPL_VERSION=1487
|
NEWRPL_VERSION=1487
|
||||||
|
|
||||||
|
@ -46,6 +46,13 @@ find . \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
|
./pull-roms.sh
|
||||||
|
|
||||||
|
# temporary fix
|
||||||
|
[ ! -e ./firmware/boot-49g+.bin ] && [ -e $CWD/boot-49g+.bin ] && cp $CWD/boot-49g+.bin firmware/
|
||||||
|
[ ! -e ./firmware/boot-50g.bin ] && [ -e $CWD/boot-50g.bin ] && cp $CWD/boot-50g.bin firmware/
|
||||||
|
sed -i 's|= boot-|= firmware/boot-|g' Makefile
|
||||||
|
|
||||||
make INSTALL_PREFIX=/usr INSTALL_MAN_DIR=/usr/man/man1
|
make INSTALL_PREFIX=/usr INSTALL_MAN_DIR=/usr/man/man1
|
||||||
make sdcard INSTALL_PREFIX=/usr INSTALL_MAN_DIR=/usr/man/man1
|
make sdcard INSTALL_PREFIX=/usr INSTALL_MAN_DIR=/usr/man/man1
|
||||||
|
|
||||||
|
@ -57,9 +64,13 @@ mkdir -p $PKG$PREFIX/share/$PRGNAM
|
||||||
[ ! -e $CWD/hp4950v215.zip ] && wget -c -O $CWD/hp4950v215.zip https://www.hpcalc.org/hp49/pc/rom/hp4950v215.zip
|
[ ! -e $CWD/hp4950v215.zip ] && wget -c -O $CWD/hp4950v215.zip https://www.hpcalc.org/hp49/pc/rom/hp4950v215.zip
|
||||||
unzip -d $PKG$PREFIX/share/$PRGNAM/ $CWD/hp4950v215.zip
|
unzip -d $PKG$PREFIX/share/$PRGNAM/ $CWD/hp4950v215.zip
|
||||||
|
|
||||||
mkdir -p $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/
|
# mkdir -p $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/
|
||||||
wget -c -O $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/newrpl.bin https://phoenixnap.dl.sourceforge.net/project/newrpl/TARGET%2050g-ROM/newRPL-${NEWRPL_VERSION}-firmware-50g.bin
|
# wget -c -O $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/newrpl.bin https://phoenixnap.dl.sourceforge.net/project/newrpl/TARGET%2050g-ROM/newRPL-${NEWRPL_VERSION}-firmware-50g.bin
|
||||||
echo "newrpl.bin" > $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/update.scp
|
# echo "newrpl.bin" > $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/update.scp
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/share/$PRGNAM/newrpl/
|
||||||
|
wget -c -O $PKG$PREFIX/share/$PRGNAM/newrpl/newrplfw.bin https://www.hpgcc3.org/downloads/newrplfw.bin
|
||||||
|
echo "newrplfw.bin" > $PKG$PREFIX/share/$PRGNAM/newrpl/update.scp
|
||||||
|
|
||||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM/
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM/
|
||||||
cp README* sdcard $PKG$PREFIX/doc/$PRGNAM/
|
cp README* sdcard $PKG$PREFIX/doc/$PRGNAM/
|
||||||
|
|
Loading…
Reference in a new issue