Skip to content

Commit

Permalink
Update swayosd PKGBUILD, switch to xz compression for the database
Browse files Browse the repository at this point in the history
  • Loading branch information
zstg authored Sep 22, 2024
1 parent 1bf4ac0 commit 91a0def
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
11 changes: 8 additions & 3 deletions PKGBUILDS/swayosd-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgname=swayosd-git
_pkgname="${pkgname%-git}"
_reponame=SwayOSD
pkgver=r57.1127176
pkgver=0.1.0.r0.gdbb8b72
pkgrel=1
pkgdesc="A GTK based on screen display for keyboard shortcuts like caps-lock and volume"
arch=('x86_64' 'aarch64' 'i686')
Expand All @@ -19,7 +19,12 @@ sha256sums=('SKIP')

pkgver() {
cd "${_reponame}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}

prepare() {
Expand All @@ -36,4 +41,4 @@ build() {
package() {
cd "${_reponame}"
meson install -C build --destdir "$pkgdir"
}
}
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

# set -e # exit on error
# Function to handle errors
handle_error() {
echo "Error on line $1"
Expand Down Expand Up @@ -114,12 +114,12 @@ build_and_package() {
"pamac-all"
"pandoc-bin"
"python-clickgen"
"pyprland"
# "pyprland"
# #"repoctl"
# "rua"
"swayfx"
"sway-nvidia"
# #"swayosd-git"
"swayosd-git"
"ventoy-bin"
"yay-bin"
)
Expand Down
6 changes: 0 additions & 6 deletions initialize.sh

This file was deleted.

1 change: 0 additions & 1 deletion x86_64/stratos.db

This file was deleted.

Binary file removed x86_64/stratos.db.tar.gz
Binary file not shown.
1 change: 0 additions & 1 deletion x86_64/stratos.files

This file was deleted.

Binary file removed x86_64/stratos.files.tar.gz
Binary file not shown.

0 comments on commit 91a0def

Please sign in to comment.