initial commit

This commit is contained in:
2024-08-08 03:30:24 -04:00
commit 8d2f9bcee4
4 changed files with 72 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dest/
void-packages/

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# A bunch of packages that I want on void
For a list of packages look at the srcpkgs directory.
To install the packages in this repo make a file like called:
/etc/xbps.d/squibid.conf with the following:
```conf
repository=https://voidpkgs.squi.bid
```

22
build.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
# a small script to help me compile all packages and push them to my server
set -e # exit asap
mkdir -p ./dest
[ ! -d void-packages ] && git clone --depth 1 https://github.com/void-linux/void-packages.git
./void-packages/xbps-src binary-bootstrap
for f in srcpkgs/*; do
cp ./"$f" ./void-packages/"$f" -ru
./void-packages/xbps-src pkg "$f"
cp ./void-packages/hostdir/binpkgs/*.xbps ./dest/ -u
done
# copy repodata after building all packages
cp ./void-packages/hostdir/binpkgs/x86_64-repodata ./dest/
# tell the builder to sign their packages
printf "\n\n\033[1;31mRun the following commands:\033[m\n"
printf 'xbps-rindex -s ./dest --privkey \033[31m/path/to/key\033[m --signedby \033[31m"Name <Email>"\033[m\n'
printf 'xbps-rindex -S ./dest/* --privkey \033[31m/path/to/key\033[m\n'

40
srcpkgs/vesktop/template Normal file
View File

@ -0,0 +1,40 @@
# Template file for 'vesktop'
pkgname=vesktop
version=1.5.3
revision=1
archs="x86_64"
short_desc="custom Discord App"
maintainer="Zachary Scheiman <me@zacharyscheiman.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/Vencord/Vesktop"
distfiles="https://github.com/Vencord/Vesktop/releases/download/v${version}/vesktop-${version}.tar.gz"
checksum=5ab37924e87bd7beb19ce2cc6599c280be765f1577573f014918fb60b5a7cd86
do_install() {
local package_location="usr/lib/$pkgname" item
vmkdir ${package_location}
chmod +x vesktop
for item in \
locales \
resources \
vesktop \
libffmpeg.so \
snapshot_blob.bin \
icudtl.dat \
libEGL.so \
libGLESv2.so \
chrome_100_percent.pak \
chrome_200_percent.pak \
chrome-sandbox \
chrome_crashpad_handler \
resources.pak \
libvulkan.so.1 \
v8_context_snapshot.bin \
libvk_swiftshader.so \
vk_swiftshader_icd.json
do
vcopy "${item}" "${package_location}"
done
vmkdir usr/bin
ln -sfr $DESTDIR/${package_location}/vesktop $DESTDIR/usr/bin/vesktop
}