Compare commits
21
Commits
c75cdd7b2b
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be3b153294
|
||
|
|
852f8390eb
|
||
|
|
5206526141
|
||
|
|
e4ffd369cb
|
||
|
|
bcaaa68f0c
|
||
|
|
fcb752c56c
|
||
|
|
7547ed2eb2
|
||
|
|
edcab6a159
|
||
|
|
3e143f54bd
|
||
|
|
41bb7d0149
|
||
|
|
6799c6c603
|
||
|
|
7d404429cf
|
||
|
|
a54bb76e6d
|
||
|
|
696c2e395f
|
||
|
|
c2c25af506
|
||
|
|
d3ef337dee
|
||
|
|
467f42a361
|
||
|
|
1dcf07b316
|
||
|
|
76f67b3bbc
|
||
|
|
cc231c5694
|
||
|
|
11ebf8053a
|
@@ -0,0 +1,3 @@
|
|||||||
|
# Ignore BPM archives and signatures
|
||||||
|
*.bpm
|
||||||
|
*.bpm.sig
|
||||||
+6
-12
@@ -1,18 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Gitlab repository
|
# Gitea repository
|
||||||
REPO="librewolf-community/browser/source"
|
REPO="librewolf/source"
|
||||||
|
|
||||||
# Replace slash with URL encoded representation
|
# Get version from tag name using Gitea Rest API
|
||||||
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
TAG_NAME=$(curl -s -L https://librewolf.dev/api/v1/repos/$REPO/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
# Get tag name using Gitlab Rest API
|
# Replace '-' with 'p'
|
||||||
TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
|
VERSION=${TAG_NAME//-/p}
|
||||||
|
|
||||||
# Trim '-gitlab' suffix
|
|
||||||
TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g')
|
|
||||||
|
|
||||||
# Get version number from tag name
|
|
||||||
VERSION=$(echo "$TAG_NAME" | tr '-' 'p')
|
|
||||||
|
|
||||||
echo "$VERSION"
|
echo "$VERSION"
|
||||||
|
|||||||
+5
-3
@@ -1,9 +1,11 @@
|
|||||||
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: 154.0.1p3
|
||||||
revision: 1
|
revision: 1
|
||||||
url: https://librewolf.net/
|
url: https://librewolf.net/
|
||||||
license: MPL2
|
license: MPL2
|
||||||
|
maintainers:
|
||||||
|
- [email protected]
|
||||||
architecture: any
|
architecture: any
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
@@ -50,7 +52,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://librewolf.dev/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: fee6caac30f9aff6dfd8fe868ce843602b03c3072609c86ff7fc6c17c397a6cc
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
# This function is used for putting downloaded files to the correct location or applying patches
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
|
|
||||||
# Generate mozconfig
|
# Generate mozconfig
|
||||||
cat > mozconfig <<-EOF
|
cat > mozconfig <<-EOF
|
||||||
ac_add_options --enable-application=browser
|
ac_add_options --enable-application=browser
|
||||||
@@ -48,6 +49,9 @@ build() {
|
|||||||
export MOZBUILD_STATE_PATH="$BPM_SOURCE"/mozbuild
|
export MOZBUILD_STATE_PATH="$BPM_SOURCE"/mozbuild
|
||||||
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
|
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
|
||||||
|
|
||||||
|
# Reduce chance of builds failung during linking due to running out of memory
|
||||||
|
export LDFLAGS+=" -Wl,--no-keep-memory"
|
||||||
|
|
||||||
./mach build
|
./mach build
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user