new stuff
This commit is contained in:
parent
4d36f86422
commit
16811275da
5 changed files with 136 additions and 28 deletions
|
@ -168,7 +168,6 @@ meson setup \
|
|||
-Dstrip=true \
|
||||
-Ddefault-wallpaper=true \
|
||||
-Dswaybar=true \
|
||||
-Dxwayland=enabled \
|
||||
-Dtray=enabled \
|
||||
-Dgdk-pixbuf=enabled \
|
||||
-Dswaynag=true \
|
||||
|
|
|
@ -338,7 +338,7 @@ index 0000000000..423abc425e
|
|||
+#include <xdg-shell-client-protocol.h>
|
||||
+#include <xdg-shell-protocol.h>
|
||||
+
|
||||
+#include "background-image.h"
|
||||
+#include "swaybar/image.h"
|
||||
+#include "cairo.h"
|
||||
+#include "cairo_util.h"
|
||||
+#include "list.h"
|
||||
|
@ -745,7 +745,7 @@ index 0000000000..423abc425e
|
|||
+ list_free(icon_search_paths);
|
||||
+
|
||||
+ if (icon_path) {
|
||||
+ cairo_surface_t *icon = load_background_image(icon_path);
|
||||
+ cairo_surface_t *icon = load_image(icon_path);
|
||||
+ free(icon_path);
|
||||
+ cairo_surface_t *icon_scaled =
|
||||
+ cairo_image_surface_scale(icon, size, size);
|
||||
|
|
|
@ -33,7 +33,7 @@ cd "$TMP"/"$PRGNAM"/ || exit 1
|
|||
qmake6 DOCS_DIR=/usr/doc/"$PRGNAM" MAN_DIR=/usr/man/man1 OpenRGB.pro
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
make
|
||||
make -j $(nproc)
|
||||
make INSTALL_ROOT="$PKG" install
|
||||
|
||||
find "$PKG" -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
|
|
91
xap/saturn_bertolotti/SlackBuild
Executable file
91
xap/saturn_bertolotti/SlackBuild
Executable file
|
@ -0,0 +1,91 @@
|
|||
#!/bin/bash
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename "$CWD")
|
||||
|
||||
BUILD=1
|
||||
VERSION=${VERSION:-latest}
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=gwh
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/_repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
mkdir -p $TMP
|
||||
|
||||
# Cleaning
|
||||
rm -fr "${TMP:?}"/"$PRGNAM" "$PKG"
|
||||
|
||||
# Fetching sources
|
||||
[ ! -e "$REPOSITORY" ] && git clone https://src.le-moine.org/gwh/saturn_bertolotti.git "$REPOSITORY"
|
||||
cd "$REPOSITORY" || exit 1
|
||||
git pull --all
|
||||
|
||||
cp -R "$REPOSITORY" $TMP/"$PRGNAM"
|
||||
|
||||
# Preparation
|
||||
cd $TMP/"$PRGNAM" || exit 1
|
||||
|
||||
[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0)
|
||||
[ "$VERSION" == "" ] && VERSION=trunk
|
||||
if [ "$VERSION" == "trunk" ]; then
|
||||
VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)"
|
||||
else
|
||||
git checkout "$VERSION"
|
||||
fi
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Building
|
||||
make all PREFIX=/usr
|
||||
|
||||
# Installation
|
||||
make install DESTDIR="$PKG" PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
cd "$PKG" || exit 1
|
||||
find -0 . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find -0 . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
cd "$PKG" || exit 1
|
||||
|
||||
[ -d "$PKG$PREFIX"/man ] && find "$PKG$PREFIX"/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Packaging
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (HP48 emulator)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://www.hpcalc.org/details/4382
|
||||
$PRGNAM: https://src.le-moine.org/gwh/saturn_bertolotti.git
|
||||
EOF
|
||||
|
||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||
/sbin/makepkg --linkadd y --chown n --prepend "$OUTPUT/$PRGNAM-$(echo "$VERSION" | tr -d '-')-$ARCH-$BUILD$TAG.txz"
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# variables
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
GITHUB_REPO=wez/wezterm
|
||||
VERSION=${VERSION:-latest}
|
||||
|
||||
|
@ -36,12 +36,30 @@ cd $TMP/$PRGNAM
|
|||
[ "x$VERSION" == "x" ] && VERSION=trunk
|
||||
[ "x$VERSION" == "xtrunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout $VERSION
|
||||
|
||||
cargo build --release
|
||||
./get-deps
|
||||
cargo build --release --features distro-defaults
|
||||
|
||||
mkdir -p $PKG$PREFIX/bin
|
||||
find target/release/ -type f -executable -maxdepth 1 -exec cp {} $PKG$PREFIX/bin/ \;
|
||||
find target/release/ -type f -executable -maxdepth 1 -not -name \*.so -exec cp {} $PKG$PREFIX/bin/ \;
|
||||
chmod 755 $PKG$PREFIX/bin/*
|
||||
|
||||
install -Dm 644 assets/icon/terminal.png $PKG/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.$PRGNAM.png
|
||||
install -Dm 644 assets/$PRGNAM.desktop $PKG/usr/share/applications/org.wezfurlong.$PRGNAM.desktop
|
||||
install -Dm 644 assets/$PRGNAM.appdata.xml $PKG/usr/share/metainfo/org.wezfurlong.$PRGNAM.appdata.xml
|
||||
install -Dm 644 assets/$PRGNAM-nautilus.py $PKG/usr/share/nautilus-python/extensions/$PRGNAM-nautilus.py
|
||||
install -Dm 755 assets/open-$PRGNAM-here -t $PKG/usr/bin
|
||||
install -Dm 644 assets/shell-completion/bash $PKG/usr/share/bash-completion/completions/$PRGNAM
|
||||
install -Dm 644 assets/shell-completion/fish $PKG/usr/share/fish/vendor_completions.d/$PRGNAM.fish
|
||||
install -Dm 644 assets/shell-completion/zsh $PKG/usr/share/zsh/site-functions/_$PRGNAM
|
||||
|
||||
install -Dm 644 assets/shell-integration/* -t $PKG/etc/profile.d
|
||||
|
||||
mkdir -p $PKG/usr/share/terminfo
|
||||
tic -x -o $PKG/usr/share/terminfo termwiz/data/$PRGNAM.terminfo
|
||||
|
||||
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
|
||||
|
||||
# move doc/ to the appropriate location
|
||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||
cp *.md $PKG$PREFIX/doc/$PRGNAM
|
||||
|
|
Loading…
Reference in a new issue