Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc231c5694
|
||
|
|
11ebf8053a
|
+4
-10
@@ -1,16 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Gitlab repository
|
# Codeberg repository
|
||||||
REPO="librewolf-community/browser/source"
|
REPO="librewolf/source"
|
||||||
|
|
||||||
# Replace slash with URL encoded representation
|
# Get version from tag name using Codeberg Rest API
|
||||||
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
TAG_NAME=$(curl -s -L https://codeberg.org/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
||||||
|
|
||||||
# Get tag name using Gitlab Rest API
|
|
||||||
TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
|
|
||||||
|
|
||||||
# Trim '-gitlab' suffix
|
|
||||||
TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g')
|
|
||||||
|
|
||||||
# Get version number from tag name
|
# Get version number from tag name
|
||||||
VERSION=$(echo "$TAG_NAME" | tr '-' 'p')
|
VERSION=$(echo "$TAG_NAME" | tr '-' 'p')
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: librewolf
|
name: librewolf
|
||||||
description: A custom version of Firefox, focused on privacy, security and freedom
|
description: A custom version of Firefox, focused on privacy, security and freedom
|
||||||
version: 146.0.1p1
|
version: 147.0.1p1
|
||||||
revision: 1
|
revision: 1
|
||||||
url: https://librewolf.net/
|
url: https://librewolf.net/
|
||||||
license: MPL2
|
license: MPL2
|
||||||
@@ -50,7 +50,7 @@ make_depends:
|
|||||||
- rustc
|
- rustc
|
||||||
- unzip
|
- unzip
|
||||||
downloads:
|
downloads:
|
||||||
- url: https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${BPM_PKG_VERSION//p/-}/librewolf-${BPM_PKG_VERSION//p/-}.source.tar.gz
|
- url: https://codeberg.org/api/packages/librewolf/generic/librewolf-source/${BPM_PKG_VERSION//p/-}/librewolf-${BPM_PKG_VERSION//p/-}.source.tar.gz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: f872b12327543e1e454f9a50be9a7675450aed3e04cc87e1a8c7fb4f235c2bf7
|
checksum: 02933cf3f216a52af8d6513c10dc8d848a7a11a9f9458d8d9b69a2f2db5489c2
|
||||||
|
|||||||
Reference in New Issue
Block a user