From fafdf13b34ea42c1e0e759c482b5eae87841c760 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 6 Nov 2021 18:59:35 +0000 Subject: [PATCH 1/9] [newrpl] don't build nor package internal unused tools --- d/newrpl/SlackBuild | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/d/newrpl/SlackBuild b/d/newrpl/SlackBuild index 7eb3b98b..3439651e 100755 --- a/d/newrpl/SlackBuild +++ b/d/newrpl/SlackBuild @@ -3,7 +3,7 @@ # variables VERSION=${VERSION:-"trunk"} -BUILD=1 +BUILD=2 TAG=gwh OUTPUT=/tmp @@ -35,18 +35,22 @@ 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 -mkdir build-elf2rom -cd build-elf2rom/ -qmake ../tools/elf2rom//elf2rom.pro -make -j$NPROC -cp elf2rom ../tools-bin/ +# https://www.hpmuseum.org/forum/thread-17667-post-154012.html#pid154012 +# elf2rom is only needed to build actual calculator firmware +# bmp2font is only needed to edit or create fonts -cd $TMP/$PRGNAM/ -mkdir build-bmp2font -cd build-bmp2font/ -qmake ../tools/fonts/bmp2font//bmp2font.pro -make -j$NPROC -cp bmp2font ../tools-bin/ +# mkdir build-elf2rom +# cd build-elf2rom/ +# qmake ../tools/elf2rom//elf2rom.pro +# make -j$NPROC +# cp elf2rom ../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/ mkdir build-comp @@ -71,8 +75,8 @@ cd $TMP/$PRGNAM/ mkdir -p $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-elf2rom/elf2rom $PKG$PREFIX/bin/newrpl-elf2rom -cp build-bmp2font/bmp2font $PKG$PREFIX/bin/newrpl-bmp2font +# cp build-elf2rom/elf2rom $PKG$PREFIX/bin/newrpl-elf2rom +# cp build-bmp2font/bmp2font $PKG$PREFIX/bin/newrpl-bmp2font mkdir -p $PKG$PREFIX/doc/$PRGNAM cp LICENSE* $PKG$PREFIX/doc/$PRGNAM/ From 80885890b46322164e6a13c1395f97900c1127fa Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 11 Nov 2021 16:05:29 +0100 Subject: [PATCH 2/9] [d/hptools] add --- d/hptools/SlackBuild | 72 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100755 d/hptools/SlackBuild diff --git a/d/hptools/SlackBuild b/d/hptools/SlackBuild new file mode 100755 index 00000000..60b496b4 --- /dev/null +++ b/d/hptools/SlackBuild @@ -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 < 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 From 964d280480436e3842a432da039bdbc9720bf512 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 14 Nov 2021 14:18:11 +0100 Subject: [PATCH 3/9] [hp49flash] added --- xap/hp49flash/SlackBuild | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 xap/hp49flash/SlackBuild diff --git a/xap/hp49flash/SlackBuild b/xap/hp49flash/SlackBuild new file mode 100755 index 00000000..cde36886 --- /dev/null +++ b/xap/hp49flash/SlackBuild @@ -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 < 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 From 544cccaf17e401cdbafecc6fc2fb64128958ef24 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 15 Nov 2021 10:04:35 +0100 Subject: [PATCH 4/9] [hptalx] added --- xap/hptalx/SlackBuild | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100755 xap/hptalx/SlackBuild diff --git a/xap/hptalx/SlackBuild b/xap/hptalx/SlackBuild new file mode 100755 index 00000000..ee6627ad --- /dev/null +++ b/xap/hptalx/SlackBuild @@ -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 < 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 From 9c1dda467ffb863475e5150e2f84d22168b40af6 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 17 Nov 2021 23:00:41 +0100 Subject: [PATCH 5/9] [x49gp] changes merged upstream --- xap/x49gp/SlackBuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xap/x49gp/SlackBuild b/xap/x49gp/SlackBuild index 582d050b..2f527296 100755 --- a/xap/x49gp/SlackBuild +++ b/xap/x49gp/SlackBuild @@ -4,7 +4,7 @@ set -x CWD=$(pwd) 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 NEWRPL_VERSION=1487 From ec87e46eef14a20fff2503dd6805a36e2a5010b7 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 20 Nov 2021 19:16:40 +0100 Subject: [PATCH 6/9] [x49gp] follow upstream evolution --- xap/x49gp/SlackBuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/xap/x49gp/SlackBuild b/xap/x49gp/SlackBuild index 2f527296..646b83fd 100755 --- a/xap/x49gp/SlackBuild +++ b/xap/x49gp/SlackBuild @@ -46,6 +46,13 @@ find . \ -exec chmod 644 {} \; # 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 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 unzip -d $PKG$PREFIX/share/$PRGNAM/ $CWD/hp4950v215.zip -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 -echo "newrpl.bin" > $PKG$PREFIX/share/$PRGNAM/newrpl-${NEWRPL_VERSION}/update.scp +# 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 +# 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/ cp README* sdcard $PKG$PREFIX/doc/$PRGNAM/ From a16401a8196ef8e4c01eec7561f3caa2199d705f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 24 Nov 2021 11:25:17 +0100 Subject: [PATCH 7/9] [rpl2] added but doesn't build yet Signed-off-by: Gwenhael Le Moine --- d/rpl2/SlackBuild.broken | 93 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100755 d/rpl2/SlackBuild.broken diff --git a/d/rpl2/SlackBuild.broken b/d/rpl2/SlackBuild.broken new file mode 100755 index 00000000..8e94b69c --- /dev/null +++ b/d/rpl2/SlackBuild.broken @@ -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 < $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 From 6abcf09167a6c71f10b2ec3ed3c55dd0308d351d Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 27 Nov 2021 13:37:48 +0100 Subject: [PATCH 8/9] [sway] doesn't really need meson >= 0.60 --- wayland/sway/SlackBuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index b048c420..d4bab342 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -37,6 +37,9 @@ for p in $CWD/patches/*.patch; do git am $p 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 \ --prefix /usr \ --mandir /usr/man/ \ From 91c7dfdea642b230bc8b4c59a2c60b5399dac358 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 27 Nov 2021 13:38:36 +0100 Subject: [PATCH 9/9] [cage|fish] added --- ap/fish/SlackBuild | 84 +++++++++++++++++++++++++++++++++++++++++ wayland/cage/SlackBuild | 80 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100755 ap/fish/SlackBuild create mode 100755 wayland/cage/SlackBuild diff --git a/ap/fish/SlackBuild b/ap/fish/SlackBuild new file mode 100755 index 00000000..b9338bf9 --- /dev/null +++ b/ap/fish/SlackBuild @@ -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 < $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 diff --git a/wayland/cage/SlackBuild b/wayland/cage/SlackBuild new file mode 100755 index 00000000..692cc090 --- /dev/null +++ b/wayland/cage/SlackBuild @@ -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 < $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