Skip to content

Commit

Permalink
ci(aur pkgs): fix file checksums generation
Browse files Browse the repository at this point in the history
  • Loading branch information
javalsai committed Dec 26, 2024
1 parent 47b2120 commit b003909
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions assets/pkg/aur/lidm-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ pkgbase = lidm-bin
source = default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/v0.2.0/themes/default.ini
source = lidm.1::https://raw.githubusercontent.com/javalsai/lidm/v0.2.0/assets/man/lidm.1
source = lidm-config.5::https://raw.githubusercontent.com/javalsai/lidm/v0.2.0/assets/man/lidm-config.5
sha256sums = b5d1dbdaa6b78da57be69ce5e2cc3366717a045de3cb316e66c1c3f36b796ee0
sha256sums = 27db9b0cd2da80c0c60dcb13dfad0f9d65e7dddbb7b344b859803b9ac3943cd7
sha256sums = 65b42f4f7acd970b167fe84d1fa75450b54e01a6f0edddb9d8dd487058a20850
sha256sums = 68662430a6d262b35cc54d9f0e164ed935b7f7f4497a87cc94946c558bbe8a91
sha256sums = a6807a55ff72ec5a5678583156b3efd0d367f0bcb79854094132771f0cb86bce
sha256sums = c44f78940212b946e157eac02e159b215376d291d11adfe4925b594405ad85da
sha256sums = 3adaae60f79dff1cef2b2aba7dcea04196cd49816759ad36afb9f7331ac9c3e4

pkgname = lidm-bin
6 changes: 3 additions & 3 deletions assets/pkg/aur/lidm-bin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ source=(
"lidm.1::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm.1"
"lidm-config.5::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm-config.5"
)
sha256sums=('b5d1dbdaa6b78da57be69ce5e2cc3366717a045de3cb316e66c1c3f36b796ee0'
'27db9b0cd2da80c0c60dcb13dfad0f9d65e7dddbb7b344b859803b9ac3943cd7'
sha256sums=('65b42f4f7acd970b167fe84d1fa75450b54e01a6f0edddb9d8dd487058a20850'
'68662430a6d262b35cc54d9f0e164ed935b7f7f4497a87cc94946c558bbe8a91'
'a6807a55ff72ec5a5678583156b3efd0d367f0bcb79854094132771f0cb86bce'
'c44f78940212b946e157eac02e159b215376d291d11adfe4925b594405ad85da')
'3adaae60f79dff1cef2b2aba7dcea04196cd49816759ad36afb9f7331ac9c3e4')

package() {
install -Dm755 lidm "${pkgdir}/usr/bin/lidm"
Expand Down
7 changes: 7 additions & 0 deletions assets/pkg/aur/update-pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ for pkg in "$MYDIR"/lidm{,-bin}/; do
printf "\x1b[1mEntering '%s'\x1b[0m\n" "$pkg"
sed -i "s/pkgver=.*/pkgver=$1/" PKGBUILD
sed -i "s/pkgrel=.*/pkgrel=1/" PKGBUILD

grep 'source = ' <.SRCINFO | awk -F'= |::' '{print $2}' | \
while read -r srcfile; do
printf "\x1b[31mDeleting '%s'\x1b[0m\n" "$srcfile"
rm -f "$srcfile"
done

updpkgsums
makepkg --printsrcinfo | tee .SRCINFO
echo
Expand Down

0 comments on commit b003909

Please sign in to comment.