aboutsummaryrefslogtreecommitdiff
path: root/apks/invidious
diff options
context:
space:
mode:
Diffstat (limited to 'apks/invidious')
-rw-r--r--apks/invidious/APKBUILD26
1 files changed, 13 insertions, 13 deletions
diff --git a/apks/invidious/APKBUILD b/apks/invidious/APKBUILD
index 4728a97..673c1c5 100644
--- a/apks/invidious/APKBUILD
+++ b/apks/invidious/APKBUILD
@@ -1,7 +1,6 @@
-# Maintainer: Francesco Camuffo <dev@fmac.xyz>
pkgname=invidious
-pkgver=0_git20240429
-_commit=eda7444ca46dbc3941205316baba8030fe0b2989
+pkgver=v2.20240825.2
+_commit=4782a6703819e0babfa4792892b691dd096eeac3
pkgrel=0
pkgdesc="Alternative front-end to YouTube"
url="https://github.com/iv-org/invidious"
@@ -25,19 +24,21 @@ install="$pkgname.pre-install"
pkgusers="$pkgname"
pkggroups="$pkgname"
subpackages="$pkgname-openrc"
-_mocks_commit=cb16e0343c8f94182615610bfe3c503db89717a7
source="
- $pkgname-$_commit.tar.gz::https://github.com/iv-org/invidious/archive/$_commit.tar.gz
+ $pkgname-$pkgver.tar.gz::https://github.com/iv-org/invidious/archive/refs/tags/$pkgver.tar.gz
$pkgname.initd
"
-builddir="$srcdir/invidious-$_commit"
+builddir="$srcdir/$pkgname-${pkgver:1}"
prepare() {
- sed -i src/invidious.cr \
- -e 's/\(CURRENT_BRANCH \) = .*/\1 = "master"/' \
- -e "s/\(CURRENT_COMMIT \) = .*/\1 = \"${_commit:0:7}\"/" \
- -e "s/\(CURRENT_VERSION\) = .*/\1 = \"$pkgver\"/" \
- -e "s/\(ASSET_COMMIT\) = .*/\1 = \"${_commit:0:7}\"/"
+ default_prepare
+
+ sed \
+ -e 's/^CURRENT_BRANCH =.*/CURRENT_BRANCH = "release"/' \
+ -e 's/^CURRENT_COMMIT =.*/CURRENT_COMMIT = "'$pkgver'"/' \
+ -e 's/^CURRENT_VERSION =.*/CURRENT_VERSION = "'$pkgver'"/' \
+ -e 's/^ASSET_COMMIT =.*/ASSET_COMMIT = "'$pkgver'"/' \
+ -i src/invidious.cr
datadir=/usr/share/webapps/invidious
# fix paths
@@ -48,7 +49,6 @@ prepare() {
sed -i src/invidious/database/base.cr \
-e "s|config/sql|/etc/$pkgname/\0|g"
- default_prepare
}
build() {
@@ -69,6 +69,6 @@ package() {
"$pkgdir"/etc/"$pkgname"/config.yml
}
sha512sums="
-1d28d44fb4f201f579123f93aa446b0b0878909a4ca4bb522c14ac14e05572eebb32ec3e57bedb2e27657d4e75a57c376e30d21eba511814785200f72bc7f706 invidious-eda7444ca46dbc3941205316baba8030fe0b2989.tar.gz
+1f22e6a8042b440d303508c8fcf394241560ccbaf44078e350dc227ac0d845b9bb0d1d829eb3c8737426c779e7a58d553da03d7e094458dab78a28c9065ceb8a invidious-v2.20240825.2.tar.gz
ed0a2e498751927c1ad82619395a07c169f7353a9c1453381ad288ad501b915010df5b799e4f102e034f0483b9101b9a8ae40d150b3d7db80605f87b9ca6f596 invidious.initd
"