Initial commit

This commit is contained in:
Christian Schendel 2025-09-01 05:25:37 +02:00
commit 265a66ce54
Signed by: doppelhelix
GPG key ID: 5874D2437CD5BBB3
11 changed files with 225 additions and 0 deletions

23
.SRCINFO Normal file
View file

@ -0,0 +1,23 @@
pkgbase = escribe-suite-bin
pkgdesc = Evolv eScribe Suite - DNA Management Suite and Ecigstats - INTL Version
pkgver = 2_SP68
pkgrel = 1
url = https://forum.evolvapor.com/topic/69197-linux-escribe-suite-beta-thread/
arch = x86_64
license = LicenseRef-custom
makedepends = unzip
optdepends = hardinfo: For system information utility
source = https://downloads.evolvapor.com/SetupEScribe2_SP68_INT.run
source = escribe-suite-bin.sh
source = escribe-suite-bin.desktop
source = ecigstats.desktop
b2sums = cc6cbbd8a8a8be361fc7afa154e36ee76410356b48a51d71057ebfc21f954ecca830884b47fe5cd7e3f98038f0c1c0319d64718d975827ea425a7b811a96a464
b2sums = 2151c44c156dff69c9ade3884ca061bfac58ec3b6c886d5ca73ad7317b65034bc3c220d8b916454a6487085457c786e3a95f5971110432ccabd6959497cd8a47
b2sums = 01fe26868c534d6b749243c1fc6d30ef0693bf516235efcefa342f36114eecb6db87364fd63c5641a4b031d4f01c2dc88a14d6e92bd4213ad70328388c331277
b2sums = 457e5c7be94b76038967a04cf586cdbbb66331fdcb9dac841d2b1f1773374e1dec6e664f1e6a48732df81622c21e0f16c7cd63c25d3f74732d66abf043975d59
pkgname = escribe-suite-bin
depends = bash
depends = gtk2
depends = gtk-sharp-2
depends = mono

18
.gitignore vendored Normal file
View file

