apkbuilds @ 12050f56fa54894f28f2651d67d9d4777d20b430

chore: Update invidious
 1diff --git a/apks/invidious/APKBUILD b/apks/invidious/APKBUILD
 2index 4728a971856858fbfb8878ec4ee80a3c88201f22..673c1c56d77f401f50c0459578e87f507f842151 100644
 3--- a/apks/invidious/APKBUILD
 4+++ b/apks/invidious/APKBUILD
 5@@ -1,7 +1,6 @@
 6-# Maintainer: Francesco Camuffo <dev@fmac.xyz>
 7 pkgname=invidious
 8-pkgver=0_git20240429
 9-_commit=eda7444ca46dbc3941205316baba8030fe0b2989
10+pkgver=v2.20240825.2
11+_commit=4782a6703819e0babfa4792892b691dd096eeac3
12 pkgrel=0
13 pkgdesc="Alternative front-end to YouTube"
14 url="https://github.com/iv-org/invidious"
15@@ -25,19 +24,21 @@ install="$pkgname.pre-install"
16 pkgusers="$pkgname"
17 pkggroups="$pkgname"
18 subpackages="$pkgname-openrc"
19-_mocks_commit=cb16e0343c8f94182615610bfe3c503db89717a7
20 source="
21-	$pkgname-$_commit.tar.gz::https://github.com/iv-org/invidious/archive/$_commit.tar.gz
22+	$pkgname-$pkgver.tar.gz::https://github.com/iv-org/invidious/archive/refs/tags/$pkgver.tar.gz
23 	$pkgname.initd
24 "
25-builddir="$srcdir/invidious-$_commit"
26+builddir="$srcdir/$pkgname-${pkgver:1}"
27 
28 prepare() {
29-	sed -i src/invidious.cr \
30-		-e 's/\(CURRENT_BRANCH \) = .*/\1 = "master"/' \
31-		-e "s/\(CURRENT_COMMIT \) = .*/\1 = \"${_commit:0:7}\"/" \
32-		-e "s/\(CURRENT_VERSION\) = .*/\1 = \"$pkgver\"/" \
33-		-e "s/\(ASSET_COMMIT\) = .*/\1 = \"${_commit:0:7}\"/"
34+	default_prepare
35+
36+	sed \
37+		-e 's/^CURRENT_BRANCH =.*/CURRENT_BRANCH = "release"/' \
38+		-e 's/^CURRENT_COMMIT  =.*/CURRENT_COMMIT  = "'$pkgver'"/' \
39+		-e 's/^CURRENT_VERSION =.*/CURRENT_VERSION = "'$pkgver'"/' \
40+		-e 's/^ASSET_COMMIT =.*/ASSET_COMMIT = "'$pkgver'"/' \
41+		-i src/invidious.cr
42 
43 	datadir=/usr/share/webapps/invidious
44 	# fix paths
45@@ -48,7 +49,6 @@ 		-e "s|File.read(\"locales/|File.read(\"$datadir/locales/|"
46 	sed -i src/invidious/database/base.cr \
47 		-e "s|config/sql|/etc/$pkgname/\0|g"
48 
49-	default_prepare
50 }
51 
52 build() {
53@@ -69,6 +69,6 @@ 	install -Dm644 "$builddir"/config/config.example.yml \
54 		"$pkgdir"/etc/"$pkgname"/config.yml
55 }
56 sha512sums="
57-1d28d44fb4f201f579123f93aa446b0b0878909a4ca4bb522c14ac14e05572eebb32ec3e57bedb2e27657d4e75a57c376e30d21eba511814785200f72bc7f706  invidious-eda7444ca46dbc3941205316baba8030fe0b2989.tar.gz
58+1f22e6a8042b440d303508c8fcf394241560ccbaf44078e350dc227ac0d845b9bb0d1d829eb3c8737426c779e7a58d553da03d7e094458dab78a28c9065ceb8a  invidious-v2.20240825.2.tar.gz
59 ed0a2e498751927c1ad82619395a07c169f7353a9c1453381ad288ad501b915010df5b799e4f102e034f0483b9101b9a8ae40d150b3d7db80605f87b9ca6f596  invidious.initd
60 "