@ -0,0 +1,18 @@
# Ignore everything
*
# But not these files...
!.gitignore
!PKGBUILD
!.SRCINFO
!LICENSE
!chroot-build
!.nvchecker.toml
!/keys
!/keys/pgp
!/keys/pgp/*.asc
!/LICENSES
!/LICENSES/*.txt
!REUSE.toml
!*.desktop
!escribe-suite-bin.sh

4
.nvchecker.toml Normal file
View file

@ -0,0 +1,4 @@
[escribe-suite-bin]
source = "regex"
regex = "https://downloads.evolvapor.com/SetupEScribe(\\d+\\_SP\\d+)_INT.run"
url = "https://forum.evolvapor.com/topic/69197-linux-escribe-suite-beta-thread/#comment-921727"

12
LICENSE Normal file
View file

@ -0,0 +1,12 @@
Copyright Arch Linux Contributors
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

1
LICENSES/0BSD.txt Symbolic link
View file

@ -0,0 +1 @@
../LICENSE

56
PKGBUILD Normal file
View file

@ -0,0 +1,56 @@
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
# Contributor: Khorne <khorne@khorne.me>
pkgname=escribe-suite-bin
pkgver=2_SP68
pkgrel=1
pkgdesc="Evolv eScribe Suite - DNA Management Suite and Ecigstats - INTL Version"
arch=('x86_64')
url="https://forum.evolvapor.com/topic/69197-linux-escribe-suite-beta-thread/"
license=(
LicenseRef-custom
)
makedepends=(
unzip
)
optdepends=(
'hardinfo: For system information utility'
)
source=("https://downloads.evolvapor.com/SetupEScribe${pkgver//./_}_INT.run"
"escribe-suite-bin.sh"
"escribe-suite-bin.desktop"
"ecigstats.desktop")
b2sums=('cc6cbbd8a8a8be361fc7afa154e36ee76410356b48a51d71057ebfc21f954ecca830884b47fe5cd7e3f98038f0c1c0319d64718d975827ea425a7b811a96a464'
'2151c44c156dff69c9ade3884ca061bfac58ec3b6c886d5ca73ad7317b65034bc3c220d8b916454a6487085457c786e3a95f5971110432ccabd6959497cd8a47'
'01fe26868c534d6b749243c1fc6d30ef0693bf516235efcefa342f36114eecb6db87364fd63c5641a4b031d4f01c2dc88a14d6e92bd4213ad70328388c331277'
'457e5c7be94b76038967a04cf586cdbbb66331fdcb9dac841d2b1f1773374e1dec6e664f1e6a48732df81622c21e0f16c7cd63c25d3f74732d66abf043975d59')
prepare() {
chmod +x "SetupEScribe${pkgver//./_}_INT.run"
./"SetupEScribe${pkgver//./_}_INT.run" --target . --noexec
cd common/data
unzip -o escribe-suite.zip -d main/
unzip -o ecigstats.zip -d components/
rm -f ./*.zip
}
package() {
depends=(
bash
gtk2
gtk-sharp-2
mono
)
mkdir -p "${pkgdir}/opt/${pkgname}"
cp -r common/data/* "${pkgdir}/opt/${pkgname}"
# Update permissions to match the default system ones
find "${pkgdir}/opt/" -type d -exec chmod 755 {} \;
find "${pkgdir}/opt/" -type f -exec chmod 644 {} \;
install -Dm0644 "common/data/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm0644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm0644 "ecigstats.desktop" "${pkgdir}/usr/share/applications/ecigstats.desktop"
install -Dm0755 "${pkgname}.sh" "${pkgdir}/usr/bin/escribe-suite"
}
# vim: set ft=sh ts=4 sw=4 et:

24
REUSE.toml Normal file
View file

@ -0,0 +1,24 @@
version = 1
[[annotations]]
path = [
"PKGBUILD",
"README.md",
"keys/**",
".SRCINFO",
".nvchecker.toml",
".gitignore",
"*.install",
"*.sysusers",
"*.tmpfiles",
"*.logrotate",
"*.pam",
"*.service",
"*.socket",
"*.timer",
"*.desktop",
"*.hook",
"escribe-suite-bin.sh",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"

65
chroot-build Executable file
View file

@ -0,0 +1,65 @@
#!/bin/bash
# SPDX-FileCopyrightText: Christian Schendel
# SPDX-License-Identifier: 0BSD
set -euo pipefail
use_tmpfs=true
CHROOT="/tmp/mkarchroot"
check_available_ram() {
if [ "$(awk '/^MemAvailable:/ { print $2; }' /proc/meminfo)" -lt 50000 ]; then
use_tmpfs=false
fi
}
create_chroot_directory() {
if [ $use_tmpfs ]; then
sudo mount --mkdir -t tmpfs -o defaults,size=20G tmpfs $CHROOT
else
sudo mkdir -p "$CHROOT"
fi
}
create_chroot_environment() {
if [[ ! -d "$CHROOT/root" ]]; then
mkarchroot -M ~/.config/pacman/makepkg.conf "$CHROOT/root" base-devel
fi
}
build_package(){
arch-nspawn "$CHROOT/root" pacman -Syu
if makechrootpkg -c -r "$CHROOT" -- -Asf . ; then
makepkg --printsrcinfo >.SRCINFO
else
delete_chroot_environment && echo -e "\n\e[1;31m==> BUILD FAILED: \e[1;37m$CHROOT removed\e[0m " && exit 1
fi
}
sign_package(){
PACKAGE="$(makepkg --packagelist)"
gpg --use-agent --output "$PACKAGE.sig" --detach-sign "$PACKAGE"
}
delete_chroot_environment() {
if [ "$(stat -f --format=%T "$CHROOT")" == "btrfs" ]; then
{
sudo btrfs subvolume delete "$CHROOT/root/var/lib/portables"
sudo btrfs subvolume delete "$CHROOT/root/var/lib/machines"
sudo btrfs subvolume delete "$CHROOT/root"
sudo rm -Rf $CHROOT
} >>/dev/null 2>&1
elif [ "$(stat -f --format=%T "$CHROOT")" == "tmpfs" ]; then
sudo umount -f $CHROOT
fi
sudo rm -Rf $CHROOT
}
check_available_ram
create_chroot_directory
create_chroot_environment
build_package
sign_package
delete_chroot_environment
# vim: set ts=4 sw=4 et:

12
ecigstats.desktop Normal file
View file

@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Value=1.0
Type=Application
Name=ECigStats
GenericName=ECigStats
Comment=Help tell the true story of electronic cigarettes
Icon=accessories-calculator
Exec=mono /opt/escribe-suite-bin/components/ecigstats.exe
Categories=Science
Path=/opt/escribe-suite-bin/

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Name=EScribe Suite
Comment=DNA Management Suite + ECigStats
Exec=mono /opt/escribe-suite-bin/main/EScribe.exe
Type=Application
Icon=/opt/escribe-suite-bin/main/Pictures/Theme Designer/Evolv DNA Color/Miscellaneous/Evolv Symbol Dark Large.png
Categories=Tools;

3
escribe-suite-bin.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
cd /opt/escribe-suite-bin/main/
mono EScribe.exe