Compare commits
191 commits
signal-des
...
edge
Author | SHA1 | Date | |
---|---|---|---|
aa7f92dd6e | |||
648e4d3b84 | |||
0a990a5021 | |||
5d3ff7043c | |||
d31452f43a | |||
382b03e3f2 | |||
56a29dc807 | |||
233a098355 | |||
9ee55e001b | |||
a053fd35f3 | |||
88d9198fee | |||
9e7a9c464e | |||
0a88d5c3a3 | |||
f853f9956d | |||
b8f608772c | |||
89c8805846 | |||
7a2cb83701 | |||
a068733225 | |||
ab9d5e9650 | |||
d7b083ff8c | |||
43cc51f815 | |||
76f4a5af17 | |||
e21b82beb4 | |||
e1ba44fb3b | |||
b91f3b9ff9 | |||
7bdf12e9ba | |||
c73afaf110 | |||
b5577c66f1 | |||
37d498e0ef | |||
0f5a3715ce | |||
43a45d318c | |||
ea2def9dd2 | |||
1a345ce163 | |||
404979f01b | |||
813dd51cbf | |||
0f88617c94 | |||
88d35e2b2a | |||
a24da23d5d | |||
55ac054f92 | |||
5e12f12d1e | |||
559e9ced7a | |||
b970b53d5b | |||
42fba3ec09 | |||
192fefd457 | |||
f4893f439f | |||
c34ae73f08 | |||
ca399a31cc | |||
5e4808302b | |||
dcd308946a | |||
1253b5be22 | |||
ea066664d7 | |||
d7fb3c5419 | |||
f2e1f14f99 | |||
ad6f3d1c77 | |||
86b3f95e1b | |||
b0845ca9b6 | |||
8006b26b74 | |||
3bea445fde | |||
53280efc87 | |||
7c899e25cb | |||
53e39d64e5 | |||
88653d4dbd | |||
3ea85f37b5 | |||
00e5379973 | |||
9e18a02c6a | |||
4fce7364ca | |||
a362d7747a | |||
396c98208d | |||
b345573aa1 | |||
257e019992 | |||
97ed4992d7 | |||
7814f05e1c | |||
9bf9771b8c | |||
6e698a0974 | |||
367a606da2 | |||
26657f4d57 | |||
9e2e00cd44 | |||
5771d09151 | |||
0414f86242 | |||
fb7a3fe81b | |||
3ffe64d0d4 | |||
15d01121ba | |||
d24323205e | |||
eef1e89d88 | |||
623d98575e | |||
b306518289 | |||
63f6a6099f | |||
7e21600868 | |||
714437157c | |||
f82ac83d0b | |||
b9b609bedf | |||
8ffac41cb8 | |||
7ffb4b3105 | |||
743ceb8dbe | |||
021b81131e | |||
d00a14e695 | |||
a6e60edfd9 | |||
68130cdf8a | |||
888654be5c | |||
d6e00b6395 | |||
77dc41c8aa | |||
1478a9f5c7 | |||
fc3cfbc01c | |||
659bd20ba1 | |||
970fd7297f | |||
135bcd5a89 | |||
e7bef354af | |||
260b8c3da6 | |||
9a81361936 | |||
f124e1fd95 | |||
3a9141372b | |||
e0a5952518 | |||
14348459f1 | |||
92b265a1d0 | |||
07ce4b2776 | |||
9b5788e012 | |||
580e136768 | |||
32a461c894 | |||
9320defbce | |||
9c03466cc0 | |||
177efa00c2 | |||
438d6d6e3e | |||
638732a089 | |||
d09e518d1f | |||
ece30e0fbb | |||
8a2a28342a | |||
9d6bf2f5a2 | |||
10821c427a | |||
bc63f1ddb8 | |||
187eb88770 | |||
60b6bb1f9a | |||
5edd40d7f0 | |||
7870ee72dc | |||
2f4998dfb6 | |||
783a964410 | |||
ff94611df0 | |||
bdc0c313c6 | |||
21082688af | |||
a0993c9e31 | |||
686e6a6504 | |||
497771fe9e | |||
0807d658c5 | |||
7320512e66 | |||
475c43723c | |||
ad7d9444cc | |||
87e02ab716 | |||
7671a9d567 | |||
65f2a53a44 | |||
4d473acf9e | |||
59705e3486 | |||
72ad06acd7 | |||
e5f83095e3 | |||
eb0374cfba | |||
07ea5d4b03 | |||
091908e87e | |||
0b3331610d | |||
948e244824 | |||
3124031a00 | |||
64d88aa2e1 | |||
a5cd9ca969 | |||
ddb15faac6 | |||
bdb37e35ee | |||
1c7eeb3dce | |||
08ee79d032 | |||
81ac0611da | |||
f57dc997f7 | |||
7440e781b8 | |||
65a5f41649 | |||
507663db3b | |||
f5bbad0712 | |||
ecc61a2182 | |||
1f7767fc5b | |||
e5237392b1 | |||
43905a4a72 | |||
2a72f32a3a | |||
b29ff4dcae | |||
d87a333de8 | |||
849cc1d7b3 | |||
ae8c40104c | |||
29d690fe52 | |||
ab3231afda | |||
8ac74918a3 | |||
d3888ec0a3 | |||
c9d0bd0b1e | |||
e9d494a147 | |||
fddd91b20c | |||
104708e9a6 | |||
34e0757763 | |||
068b275bf0 | |||
0c00fe0b12 | |||
4c1e2a5ad1 |
296 changed files with 2109 additions and 10914 deletions
|
@ -1,27 +1,26 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# shellcheck disable=SC3043
|
# shellcheck disable=SC3043
|
||||||
|
|
||||||
. $CI_PROJECT_DIR/.gitlab/bin/functions.sh
|
. /usr/local/lib/functions.sh
|
||||||
|
|
||||||
# shellcheck disable=SC3040
|
# shellcheck disable=SC3040
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
readonly APORTSDIR=$CI_PROJECT_DIR
|
readonly APORTSDIR=$CI_PROJECT_DIR
|
||||||
readonly REPOS="cross backports user testing community"
|
readonly REPOS="backports user"
|
||||||
readonly ALPINE_REPOS="main community"
|
readonly ALPINE_REPOS="main community testing"
|
||||||
readonly ARCH=$(apk --print-arch)
|
readonly ARCH=$(apk --print-arch)
|
||||||
# gitlab variables
|
# gitlab variables
|
||||||
readonly BASEBRANCH=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
readonly BASEBRANCH=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
||||||
|
|
||||||
: "${REPODEST:=$HOME/packages}"
|
: "${REPODEST:=$HOME/packages}"
|
||||||
: "${MIRROR:=https://lab.ilot.io/ayakael/repo-apk/-/raw}"
|
: "${MIRROR:=https://ayakael.net/api/packages/forge/alpine}"
|
||||||
: "${ALPINE_MIRROR:=http://dl-cdn.alpinelinux.org/alpine}"
|
: "${ALPINE_MIRROR:=http://dl-cdn.alpinelinux.org/alpine}"
|
||||||
: "${MAX_ARTIFACT_SIZE:=300000000}" #300M
|
: "${MAX_ARTIFACT_SIZE:=300000000}" #300M
|
||||||
: "${CI_DEBUG_BUILD:=}"
|
: "${CI_DEBUG_BUILD:=}"
|
||||||
|
|
||||||
: "${CI_ALPINE_BUILD_OFFSET:=0}"
|
: "${CI_ALPINE_BUILD_OFFSET:=0}"
|
||||||
: "${CI_ALPINE_BUILD_LIMIT:=9999}"
|
: "${CI_ALPINE_BUILD_LIMIT:=9999}"
|
||||||
: "${CI_ALPINE_TARGET_ARCH:=$(uname -m)}"
|
|
||||||
|
|
||||||
msg() {
|
msg() {
|
||||||
local color=${2:-green}
|
local color=${2:-green}
|
||||||
|
@ -71,7 +70,7 @@ report() {
|
||||||
|
|
||||||
get_release() {
|
get_release() {
|
||||||
case $BASEBRANCH in
|
case $BASEBRANCH in
|
||||||
v*) echo "${BASEBRANCH%-*}";;
|
v*) echo "$BASEBRANCH";;
|
||||||
edge) echo edge;;
|
edge) echo edge;;
|
||||||
*) die "Branch \"$BASEBRANCH\" not supported!"
|
*) die "Branch \"$BASEBRANCH\" not supported!"
|
||||||
esac
|
esac
|
||||||
|
@ -80,9 +79,8 @@ get_release() {
|
||||||
build_aport() {
|
build_aport() {
|
||||||
local repo="$1" aport="$2"
|
local repo="$1" aport="$2"
|
||||||
cd "$APORTSDIR/$repo/$aport"
|
cd "$APORTSDIR/$repo/$aport"
|
||||||
export CHOST=$CI_ALPINE_TARGET_ARCH
|
|
||||||
if abuild -r 2>&1 | report "build-$aport"; then
|
if abuild -r 2>&1 | report "build-$aport"; then
|
||||||
checkapk | report "checkapk-$aport" || true
|
checkapk 2>&1 | report "checkapk-$aport" || true
|
||||||
aport_ok="$aport_ok $repo/$aport"
|
aport_ok="$aport_ok $repo/$aport"
|
||||||
else
|
else
|
||||||
aport_ng="$aport_ng $repo/$aport"
|
aport_ng="$aport_ng $repo/$aport"
|
||||||
|
@ -92,12 +90,6 @@ build_aport() {
|
||||||
check_aport() {
|
check_aport() {
|
||||||
local repo="$1" aport="$2"
|
local repo="$1" aport="$2"
|
||||||
cd "$APORTSDIR/$repo/$aport"
|
cd "$APORTSDIR/$repo/$aport"
|
||||||
export CHOST=$CI_ALPINE_TARGET_ARCH
|
|
||||||
# TODO: this enables crossbuild only on user, this should be cleaner
|
|
||||||
if [ "$repo" != "user" ] && [ "$repo" != "backports" ] && [ "$CI_ALPINE_TARGET_ARCH" != "$ARCH" ]; then
|
|
||||||
aport_na="$aport_na $repo/$aport"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
if ! abuild check_arch 2>/dev/null; then
|
if ! abuild check_arch 2>/dev/null; then
|
||||||
aport_na="$aport_na $repo/$aport"
|
aport_na="$aport_na $repo/$aport"
|
||||||
return 1
|
return 1
|
||||||
|
@ -110,16 +102,13 @@ set_repositories_for() {
|
||||||
|
|
||||||
release=$(get_release)
|
release=$(get_release)
|
||||||
for repo in $REPOS; do
|
for repo in $REPOS; do
|
||||||
|
[ "$repo" = "non-free" ] && continue
|
||||||
|
[ "$release" == "edge" ] && [ "$repo" == "backports" ] && continue
|
||||||
repos="$repos $MIRROR/$release/$repo $REPODEST/$repo"
|
repos="$repos $MIRROR/$release/$repo $REPODEST/$repo"
|
||||||
[ "$repo" = "$target_repo" ] && break
|
[ "$repo" = "$target_repo" ] && break
|
||||||
done
|
done
|
||||||
sudo sh -c "printf '%s\n' $repos >> /etc/apk/repositories"
|
doas sh -c "printf '%s\n' $repos >> /etc/apk/repositories"
|
||||||
sudo apk update || true
|
doas apk update || true
|
||||||
if [ "$CI_ALPINE_TARGET_ARCH" != "$ARCH" ]; then
|
|
||||||
sudo sh -c "printf '%s\n' $repos >> $HOME/sysroot-$CI_ALPINE_TARGET_ARCH/etc/apk/repositories"
|
|
||||||
sudo cp -R /etc/apk/keys/* $HOME/sysroot-$CI_ALPINE_TARGET_ARCH/etc/apk/keys/.
|
|
||||||
sudo apk --root=$HOME/sysroot-$CI_ALPINE_TARGET_ARCH update || true
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_offset_limit() {
|
apply_offset_limit() {
|
||||||
|
@ -139,22 +128,10 @@ setup_system() {
|
||||||
[ "$release" != "edge" ] && [ "$repo" == "testing" ] && continue
|
[ "$release" != "edge" ] && [ "$repo" == "testing" ] && continue
|
||||||
repos="$repos $ALPINE_MIRROR/$release/$repo"
|
repos="$repos $ALPINE_MIRROR/$release/$repo"
|
||||||
done
|
done
|
||||||
repos="$repos $MIRROR/$release/cross"
|
doas sh -c "printf '%s\n' $repos > /etc/apk/repositories"
|
||||||
sudo sh -c "printf '%s\n' $repos > /etc/apk/repositories"
|
doas apk -U upgrade -a || apk fix || die "Failed to up/downgrade system"
|
||||||
sudo apk -U upgrade -a || sudo apk fix || die "Failed to up/downgrade system"
|
abuild-keygen -ain
|
||||||
if [ "$CI_ALPINE_TARGET_ARCH" != "$ARCH" ]; then
|
doas sed -i -E 's/export JOBS=[0-9]+$/export JOBS=$(nproc)/' /etc/abuild.conf
|
||||||
sudo apk add gcc-$CI_ALPINE_TARGET_ARCH
|
|
||||||
fi
|
|
||||||
gitlab_key_to_rsa $ABUILD_KEY rsa-private $HOME/.abuild/$ABUILD_KEY_NAME.rsa
|
|
||||||
gitlab_key_to_rsa $ABUILD_KEY_PUB rsa-public $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub
|
|
||||||
chmod 700 $HOME/.abuild/$ABUILD_KEY_NAME.rsa
|
|
||||||
echo "PACKAGER_PRIVKEY=$HOME/.abuild/$ABUILD_KEY_NAME.rsa" >> $HOME/.abuild/abuild.conf
|
|
||||||
sudo cp $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub /etc/apk/keys/$ABUILD_KEY_NAME.rsa.pub
|
|
||||||
|
|
||||||
# patch abuild for crosscompiling
|
|
||||||
sudo patch -p1 -d / -i $CI_PROJECT_DIR/.gitlab/patches/abuild-cross.patch
|
|
||||||
|
|
||||||
sudo sed -i -E 's/export JOBS=[0-9]+$/export JOBS=$(nproc)/' /etc/abuild.conf
|
|
||||||
( . /etc/abuild.conf && echo "Building with $JOBS jobs" )
|
( . /etc/abuild.conf && echo "Building with $JOBS jobs" )
|
||||||
mkdir -p "$REPODEST"
|
mkdir -p "$REPODEST"
|
||||||
git config --global init.defaultBranch master
|
git config --global init.defaultBranch master
|
||||||
|
@ -203,7 +180,7 @@ sysinfo || true
|
||||||
setup_system || die "Failed to setup system"
|
setup_system || die "Failed to setup system"
|
||||||
|
|
||||||
# git no longer allows to execute in repositories owned by different users
|
# git no longer allows to execute in repositories owned by different users
|
||||||
sudo chown -R $USER: .
|
doas chown -R buildozer: .
|
||||||
|
|
||||||
fetch_flags="-qn"
|
fetch_flags="-qn"
|
||||||
debugging && fetch_flags="-v"
|
debugging && fetch_flags="-v"
|
||||||
|
@ -226,7 +203,6 @@ build_start=$CI_ALPINE_BUILD_OFFSET
|
||||||
build_limit=$CI_ALPINE_BUILD_LIMIT
|
build_limit=$CI_ALPINE_BUILD_LIMIT
|
||||||
|
|
||||||
for repo in $(changed_repos); do
|
for repo in $(changed_repos); do
|
||||||
mkdir -p "$APORTSDIR"/logs "$APORTSDIR"/packages "$APORTSDIR"/keys
|
|
||||||
set_repositories_for "$repo"
|
set_repositories_for "$repo"
|
||||||
built_aports=0
|
built_aports=0
|
||||||
changed_aports_in_repo=$(changed_aports "$repo")
|
changed_aports_in_repo=$(changed_aports "$repo")
|
||||||
|
@ -267,7 +243,7 @@ for ok in $aport_ok; do
|
||||||
done
|
done
|
||||||
|
|
||||||
for na in $aport_na; do
|
for na in $aport_na; do
|
||||||
msg "$na: disabled for $CI_ALPINE_TARGET_ARCH" yellow
|
msg "$na: disabled for $ARCH" yellow
|
||||||
done
|
done
|
||||||
|
|
||||||
for ng in $aport_ng; do
|
for ng in $aport_ng; do
|
||||||
|
@ -281,3 +257,4 @@ if [ "$failed" = true ]; then
|
||||||
elif [ -z "$aport_ok" ]; then
|
elif [ -z "$aport_ok" ]; then
|
||||||
msg "No packages found to be built." yellow
|
msg "No packages found to be built." yellow
|
||||||
fi
|
fi
|
||||||
|
|
41
.forgejo/bin/check_ver.sh
Executable file
41
.forgejo/bin/check_ver.sh
Executable file
|
@ -0,0 +1,41 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# expects the following env variables:
|
||||||
|
# downstream: downstream repo
|
||||||
|
|
||||||
|
repo=${downstream/*\/}
|
||||||
|
|
||||||
|
curl --silent $downstream/x86_64/APKINDEX.tar.gz | tar -O -zx APKINDEX > APKINDEX
|
||||||
|
|
||||||
|
if [ "$ALL_PACKAGES" == "true" ]; then
|
||||||
|
owned_by_you=$(awk -F ':' '{if($1=="o"){print $2}}' APKINDEX | sort | uniq)
|
||||||
|
echo "Found $(printf '%s\n' $owned_by_you | wc -l ) packages"
|
||||||
|
else
|
||||||
|
owned_by_you=$(awk -v RS= -v ORS="\n\n" '/m:Antoine Martin \(ayakael\) <dev@ayakael.net>/' APKINDEX | awk -F ':' '{if($1=="o"){print $2}}' | sort | uniq)
|
||||||
|
echo "Found $(printf '%s\n' $owned_by_you | wc -l ) packages owned by you"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f out_of_date not_in_anitya
|
||||||
|
|
||||||
|
for pkg in $owned_by_you; do
|
||||||
|
upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=$pkg&distribution=Alpine" | jq -r '.items.[].stable_version')
|
||||||
|
downstream_version=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}' | sort -V | tail -n 1)
|
||||||
|
downstream_version=${downstream_version/-*}
|
||||||
|
|
||||||
|
# special cases
|
||||||
|
case $pkg in
|
||||||
|
freetube) upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=$pkg&distribution=Alpine" | jq -r '.items.[].version' | sed "s|-beta||");;
|
||||||
|
dotnet9-sdk|dotnet9-stage0) upstream_version=${upstream_version/-*};;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$upstream_version" ]; then
|
||||||
|
echo "$pkg not in anitya"
|
||||||
|
echo "$pkg" >> not_in_anitya
|
||||||
|
elif [ "$downstream_version" != "$(printf '%s\n' $upstream_version $downstream_version | sort -V | head -n 1)" ]; then
|
||||||
|
echo "$pkg higher downstream"
|
||||||
|
continue
|
||||||
|
elif [ "$upstream_version" != "$downstream_version" ]; then
|
||||||
|
echo "$pkg upstream version $upstream_version does not match downstream version $downstream_version"
|
||||||
|
echo "$pkg $downstream_version $upstream_version $repo" >> out_of_date
|
||||||
|
fi
|
||||||
|
done
|
17
.forgejo/bin/clear-repo.sh
Executable file
17
.forgejo/bin/clear-repo.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
TARGET_REPO=$1
|
||||||
|
ARCH=$2
|
||||||
|
|
||||||
|
|
||||||
|
curl --silent $TARGET_REPO/$ARCH/APKINDEX.tar.gz | tar -O -zx APKINDEX > APKINDEX
|
||||||
|
|
||||||
|
pkgs=$(awk -F ':' '{if($1=="o"){print $2}}' APKINDEX | sort | uniq)
|
||||||
|
|
||||||
|
for pkg in $pkgs; do
|
||||||
|
pkgvers=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}')
|
||||||
|
for pkgver in $pkgvers; do
|
||||||
|
echo "Deleting $pkg-$pkgver of arch $ARCH from $TARGET_REPO"
|
||||||
|
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN -X DELETE $TARGET_REPO/$ARCH/$pkg-$pkgver.apk
|
||||||
|
done
|
||||||
|
done
|
165
.forgejo/bin/create_issue.sh
Executable file
165
.forgejo/bin/create_issue.sh
Executable file
|
@ -0,0 +1,165 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# expects:
|
||||||
|
# env variable FORGEJO_TOKEN
|
||||||
|
# file out_of_date
|
||||||
|
|
||||||
|
IFS='
|
||||||
|
'
|
||||||
|
repo=${downstream/*\/}
|
||||||
|
|
||||||
|
does_it_exist() {
|
||||||
|
name=$1
|
||||||
|
downstream_version=$2
|
||||||
|
upstream_version=$3
|
||||||
|
repo=$4
|
||||||
|
|
||||||
|
query="$repo/$name: upgrade to $upstream_version"
|
||||||
|
query="$(echo $query | sed 's| |%20|g' | sed 's|:|%3A|g' | sed 's|/|%2F|g' )"
|
||||||
|
|
||||||
|
result="$(curl --silent -X 'GET' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues?state=open&q=$query&type=issues" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN"
|
||||||
|
)"
|
||||||
|
|
||||||
|
if [ "$result" == "[]" ]; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
is_it_old() {
|
||||||
|
name=$1
|
||||||
|
downstream_version=$2
|
||||||
|
upstream_version=$3
|
||||||
|
repo=$4
|
||||||
|
|
||||||
|
query="$repo/$name: upgrade to"
|
||||||
|
query="$(echo $query | sed 's| |%20|g' | sed 's|:|%3A|g' | sed 's|/|%2F|g' )"
|
||||||
|
|
||||||
|
result="$(curl --silent -X 'GET' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues?state=open&q=$query&type=issues" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN"
|
||||||
|
)"
|
||||||
|
|
||||||
|
result_title="$(echo $result | jq -r '.[].title' )"
|
||||||
|
result_id="$(echo $result | jq -r '.[].number' )"
|
||||||
|
result_upstream_version="$(echo $result_title | awk '{print $4}')"
|
||||||
|
|
||||||
|
if [ "$upstream_version" != "$result_upstream_version" ]; then
|
||||||
|
echo $result_id
|
||||||
|
else
|
||||||
|
echo 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
update_title() {
|
||||||
|
name=$1
|
||||||
|
downstream_version=$2
|
||||||
|
upstream_version=$3
|
||||||
|
repo=$4
|
||||||
|
id=$5
|
||||||
|
|
||||||
|
result=$(curl --silent -X 'PATCH' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues/$id" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d "{
|
||||||
|
\"title\": \"$repo/$name: upgrade to $upstream_version\"
|
||||||
|
}"
|
||||||
|
)
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
create_issue() {
|
||||||
|
name=$1
|
||||||
|
downstream_version=$2
|
||||||
|
upstream_version=$3
|
||||||
|
repo=$4
|
||||||
|
|
||||||
|
result=$(curl --silent -X 'POST' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d "{
|
||||||
|
\"title\": \"$repo/$name: upgrade to $upstream_version\",
|
||||||
|
\"labels\": [
|
||||||
|
$LABEL_NUMBER
|
||||||
|
]
|
||||||
|
}")
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -f out_of_date ]; then
|
||||||
|
out_of_date="$(cat out_of_date)"
|
||||||
|
|
||||||
|
echo "Detected $(wc -l out_of_date) out-of-date packages, creating issues"
|
||||||
|
|
||||||
|
for pkg in $out_of_date; do
|
||||||
|
name="$(echo $pkg | awk '{print $1}')"
|
||||||
|
downstream_version="$(echo $pkg | awk '{print $2}')"
|
||||||
|
upstream_version="$(echo $pkg | awk '{print $3}')"
|
||||||
|
repo="$(echo $pkg | awk '{print $4}')"
|
||||||
|
|
||||||
|
if does_it_exist $name $downstream_version $upstream_version $repo; then
|
||||||
|
echo "Issue for $repo/$name already exists"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
id=$(is_it_old $name $downstream_version $upstream_version $repo)
|
||||||
|
|
||||||
|
if [ "$id" != "0" ] && [ -n "$id" ]; then
|
||||||
|
echo "Issue for $repo/$name needs updating"
|
||||||
|
update_title $name $downstream_version $upstream_version $repo $id
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Creating issue for $repo/$name"
|
||||||
|
create_issue $name $downstream_version $upstream_version $repo
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f not_in_anitya ]; then
|
||||||
|
query="Add missing $repo packages to anitya"
|
||||||
|
query="$(echo $query | sed 's| |%20|g')"
|
||||||
|
|
||||||
|
result="$(curl --silent -X 'GET' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues?state=open&q=$query&type=issues" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN"
|
||||||
|
)"
|
||||||
|
|
||||||
|
if [ "$result" == "[]" ]; then
|
||||||
|
echo "Creating anitya issue"
|
||||||
|
result=$(curl --silent -X 'POST' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d "{
|
||||||
|
\"title\": \"Add missing $repo packages to anitya\",
|
||||||
|
\"body\": \"- [ ] $(sed '{:q;N;s/\n/\\n- [ ] /g;t q}' not_in_anitya)\",
|
||||||
|
\"labels\": [
|
||||||
|
$LABEL_NUMBER
|
||||||
|
]
|
||||||
|
}")
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Updating anitya issue"
|
||||||
|
result_id="$(echo $result | jq -r '.[].number' )"
|
||||||
|
result=$(curl --silent -X 'PATCH' \
|
||||||
|
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues/$result_id" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H "authorization: Basic $FORGEJO_TOKEN" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d "{
|
||||||
|
\"body\": \"- [ ] $(sed '{:q;N;s/\n/\\n- [ ] /g;t q}' not_in_anitya)\"
|
||||||
|
}"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
fi
|
26
.forgejo/bin/deploy.sh
Executable file
26
.forgejo/bin/deploy.sh
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# shellcheck disable=SC3040
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
readonly REPOS="backports user"
|
||||||
|
readonly BASEBRANCH=$GITHUB_BASE_REF
|
||||||
|
readonly TARGET_REPO=$CI_ALPINE_REPO
|
||||||
|
|
||||||
|
apkgs=$(find package -type f -name "*.apk")
|
||||||
|
|
||||||
|
for apk in $apkgs; do
|
||||||
|
branch=$(echo $apk | awk -F '/' '{print $2}')
|
||||||
|
arch=$(echo $apk | awk -F '/' '{print $3}')
|
||||||
|
name=$(echo $apk | awk -F '/' '{print $4}')
|
||||||
|
|
||||||
|
echo "Sending $name of arch $arch to $TARGET_REPO/$BASEBRANCH/$branch"
|
||||||
|
return=$(curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch 2>&1)
|
||||||
|
echo $return
|
||||||
|
if [ "$return" == "package file already exists" ]; then
|
||||||
|
echo "Package already exists, refreshing..."
|
||||||
|
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN -X DELETE $TARGET_REPO/$BASEBRANCH/$branch/$arch/$name
|
||||||
|
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
52
.forgejo/workflows/build-aarch64.yaml
Normal file
52
.forgejo/workflows/build-aarch64.yaml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ assigned, opened, synchronize, reopened ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-aarch64:
|
||||||
|
runs-on: aarch64
|
||||||
|
container:
|
||||||
|
image: alpinelinux/alpine-gitlab-ci:latest
|
||||||
|
env:
|
||||||
|
CI_PROJECT_DIR: ${{ github.workspace }}
|
||||||
|
CI_DEBUG_BUILD: ${{ runner.debug }}
|
||||||
|
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
|
||||||
|
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
|
||||||
|
steps:
|
||||||
|
- name: Environment setup
|
||||||
|
run: |
|
||||||
|
doas apk add nodejs git patch curl
|
||||||
|
cd /etc/apk/keys
|
||||||
|
doas curl -JO https://ayakael.net/api/packages/forge/alpine/key
|
||||||
|
- name: Repo pull
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 500
|
||||||
|
- name: Package build
|
||||||
|
run: |
|
||||||
|
${{ github.workspace }}/.forgejo/bin/build.sh
|
||||||
|
touch packages/dummy
|
||||||
|
- name: Package upload
|
||||||
|
uses: forgejo/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: package
|
||||||
|
path: packages
|
||||||
|
|
||||||
|
deploy-aarch64:
|
||||||
|
needs: [build-aarch64]
|
||||||
|
runs-on: aarch64
|
||||||
|
container:
|
||||||
|
image: alpine:latest
|
||||||
|
env:
|
||||||
|
CI_ALPINE_REPO: 'https://ayakael.net/api/packages/forge/alpine'
|
||||||
|
FORGE_REPO_TOKEN: ${{ secrets.FORGE_REPO_TOKEN }}
|
||||||
|
FORGE_REPO_USER: ${{ vars.FORGE_REPO_USER }}
|
||||||
|
steps:
|
||||||
|
- name: Setting up environment
|
||||||
|
run: apk add nodejs curl findutils git gawk
|
||||||
|
- name: Repo pull
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Package download
|
||||||
|
uses: forgejo/download-artifact@v3
|
||||||
|
- name: Package deployment
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
|
52
.forgejo/workflows/build-x86_64.yaml
Normal file
52
.forgejo/workflows/build-x86_64.yaml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ assigned, opened, synchronize, reopened ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-x86_64:
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpinelinux/alpine-gitlab-ci:latest
|
||||||
|
env:
|
||||||
|
CI_PROJECT_DIR: ${{ github.workspace }}
|
||||||
|
CI_DEBUG_BUILD: ${{ runner.debug }}
|
||||||
|
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
|
||||||
|
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
|
||||||
|
steps:
|
||||||
|
- name: Environment setup
|
||||||
|
run: |
|
||||||
|
doas apk add nodejs git patch curl
|
||||||
|
cd /etc/apk/keys
|
||||||
|
doas curl -JO https://ayakael.net/api/packages/forge/alpine/key
|
||||||
|
- name: Repo pull
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 500
|
||||||
|
- name: Package build
|
||||||
|
run: |
|
||||||
|
${{ github.workspace }}/.forgejo/bin/build.sh
|
||||||
|
touch packages/dummy
|
||||||
|
- name: Package upload
|
||||||
|
uses: forgejo/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: package
|
||||||
|
path: packages
|
||||||
|
|
||||||
|
deploy-x86_64:
|
||||||
|
needs: [build-x86_64]
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpine:latest
|
||||||
|
env:
|
||||||
|
CI_ALPINE_REPO: 'https://ayakael.net/api/packages/forge/alpine'
|
||||||
|
FORGE_REPO_TOKEN: ${{ secrets.FORGE_REPO_TOKEN }}
|
||||||
|
FORGE_REPO_USER: ${{ vars.FORGE_REPO_USER }}
|
||||||
|
steps:
|
||||||
|
- name: Setting up environment
|
||||||
|
run: apk add nodejs curl findutils git gawk
|
||||||
|
- name: Repo pull
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Package download
|
||||||
|
uses: forgejo/download-artifact@v3
|
||||||
|
- name: Package deployment
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
|
28
.forgejo/workflows/check-backports.yml
Normal file
28
.forgejo/workflows/check-backports.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-backports:
|
||||||
|
name: Check backports repo
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpine:latest
|
||||||
|
env:
|
||||||
|
downstream: https://ayakael.net/api/packages/forge/alpine/v3.21/backports
|
||||||
|
FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
|
||||||
|
LABEL_NUMBER: 1
|
||||||
|
ALL_PACKAGES: true
|
||||||
|
steps:
|
||||||
|
- name: Environment setup
|
||||||
|
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed
|
||||||
|
- name: Get scripts
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Check out-of-date packages
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/check_ver.sh
|
||||||
|
- name: Create issues
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/create_issue.sh
|
27
.forgejo/workflows/check-community.yml
Normal file
27
.forgejo/workflows/check-community.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-community:
|
||||||
|
name: Check community repo
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpine:latest
|
||||||
|
env:
|
||||||
|
downstream: https://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||||
|
FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
|
||||||
|
LABEL_NUMBER: 4
|
||||||
|
steps:
|
||||||
|
- name: Environment setup
|
||||||
|
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed
|
||||||
|
- name: Get scripts
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Check out-of-date packages
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/check_ver.sh
|
||||||
|
- name: Create issues
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/create_issue.sh
|
27
.forgejo/workflows/check-testing.yml
Normal file
27
.forgejo/workflows/check-testing.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-community:
|
||||||
|
name: Check testing repo
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpine:latest
|
||||||
|
env:
|
||||||
|
downstream: https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||||
|
FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
|
||||||
|
LABEL_NUMBER: 4
|
||||||
|
steps:
|
||||||
|
- name: Environment setup
|
||||||
|
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed
|
||||||
|
- name: Get scripts
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Check out-of-date packages
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/check_ver.sh
|
||||||
|
- name: Create issues
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/create_issue.sh
|
27
.forgejo/workflows/check-user.yml
Normal file
27
.forgejo/workflows/check-user.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-user:
|
||||||
|
name: Check user repo
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpine:latest
|
||||||
|
env:
|
||||||
|
downstream: https://ayakael.net/api/packages/forge/alpine/edge/user
|
||||||
|
FORGEJO_TOKEN: ${{ secrets.forgejo_token }}
|
||||||
|
LABEL_NUMBER: 4
|
||||||
|
steps:
|
||||||
|
- name: Environment setup
|
||||||
|
run: apk add grep coreutils gawk curl wget bash nodejs git jq sed
|
||||||
|
- name: Get scripts
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Check out-of-date packages
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/check_ver.sh
|
||||||
|
- name: Create issues
|
||||||
|
run: ${{ github.workspace }}/.forgejo/bin/create_issue.sh
|
21
.forgejo/workflows/lint.yaml
Normal file
21
.forgejo/workflows/lint.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ assigned, opened, synchronize, reopened ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
run-name: lint
|
||||||
|
runs-on: x86_64
|
||||||
|
container:
|
||||||
|
image: alpinelinux/apkbuild-lint-tools:latest
|
||||||
|
env:
|
||||||
|
CI_PROJECT_DIR: ${{ github.workspace }}
|
||||||
|
CI_DEBUG_BUILD: ${{ runner.debug }}
|
||||||
|
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
|
||||||
|
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
|
||||||
|
steps:
|
||||||
|
- run: doas apk add nodejs git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 500
|
||||||
|
- run: lint
|
109
.gitlab-ci.yml
109
.gitlab-ci.yml
|
@ -1,109 +0,0 @@
|
||||||
stages:
|
|
||||||
- verify
|
|
||||||
- build
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: clone
|
|
||||||
GIT_DEPTH: "500"
|
|
||||||
|
|
||||||
lint:
|
|
||||||
stage: verify
|
|
||||||
interruptible: true
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
sudo apk add shellcheck atools sudo abuild
|
|
||||||
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
||||||
lint
|
|
||||||
allow_failure: true
|
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
tags:
|
|
||||||
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-x86_64
|
|
||||||
|
|
||||||
.build:
|
|
||||||
stage: build
|
|
||||||
interruptible: true
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
sudo apk add alpine-sdk lua-aports sudo
|
|
||||||
sudo addgroup $USER abuild
|
|
||||||
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
||||||
sudo -Eu $USER build.sh
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- packages/
|
|
||||||
- keys/
|
|
||||||
- logs/
|
|
||||||
expire_in: 7 days
|
|
||||||
when: always
|
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
.cross:
|
|
||||||
stage: build
|
|
||||||
interruptible: true
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
sudo apk add alpine-sdk lua-aports sudo gzip xz qemu-$CI_QEMU_TARGET_ARCH
|
|
||||||
sudo addgroup $USER abuild
|
|
||||||
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
||||||
build-rootfs.sh alpine${CI_MERGE_REQUEST_TARGET_BRANCH_NAME/v} $CI_ALPINE_TARGET_ARCH --rootfsdir $HOME/sysroot-$CI_ALPINE_TARGET_ARCH
|
|
||||||
cp /etc/apk/repositories $HOME/sysroot-$CI_ALPINE_TARGET_ARCH/etc/apk/.
|
|
||||||
sudo -Eu $USER CHOST=$CI_TARGET_ALPINE_ARCH build.sh
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- packages/
|
|
||||||
- keys/
|
|
||||||
- logs/
|
|
||||||
expire_in: 7 days
|
|
||||||
when: always
|
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
build-x86_64:
|
|
||||||
extends: .build
|
|
||||||
when: always
|
|
||||||
tags:
|
|
||||||
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-x86_64
|
|
||||||
|
|
||||||
build-aarch64:
|
|
||||||
extends: .build
|
|
||||||
when: always
|
|
||||||
tags:
|
|
||||||
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-aarch64
|
|
||||||
|
|
||||||
build-ppc64le:
|
|
||||||
extends: .build
|
|
||||||
when: manual
|
|
||||||
tags:
|
|
||||||
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-ppc64le
|
|
||||||
|
|
||||||
build-s390x:
|
|
||||||
extends: .build
|
|
||||||
when: manual
|
|
||||||
tags:
|
|
||||||
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-s390x
|
|
||||||
|
|
||||||
build-armv7:
|
|
||||||
extends: .cross
|
|
||||||
when: manual
|
|
||||||
tags:
|
|
||||||
- apk-$CI_MERGE_REQUEST_TARGET_BRANCH_NAME-x86_64
|
|
||||||
variables:
|
|
||||||
CI_ALPINE_TARGET_ARCH: armv7
|
|
||||||
CI_QEMU_TARGET_ARCH: arm
|
|
||||||
|
|
||||||
push:
|
|
||||||
interruptible: true
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
sudo apk add abuild git-lfs findutils
|
|
||||||
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
|
|
||||||
push.sh
|
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
||||||
when: manual
|
|
||||||
tags:
|
|
||||||
- repo
|
|
|
@ -1,111 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
arch=
|
|
||||||
builddir=
|
|
||||||
checkdepends=
|
|
||||||
depends=
|
|
||||||
depends_dev=
|
|
||||||
depends_doc=
|
|
||||||
depends_libs=
|
|
||||||
depends_openrc=
|
|
||||||
depends_static=
|
|
||||||
install=
|
|
||||||
install_if=
|
|
||||||
langdir=
|
|
||||||
ldpath=
|
|
||||||
license=
|
|
||||||
makedepends=
|
|
||||||
makedepends_build=
|
|
||||||
makedepends_host=
|
|
||||||
md5sums=
|
|
||||||
options=
|
|
||||||
patch_args=
|
|
||||||
pkgbasedir=
|
|
||||||
pkgdesc=
|
|
||||||
pkgdir=
|
|
||||||
pkgname=
|
|
||||||
pkgrel=
|
|
||||||
pkgver=
|
|
||||||
pkggroups=
|
|
||||||
pkgusers=
|
|
||||||
provides=
|
|
||||||
provider_priority=
|
|
||||||
replaces=
|
|
||||||
sha256sums=
|
|
||||||
sha512sums=
|
|
||||||
sonameprefix=
|
|
||||||
source=
|
|
||||||
srcdir=
|
|
||||||
startdir=
|
|
||||||
subpackages=
|
|
||||||
subpkgdir=
|
|
||||||
subpkgname=
|
|
||||||
triggers=
|
|
||||||
url=
|
|
||||||
|
|
||||||
# abuild.conf
|
|
||||||
|
|
||||||
CFLAGS=
|
|
||||||
CXXFLAGS=
|
|
||||||
CPPFLAGS=
|
|
||||||
LDFLAGS=
|
|
||||||
JOBS=
|
|
||||||
MAKEFLAGS=
|
|
||||||
CMAKE_CROSSOPTS=
|
|
||||||
|
|
||||||
. ./APKBUILD
|
|
||||||
|
|
||||||
: "$arch"
|
|
||||||
: "$builddir"
|
|
||||||
: "$checkdepends"
|
|
||||||
: "$depends"
|
|
||||||
: "$depends_dev"
|
|
||||||
: "$depends_doc"
|
|
||||||
: "$depends_libs"
|
|
||||||
: "$depends_openrc"
|
|
||||||
: "$depends_static"
|
|
||||||
: "$install"
|
|
||||||
: "$install_if"
|
|
||||||
: "$langdir"
|
|
||||||
: "$ldpath"
|
|
||||||
: "$license"
|
|
||||||
: "$makedepends"
|
|
||||||
: "$makedepends_build"
|
|
||||||
: "$makedepends_host"
|
|
||||||
: "$md5sums"
|
|
||||||
: "$options"
|
|
||||||
: "$patch_args"
|
|
||||||
: "$pkgbasedir"
|
|
||||||
: "$pkgdesc"
|
|
||||||
: "$pkgdir"
|
|
||||||
: "$pkgname"
|
|
||||||
: "$pkgrel"
|
|
||||||
: "$pkgver"
|
|
||||||
: "$pkggroups"
|
|
||||||
: "$pkgusers"
|
|
||||||
: "$provides"
|
|
||||||
: "$provider_priority"
|
|
||||||
: "$replaces"
|
|
||||||
: "$sha256sums"
|
|
||||||
: "$sha512sums"
|
|
||||||
: "$sonameprefix"
|
|
||||||
: "$source"
|
|
||||||
: "$srcdir"
|
|
||||||
: "$startdir"
|
|
||||||
: "$subpackages"
|
|
||||||
: "$subpkgdir"
|
|
||||||
: "$subpkgname"
|
|
||||||
: "$triggers"
|
|
||||||
: "$url"
|
|
||||||
|
|
||||||
# abuild.conf
|
|
||||||
|
|
||||||
: "$CFLAGS"
|
|
||||||
: "$CXXFLAGS"
|
|
||||||
: "$CPPFLAGS"
|
|
||||||
: "$LDFLAGS"
|
|
||||||
: "$JOBS"
|
|
||||||
: "$MAKEFLAGS"
|
|
||||||
: "$CMAKE_CROSSOPTS"
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
shellcheck -s ash \
|
|
||||||
-e SC3043 \
|
|
||||||
-e SC3057 \
|
|
||||||
-e SC3060 \
|
|
||||||
-e SC2016 \
|
|
||||||
-e SC2086 \
|
|
||||||
-e SC2169 \
|
|
||||||
-e SC2155 \
|
|
||||||
-e SC2100 \
|
|
||||||
-e SC2209 \
|
|
||||||
-e SC2030 \
|
|
||||||
-e SC2031 \
|
|
||||||
-e SC1090 \
|
|
||||||
-xa $CI_PROJECT_DIR/.gitlab/bin/APKBUILD_SHIM
|
|
|
@ -1,556 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Availabl here: https://lab.ilot.io/dotnet/arcade/-/blob/7f6d9796cc7f594772f798358dbdd8c69b6a97af/eng/common/cross/build-rootfs.sh
|
|
||||||
# Only modification: qemu-$arch-static becomes qemu-$arch
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
usage()
|
|
||||||
{
|
|
||||||
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [llvmx[.y]] [--skipunmount] --rootfsdir <directory>]"
|
|
||||||
echo "BuildArch can be: arm(default), arm64, armel, armv6, ppc64le, riscv64, s390x, x64, x86"
|
|
||||||
echo "CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine"
|
|
||||||
echo " for alpine can be specified with version: alpineX.YY or alpineedge"
|
|
||||||
echo " for FreeBSD can be: freebsd12, freebsd13"
|
|
||||||
echo " for illumos can be: illumos"
|
|
||||||
echo " for Haiku can be: haiku."
|
|
||||||
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD"
|
|
||||||
echo "llvmx[.y] - optional, LLVM version for LLVM related packages."
|
|
||||||
echo "--skipunmount - optional, will skip the unmount of rootfs folder."
|
|
||||||
echo "--use-mirror - optional, use mirror URL to fetch resources, when available."
|
|
||||||
echo "--jobs N - optional, restrict to N jobs."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
__CodeName=xenial
|
|
||||||
__CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
||||||
__BuildArch=arm
|
|
||||||
__AlpineArch=armv7
|
|
||||||
__FreeBSDArch=arm
|
|
||||||
__FreeBSDMachineArch=armv7
|
|
||||||
__IllumosArch=arm7
|
|
||||||
__QEMUArch=arm
|
|
||||||
__UbuntuArch=armhf
|
|
||||||
__UbuntuRepo="http://ports.ubuntu.com/"
|
|
||||||
__LLDB_Package="liblldb-3.9-dev"
|
|
||||||
__SkipUnmount=0
|
|
||||||
|
|
||||||
# base development support
|
|
||||||
__UbuntuPackages="build-essential"
|
|
||||||
|
|
||||||
__AlpinePackages="alpine-base"
|
|
||||||
__AlpinePackages+=" build-base"
|
|
||||||
|
|
||||||
# symlinks fixer
|
|
||||||
__UbuntuPackages+=" symlinks"
|
|
||||||
|
|
||||||
# runtime dependencies
|
|
||||||
__UbuntuPackages+=" libicu-dev"
|
|
||||||
__UbuntuPackages+=" liblttng-ust-dev"
|
|
||||||
__UbuntuPackages+=" libunwind8-dev"
|
|
||||||
__UbuntuPackages+=" libnuma-dev"
|
|
||||||
|
|
||||||
# runtime libraries' dependencies
|
|
||||||
__UbuntuPackages+=" libcurl4-openssl-dev"
|
|
||||||
__UbuntuPackages+=" libkrb5-dev"
|
|
||||||
__UbuntuPackages+=" libssl-dev"
|
|
||||||
__UbuntuPackages+=" zlib1g-dev"
|
|
||||||
|
|
||||||
__FreeBSDBase="12.3-RELEASE"
|
|
||||||
__FreeBSDPkg="1.17.0"
|
|
||||||
__FreeBSDABI="12"
|
|
||||||
__FreeBSDPackages="libunwind"
|
|
||||||
__FreeBSDPackages+=" icu"
|
|
||||||
__FreeBSDPackages+=" libinotify"
|
|
||||||
__FreeBSDPackages+=" openssl"
|
|
||||||
__FreeBSDPackages+=" krb5"
|
|
||||||
__FreeBSDPackages+=" terminfo-db"
|
|
||||||
|
|
||||||
__IllumosPackages="icu"
|
|
||||||
__IllumosPackages+=" mit-krb5"
|
|
||||||
__IllumosPackages+=" openssl"
|
|
||||||
__IllumosPackages+=" zlib"
|
|
||||||
|
|
||||||
__HaikuPackages="gmp"
|
|
||||||
__HaikuPackages+=" gmp_devel"
|
|
||||||
__HaikuPackages+=" krb5"
|
|
||||||
__HaikuPackages+=" krb5_devel"
|
|
||||||
__HaikuPackages+=" libiconv"
|
|
||||||
__HaikuPackages+=" libiconv_devel"
|
|
||||||
__HaikuPackages+=" llvm12_libunwind"
|
|
||||||
__HaikuPackages+=" llvm12_libunwind_devel"
|
|
||||||
__HaikuPackages+=" mpfr"
|
|
||||||
__HaikuPackages+=" mpfr_devel"
|
|
||||||
|
|
||||||
# ML.NET dependencies
|
|
||||||
__UbuntuPackages+=" libomp5"
|
|
||||||
__UbuntuPackages+=" libomp-dev"
|
|
||||||
|
|
||||||
__Keyring=
|
|
||||||
__UseMirror=0
|
|
||||||
|
|
||||||
__UnprocessedBuildArgs=
|
|
||||||
while :; do
|
|
||||||
if [[ "$#" -le 0 ]]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
lowerI="$(echo "$1" | tr "[:upper:]" "[:lower:]")"
|
|
||||||
case $lowerI in
|
|
||||||
-\?|-h|--help)
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
arm)
|
|
||||||
__BuildArch=arm
|
|
||||||
__UbuntuArch=armhf
|
|
||||||
__AlpineArch=armv7
|
|
||||||
__QEMUArch=arm
|
|
||||||
;;
|
|
||||||
arm64)
|
|
||||||
__BuildArch=arm64
|
|
||||||
__UbuntuArch=arm64
|
|
||||||
__AlpineArch=aarch64
|
|
||||||
__QEMUArch=aarch64
|
|
||||||
__FreeBSDArch=arm64
|
|
||||||
__FreeBSDMachineArch=aarch64
|
|
||||||
;;
|
|
||||||
armel)
|
|
||||||
__BuildArch=armel
|
|
||||||
__UbuntuArch=armel
|
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
|
||||||
__CodeName=jessie
|
|
||||||
;;
|
|
||||||
armv6)
|
|
||||||
__BuildArch=armv6
|
|
||||||
__UbuntuArch=armhf
|
|
||||||
__QEMUArch=arm
|
|
||||||
__UbuntuRepo="http://raspbian.raspberrypi.org/raspbian/"
|
|
||||||
__CodeName=buster
|
|
||||||
__LLDB_Package="liblldb-6.0-dev"
|
|
||||||
|
|
||||||
if [[ -e "/usr/share/keyrings/raspbian-archive-keyring.gpg" ]]; then
|
|
||||||
__Keyring="--keyring /usr/share/keyrings/raspbian-archive-keyring.gpg"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
riscv64)
|
|
||||||
__BuildArch=riscv64
|
|
||||||
__AlpineArch=riscv64
|
|
||||||
__QEMUArch=riscv64
|
|
||||||
__UbuntuArch=riscv64
|
|
||||||
__UbuntuRepo="http://deb.debian.org/debian-ports"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
|
||||||
unset __LLDB_Package
|
|
||||||
|
|
||||||
if [[ -e "/usr/share/keyrings/debian-ports-archive-keyring.gpg" ]]; then
|
|
||||||
__Keyring="--keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg --include=debian-ports-archive-keyring"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
ppc64le)
|
|
||||||
__BuildArch=ppc64le
|
|
||||||
__AlpineArch=ppc64le
|
|
||||||
__QEMUArch=ppc64le
|
|
||||||
__UbuntuArch=ppc64el
|
|
||||||
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
|
|
||||||
unset __LLDB_Package
|
|
||||||
;;
|
|
||||||
s390x)
|
|
||||||
__BuildArch=s390x
|
|
||||||
__AlpineArch=s390x
|
|
||||||
__QEMUArch=s390x
|
|
||||||
__UbuntuArch=s390x
|
|
||||||
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
|
|
||||||
unset __LLDB_Package
|
|
||||||
;;
|
|
||||||
x64)
|
|
||||||
__BuildArch=x64
|
|
||||||
__AlpineArch=x86_64
|
|
||||||
__QEMUArch=x86_64
|
|
||||||
__UbuntuArch=amd64
|
|
||||||
__FreeBSDArch=amd64
|
|
||||||
__FreeBSDMachineArch=amd64
|
|
||||||
__illumosArch=x86_64
|
|
||||||
__UbuntuRepo=
|
|
||||||
;;
|
|
||||||
x86)
|
|
||||||
__BuildArch=x86
|
|
||||||
__AlpineArch=i386
|
|
||||||
__QEMUArch=i386
|
|
||||||
__UbuntuArch=i386
|
|
||||||
__AlpineArch=x86
|
|
||||||
__UbuntuRepo="http://archive.ubuntu.com/ubuntu/"
|
|
||||||
;;
|
|
||||||
lldb*)
|
|
||||||
version="${lowerI/lldb/}"
|
|
||||||
parts=(${version//./ })
|
|
||||||
|
|
||||||
# for versions > 6.0, lldb has dropped the minor version
|
|
||||||
if [[ "${parts[0]}" -gt 6 ]]; then
|
|
||||||
version="${parts[0]}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
__LLDB_Package="liblldb-${version}-dev"
|
|
||||||
;;
|
|
||||||
no-lldb)
|
|
||||||
unset __LLDB_Package
|
|
||||||
;;
|
|
||||||
llvm*)
|
|
||||||
version="${lowerI/llvm/}"
|
|
||||||
parts=(${version//./ })
|
|
||||||
__LLVM_MajorVersion="${parts[0]}"
|
|
||||||
__LLVM_MinorVersion="${parts[1]}"
|
|
||||||
|
|
||||||
# for versions > 6.0, llvm has dropped the minor version
|
|
||||||
if [[ -z "$__LLVM_MinorVersion" && "$__LLVM_MajorVersion" -le 6 ]]; then
|
|
||||||
__LLVM_MinorVersion=0;
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
xenial) # Ubuntu 16.04
|
|
||||||
if [[ "$__CodeName" != "jessie" ]]; then
|
|
||||||
__CodeName=xenial
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
zesty) # Ubuntu 17.04
|
|
||||||
if [[ "$__CodeName" != "jessie" ]]; then
|
|
||||||
__CodeName=zesty
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
bionic) # Ubuntu 18.04
|
|
||||||
if [[ "$__CodeName" != "jessie" ]]; then
|
|
||||||
__CodeName=bionic
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
focal) # Ubuntu 20.04
|
|
||||||
if [[ "$__CodeName" != "jessie" ]]; then
|
|
||||||
__CodeName=focal
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
jammy) # Ubuntu 22.04
|
|
||||||
if [[ "$__CodeName" != "jessie" ]]; then
|
|
||||||
__CodeName=jammy
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
jessie) # Debian 8
|
|
||||||
__CodeName=jessie
|
|
||||||
|
|
||||||
if [[ -z "$__UbuntuRepo" ]]; then
|
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
stretch) # Debian 9
|
|
||||||
__CodeName=stretch
|
|
||||||
__LLDB_Package="liblldb-6.0-dev"
|
|
||||||
|
|
||||||
if [[ -z "$__UbuntuRepo" ]]; then
|
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
buster) # Debian 10
|
|
||||||
__CodeName=buster
|
|
||||||
__LLDB_Package="liblldb-6.0-dev"
|
|
||||||
|
|
||||||
if [[ -z "$__UbuntuRepo" ]]; then
|
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
bullseye) # Debian 11
|
|
||||||
__CodeName=bullseye
|
|
||||||
|
|
||||||
if [[ -z "$__UbuntuRepo" ]]; then
|
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
sid) # Debian sid
|
|
||||||
__CodeName=sid
|
|
||||||
|
|
||||||
if [[ -z "$__UbuntuRepo" ]]; then
|
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
tizen)
|
|
||||||
__CodeName=
|
|
||||||
__UbuntuRepo=
|
|
||||||
__Tizen=tizen
|
|
||||||
;;
|
|
||||||
alpine*)
|
|
||||||
__CodeName=alpine
|
|
||||||
__UbuntuRepo=
|
|
||||||
version="${lowerI/alpine/}"
|
|
||||||
|
|
||||||
if [[ "$version" == "edge" ]]; then
|
|
||||||
__AlpineVersion=edge
|
|
||||||
else
|
|
||||||
parts=(${version//./ })
|
|
||||||
__AlpineMajorVersion="${parts[0]}"
|
|
||||||
__AlpineMinoVersion="${parts[1]}"
|
|
||||||
__AlpineVersion="$__AlpineMajorVersion.$__AlpineMinoVersion"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
freebsd12)
|
|
||||||
__CodeName=freebsd
|
|
||||||
__SkipUnmount=1
|
|
||||||
;;
|
|
||||||
freebsd13)
|
|
||||||
__CodeName=freebsd
|
|
||||||
__FreeBSDBase="13.0-RELEASE"
|
|
||||||
__FreeBSDABI="13"
|
|
||||||
__SkipUnmount=1
|
|
||||||
;;
|
|
||||||
illumos)
|
|
||||||
__CodeName=illumos
|
|
||||||
__SkipUnmount=1
|
|
||||||
;;
|
|
||||||
haiku)
|
|
||||||
__CodeName=haiku
|
|
||||||
__BuildArch=x64
|
|
||||||
__SkipUnmount=1
|
|
||||||
;;
|
|
||||||
--skipunmount)
|
|
||||||
__SkipUnmount=1
|
|
||||||
;;
|
|
||||||
--rootfsdir|-rootfsdir)
|
|
||||||
shift
|
|
||||||
__RootfsDir="$1"
|
|
||||||
;;
|
|
||||||
--use-mirror)
|
|
||||||
__UseMirror=1
|
|
||||||
;;
|
|
||||||
--use-jobs)
|
|
||||||
shift
|
|
||||||
MAXJOBS=$1
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ "$__BuildArch" == "armel" ]]; then
|
|
||||||
__LLDB_Package="lldb-3.5-dev"
|
|
||||||
fi
|
|
||||||
|
|
||||||
__UbuntuPackages+=" ${__LLDB_Package:-}"
|
|
||||||
|
|
||||||
if [[ -n "$__LLVM_MajorVersion" ]]; then
|
|
||||||
__UbuntuPackages+=" libclang-common-${__LLVM_MajorVersion}${__LLVM_MinorVersion:+.$__LLVM_MinorVersion}-dev"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z "$__RootfsDir" && -n "$ROOTFS_DIR" ]]; then
|
|
||||||
__RootfsDir="$ROOTFS_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z "$__RootfsDir" ]]; then
|
|
||||||
__RootfsDir="$__CrossDir/../../../.tools/rootfs/$__BuildArch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "$__RootfsDir" ]]; then
|
|
||||||
if [[ "$__SkipUnmount" == "0" ]]; then
|
|
||||||
umount "$__RootfsDir"/* || true
|
|
||||||
fi
|
|
||||||
rm -rf "$__RootfsDir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "$__RootfsDir"
|
|
||||||
__RootfsDir="$( cd "$__RootfsDir" && pwd )"
|
|
||||||
|
|
||||||
if [[ "$__CodeName" == "alpine" ]]; then
|
|
||||||
__ApkToolsVersion=2.12.11
|
|
||||||
__ApkToolsDir="$(mktemp -d)"
|
|
||||||
|
|
||||||
wget "https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic//v$__ApkToolsVersion/x86_64/apk.static" -P "$__ApkToolsDir"
|
|
||||||
chmod +x "$__ApkToolsDir/apk.static"
|
|
||||||
|
|
||||||
mkdir -p "$__RootfsDir"/usr/bin
|
|
||||||
cp -v "/usr/bin/qemu-$__QEMUArch" "$__RootfsDir/usr/bin"
|
|
||||||
|
|
||||||
if [[ "$__AlpineVersion" == "edge" ]]; then
|
|
||||||
version=edge
|
|
||||||
else
|
|
||||||
version="v$__AlpineVersion"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# initialize DB
|
|
||||||
"$__ApkToolsDir/apk.static" \
|
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
|
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
|
|
||||||
-U --allow-untrusted --root "$__RootfsDir" --arch "$__AlpineArch" --initdb add
|
|
||||||
|
|
||||||
if [[ "$__AlpineLlvmLibsLookup" == 1 ]]; then
|
|
||||||
__AlpinePackages+=" $("$__ApkToolsDir/apk.static" \
|
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
|
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
|
|
||||||
-U --allow-untrusted --root "$__RootfsDir" --arch "$__AlpineArch" \
|
|
||||||
search 'llvm*-libs' | sort | tail -1 | sed 's/-[^-]*//2g')"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# install all packages in one go
|
|
||||||
"$__ApkToolsDir/apk.static" \
|
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
|
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
|
|
||||||
-U --allow-untrusted --no-scripts --root "$__RootfsDir" --arch "$__AlpineArch" \
|
|
||||||
add $__AlpinePackages
|
|
||||||
|
|
||||||
rm -r "$__ApkToolsDir"
|
|
||||||
elif [[ "$__CodeName" == "freebsd" ]]; then
|
|
||||||
mkdir -p "$__RootfsDir"/usr/local/etc
|
|
||||||
JOBS=${MAXJOBS:="$(getconf _NPROCESSORS_ONLN)"}
|
|
||||||
wget -O - "https://download.freebsd.org/ftp/releases/${__FreeBSDArch}/${__FreeBSDMachineArch}/${__FreeBSDBase}/base.txz" | tar -C "$__RootfsDir" -Jxf - ./lib ./usr/lib ./usr/libdata ./usr/include ./usr/share/keys ./etc ./bin/freebsd-version
|
|
||||||
echo "ABI = \"FreeBSD:${__FreeBSDABI}:${__FreeBSDMachineArch}\"; FINGERPRINTS = \"${__RootfsDir}/usr/share/keys\"; REPOS_DIR = [\"${__RootfsDir}/etc/pkg\"]; REPO_AUTOUPDATE = NO; RUN_SCRIPTS = NO;" > "${__RootfsDir}"/usr/local/etc/pkg.conf
|
|
||||||
echo "FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly\", mirror_type: \"srv\", signature_type: \"fingerprints\", fingerprints: \"${__RootfsDir}/usr/share/keys/pkg\", enabled: yes }" > "${__RootfsDir}"/etc/pkg/FreeBSD.conf
|
|
||||||
mkdir -p "$__RootfsDir"/tmp
|
|
||||||
# get and build package manager
|
|
||||||
wget -O - "https://github.com/freebsd/pkg/archive/${__FreeBSDPkg}.tar.gz" | tar -C "$__RootfsDir"/tmp -zxf -
|
|
||||||
cd "$__RootfsDir/tmp/pkg-${__FreeBSDPkg}"
|
|
||||||
# needed for install to succeed
|
|
||||||
mkdir -p "$__RootfsDir"/host/etc
|
|
||||||
./autogen.sh && ./configure --prefix="$__RootfsDir"/host && make -j "$JOBS" && make install
|
|
||||||
rm -rf "$__RootfsDir/tmp/pkg-${__FreeBSDPkg}"
|
|
||||||
# install packages we need.
|
|
||||||
INSTALL_AS_USER=$(whoami) "$__RootfsDir"/host/sbin/pkg -r "$__RootfsDir" -C "$__RootfsDir"/usr/local/etc/pkg.conf update
|
|
||||||
INSTALL_AS_USER=$(whoami) "$__RootfsDir"/host/sbin/pkg -r "$__RootfsDir" -C "$__RootfsDir"/usr/local/etc/pkg.conf install --yes $__FreeBSDPackages
|
|
||||||
elif [[ "$__CodeName" == "illumos" ]]; then
|
|
||||||
mkdir "$__RootfsDir/tmp"
|
|
||||||
pushd "$__RootfsDir/tmp"
|
|
||||||
JOBS=${MAXJOBS:="$(getconf _NPROCESSORS_ONLN)"}
|
|
||||||
echo "Downloading sysroot."
|
|
||||||
wget -O - https://github.com/illumos/sysroot/releases/download/20181213-de6af22ae73b-v1/illumos-sysroot-i386-20181213-de6af22ae73b-v1.tar.gz | tar -C "$__RootfsDir" -xzf -
|
|
||||||
echo "Building binutils. Please wait.."
|
|
||||||
wget -O - https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.bz2 | tar -xjf -
|
|
||||||
mkdir build-binutils && cd build-binutils
|
|
||||||
../binutils-2.33.1/configure --prefix="$__RootfsDir" --target="${__illumosArch}-sun-solaris2.10" --program-prefix="${__illumosArch}-illumos-" --with-sysroot="$__RootfsDir"
|
|
||||||
make -j "$JOBS" && make install && cd ..
|
|
||||||
echo "Building gcc. Please wait.."
|
|
||||||
wget -O - https://ftp.gnu.org/gnu/gcc/gcc-8.4.0/gcc-8.4.0.tar.xz | tar -xJf -
|
|
||||||
CFLAGS="-fPIC"
|
|
||||||
CXXFLAGS="-fPIC"
|
|
||||||
CXXFLAGS_FOR_TARGET="-fPIC"
|
|
||||||
CFLAGS_FOR_TARGET="-fPIC"
|
|
||||||
export CFLAGS CXXFLAGS CXXFLAGS_FOR_TARGET CFLAGS_FOR_TARGET
|
|
||||||
mkdir build-gcc && cd build-gcc
|
|
||||||
../gcc-8.4.0/configure --prefix="$__RootfsDir" --target="${__illumosArch}-sun-solaris2.10" --program-prefix="${__illumosArch}-illumos-" --with-sysroot="$__RootfsDir" --with-gnu-as \
|
|
||||||
--with-gnu-ld --disable-nls --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libcilkrts --disable-libada --disable-libsanitizer \
|
|
||||||
--disable-libquadmath-support --disable-shared --enable-tls
|
|
||||||
make -j "$JOBS" && make install && cd ..
|
|
||||||
BaseUrl=https://pkgsrc.smartos.org
|
|
||||||
if [[ "$__UseMirror" == 1 ]]; then
|
|
||||||
BaseUrl=https://pkgsrc.smartos.skylime.net
|
|
||||||
fi
|
|
||||||
BaseUrl="$BaseUrl/packages/SmartOS/trunk/${__illumosArch}/All"
|
|
||||||
echo "Downloading manifest"
|
|
||||||
wget "$BaseUrl"
|
|
||||||
echo "Downloading dependencies."
|
|
||||||
read -ra array <<<"$__IllumosPackages"
|
|
||||||
for package in "${array[@]}"; do
|
|
||||||
echo "Installing '$package'"
|
|
||||||
# find last occurrence of package in listing and extract its name
|
|
||||||
package="$(sed -En '/.*href="('"$package"'-[0-9].*).tgz".*/h;$!d;g;s//\1/p' All)"
|
|
||||||
echo "Resolved name '$package'"
|
|
||||||
wget "$BaseUrl"/"$package".tgz
|
|
||||||
ar -x "$package".tgz
|
|
||||||
tar --skip-old-files -xzf "$package".tmp.tg* -C "$__RootfsDir" 2>/dev/null
|
|
||||||
done
|
|
||||||
echo "Cleaning up temporary files."
|
|
||||||
popd
|
|
||||||
rm -rf "$__RootfsDir"/{tmp,+*}
|
|
||||||
mkdir -p "$__RootfsDir"/usr/include/net
|
|
||||||
mkdir -p "$__RootfsDir"/usr/include/netpacket
|
|
||||||
wget -P "$__RootfsDir"/usr/include/net https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/io/bpf/net/bpf.h
|
|
||||||
wget -P "$__RootfsDir"/usr/include/net https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/io/bpf/net/dlt.h
|
|
||||||
wget -P "$__RootfsDir"/usr/include/netpacket https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/inet/sockmods/netpacket/packet.h
|
|
||||||
wget -P "$__RootfsDir"/usr/include/sys https://raw.githubusercontent.com/illumos/illumos-gate/master/usr/src/uts/common/sys/sdt.h
|
|
||||||
elif [[ "$__CodeName" == "haiku" ]]; then
|
|
||||||
JOBS=${MAXJOBS:="$(getconf _NPROCESSORS_ONLN)"}
|
|
||||||
|
|
||||||
echo "Building Haiku sysroot for x86_64"
|
|
||||||
mkdir -p "$__RootfsDir/tmp"
|
|
||||||
cd "$__RootfsDir/tmp"
|
|
||||||
git clone -b hrev56235 https://review.haiku-os.org/haiku
|
|
||||||
git clone -b btrev43195 https://review.haiku-os.org/buildtools
|
|
||||||
cd "$__RootfsDir/tmp/buildtools" && git checkout 7487388f5110021d400b9f3b88e1a7f310dc066d
|
|
||||||
|
|
||||||
# Fetch some unmerged patches
|
|
||||||
cd "$__RootfsDir/tmp/haiku"
|
|
||||||
## Add development build profile (slimmer than nightly)
|
|
||||||
git fetch origin refs/changes/64/4164/1 && git -c commit.gpgsign=false cherry-pick FETCH_HEAD
|
|
||||||
|
|
||||||
# Build jam
|
|
||||||
cd "$__RootfsDir/tmp/buildtools/jam"
|
|
||||||
make
|
|
||||||
|
|
||||||
# Configure cross tools
|
|
||||||
echo "Building cross-compiler"
|
|
||||||
mkdir -p "$__RootfsDir/generated"
|
|
||||||
cd "$__RootfsDir/generated"
|
|
||||||
"$__RootfsDir/tmp/haiku/configure" -j"$JOBS" --sysroot "$__RootfsDir" --cross-tools-source "$__RootfsDir/tmp/buildtools" --build-cross-tools x86_64
|
|
||||||
|
|
||||||
# Build Haiku packages
|
|
||||||
echo "Building Haiku"
|
|
||||||
echo 'HAIKU_BUILD_PROFILE = "development-raw" ;' > UserProfileConfig
|
|
||||||
"$__RootfsDir/tmp/buildtools/jam/jam0" -j"$JOBS" -q '<build>package' '<repository>Haiku'
|
|
||||||
|
|
||||||
BaseUrl="https://depot.haiku-os.org/__api/v2/pkg/get-pkg"
|
|
||||||
|
|
||||||
# Download additional packages
|
|
||||||
echo "Downloading additional required packages"
|
|
||||||
read -ra array <<<"$__HaikuPackages"
|
|
||||||
for package in "${array[@]}"; do
|
|
||||||
echo "Downloading $package..."
|
|
||||||
# API documented here: https://github.com/haiku/haikudepotserver/blob/master/haikudepotserver-api2/src/main/resources/api2/pkg.yaml#L60
|
|
||||||
# The schema here: https://github.com/haiku/haikudepotserver/blob/master/haikudepotserver-api2/src/main/resources/api2/pkg.yaml#L598
|
|
||||||
hpkgDownloadUrl="$(wget -qO- --post-data='{"name":"'"$package"'","repositorySourceCode":"haikuports_x86_64","versionType":"LATEST","naturalLanguageCode":"en"}' \
|
|
||||||
--header='Content-Type:application/json' "$BaseUrl" | jq -r '.result.versions[].hpkgDownloadURL')"
|
|
||||||
wget -P "$__RootfsDir/generated/download" "$hpkgDownloadUrl"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Setup the sysroot
|
|
||||||
echo "Setting up sysroot and extracting needed packages"
|
|
||||||
mkdir -p "$__RootfsDir/boot/system"
|
|
||||||
for file in "$__RootfsDir/generated/objects/haiku/x86_64/packaging/packages/"*.hpkg; do
|
|
||||||
"$__RootfsDir/generated/objects/linux/x86_64/release/tools/package/package" extract -C "$__RootfsDir/boot/system" "$file"
|
|
||||||
done
|
|
||||||
for file in "$__RootfsDir/generated/download/"*.hpkg; do
|
|
||||||
"$__RootfsDir/generated/objects/linux/x86_64/release/tools/package/package" extract -C "$__RootfsDir/boot/system" "$file"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Cleaning up temporary files
|
|
||||||
echo "Cleaning up temporary files"
|
|
||||||
rm -rf "$__RootfsDir/tmp"
|
|
||||||
for name in "$__RootfsDir/generated/"*; do
|
|
||||||
if [[ "$name" =~ "cross-tools-" ]]; then
|
|
||||||
: # Keep the cross-compiler
|
|
||||||
else
|
|
||||||
rm -rf "$name"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
elif [[ -n "$__CodeName" ]]; then
|
|
||||||
qemu-debootstrap $__Keyring --arch "$__UbuntuArch" "$__CodeName" "$__RootfsDir" "$__UbuntuRepo"
|
|
||||||
cp "$__CrossDir/$__BuildArch/sources.list.$__CodeName" "$__RootfsDir/etc/apt/sources.list"
|
|
||||||
chroot "$__RootfsDir" apt-get update
|
|
||||||
chroot "$__RootfsDir" apt-get -f -y install
|
|
||||||
chroot "$__RootfsDir" apt-get -y install $__UbuntuPackages
|
|
||||||
chroot "$__RootfsDir" symlinks -cr /usr
|
|
||||||
chroot "$__RootfsDir" apt-get clean
|
|
||||||
|
|
||||||
if [[ "$__SkipUnmount" == "0" ]]; then
|
|
||||||
umount "$__RootfsDir"/* || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$__BuildArch" == "armel" && "$__CodeName" == "jessie" ]]; then
|
|
||||||
pushd "$__RootfsDir"
|
|
||||||
patch -p1 < "$__CrossDir/$__BuildArch/armel.jessie.patch"
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
elif [[ "$__Tizen" == "tizen" ]]; then
|
|
||||||
ROOTFS_DIR="$__RootfsDir" "$__CrossDir/tizen-build-rootfs.sh" "$__BuildArch"
|
|
||||||
else
|
|
||||||
echo "Unsupported target platform."
|
|
||||||
usage;
|
|
||||||
exit 1
|
|
||||||
fi
|
|
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
echo "Usage: $0 <basebranch>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
||||||
echo "Fatal: not inside a git repository"
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
basebranch=$1
|
|
||||||
|
|
||||||
if ! git rev-parse --verify --quiet $basebranch >/dev/null; then
|
|
||||||
# The base branch does not eixst, probably due to a shallow clone
|
|
||||||
git fetch -v $CI_MERGE_REQUEST_PROJECT_URL.git +refs/heads/$basebranch:refs/heads/$basebranch
|
|
||||||
fi
|
|
||||||
|
|
||||||
git --no-pager diff --diff-filter=ACMR --name-only $basebranch...HEAD -- "*/APKBUILD" | xargs -r -n1 dirname
|
|
|
@ -1,74 +0,0 @@
|
||||||
# shellcheck disable=SC3043
|
|
||||||
|
|
||||||
:
|
|
||||||
|
|
||||||
# shellcheck disable=SC3040
|
|
||||||
set -eu -o pipefail
|
|
||||||
|
|
||||||
changed_repos() {
|
|
||||||
: "${APORTSDIR?APORTSDIR missing}"
|
|
||||||
: "${BASEBRANCH?BASEBRANCH missing}"
|
|
||||||
|
|
||||||
cd "$APORTSDIR"
|
|
||||||
for repo in $REPOS; do
|
|
||||||
git diff --diff-filter=ACMR --exit-code "$BASEBRANCH"...HEAD -- "$repo" >/dev/null \
|
|
||||||
|| echo "$repo"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
changed_aports() {
|
|
||||||
: "${APORTSDIR?APORTSDIR missing}"
|
|
||||||
: "${BASEBRANCH?BASEBRANCH missing}"
|
|
||||||
|
|
||||||
cd "$APORTSDIR"
|
|
||||||
local repo="$1"
|
|
||||||
local aports
|
|
||||||
|
|
||||||
aports=$(git diff --name-only --diff-filter=ACMR --relative="$repo" \
|
|
||||||
"$BASEBRANCH"...HEAD -- "*/APKBUILD" | xargs -rn1 dirname)
|
|
||||||
|
|
||||||
# shellcheck disable=2086
|
|
||||||
ap builddirs -d "$APORTSDIR/$repo" $aports 2>/dev/null | xargs -rn1 basename
|
|
||||||
}
|
|
||||||
|
|
||||||
section_start() {
|
|
||||||
name=${1?arg 1 name missing}
|
|
||||||
header=${2?arg 2 header missing}
|
|
||||||
collapsed=$2
|
|
||||||
timestamp=$(date +%s)
|
|
||||||
|
|
||||||
options=""
|
|
||||||
case $collapsed in
|
|
||||||
yes|on|collapsed|true) options="[collapsed=true]";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
printf "\e[0Ksection_start:%d:%s%s\r\e[0K%s\n" "$timestamp" "$name" "$options" "$header"
|
|
||||||
}
|
|
||||||
|
|
||||||
section_end() {
|
|
||||||
name=$1
|
|
||||||
timestamp=$(date +%s)
|
|
||||||
|
|
||||||
printf "\e[0Ksection_end:%d:%s\r\e[0K" "$timestamp" "$name"
|
|
||||||
}
|
|
||||||
|
|
||||||
gitlab_key_to_rsa() {
|
|
||||||
KEY=$1
|
|
||||||
TYPE=$2
|
|
||||||
TGT=$3
|
|
||||||
TGT_DIR=${TGT%/*}
|
|
||||||
if [ "$TGT" == "$TGT_DIR" ]; then
|
|
||||||
TGT_DIR="./"
|
|
||||||
fi
|
|
||||||
if [ ! -d "$TGT_DIR" ]; then
|
|
||||||
mkdir -p "$TGT_DIR"
|
|
||||||
fi
|
|
||||||
case $TYPE in
|
|
||||||
rsa-public) local type="PUBLIC";;
|
|
||||||
rsa-private) local type="RSA PRIVATE";;
|
|
||||||
esac
|
|
||||||
echo "-----BEGIN $type KEY-----" > "$TGT"
|
|
||||||
echo $1 | sed 's/.\{64\}/&\
|
|
||||||
/g' >> "$TGT"
|
|
||||||
echo "-----END $type KEY-----" >> "$TGT"
|
|
||||||
}
|
|
|
@ -1,96 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
BLUE="\e[34m"
|
|
||||||
MAGENTA="\e[35m"
|
|
||||||
RESET="\e[0m"
|
|
||||||
|
|
||||||
readonly BASEBRANCH=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
|
||||||
|
|
||||||
verbose() {
|
|
||||||
echo "> " "$@"
|
|
||||||
# shellcheck disable=SC2068
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
|
|
||||||
debugging() {
|
|
||||||
[ -n "$CI_DEBUG_BUILD" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
debug() {
|
|
||||||
if debugging; then
|
|
||||||
verbose "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# git no longer allows to execute in repositories owned by different users
|
|
||||||
sudo chown -R gitlab-runner: .
|
|
||||||
|
|
||||||
fetch_flags="-qn"
|
|
||||||
debugging && fetch_flags="-v"
|
|
||||||
|
|
||||||
git fetch $fetch_flags "$CI_MERGE_REQUEST_PROJECT_URL" \
|
|
||||||
"+refs/heads/$BASEBRANCH:refs/heads/$BASEBRANCH"
|
|
||||||
|
|
||||||
if debugging; then
|
|
||||||
merge_base=$(git merge-base "$BASEBRANCH" HEAD)
|
|
||||||
echo "$merge_base"
|
|
||||||
git --version
|
|
||||||
git config -l
|
|
||||||
git tag merge-base "$merge_base" || { echo "Could not determine merge-base"; exit 50; }
|
|
||||||
git log --oneline --graph --decorate --all
|
|
||||||
fi
|
|
||||||
|
|
||||||
has_problems=0
|
|
||||||
|
|
||||||
for PKG in $(changed-aports "$BASEBRANCH"); do
|
|
||||||
printf "$BLUE==>$RESET Linting $PKG\n"
|
|
||||||
|
|
||||||
(
|
|
||||||
cd "$PKG"
|
|
||||||
|
|
||||||
repo=$(basename $(dirname $PKG));
|
|
||||||
|
|
||||||
if [ "$repo" == "backports" ]; then
|
|
||||||
echo "Skipping $PKG as backports (we don't care)"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "\n\n"
|
|
||||||
printf "$BLUE"
|
|
||||||
printf '======================================================\n'
|
|
||||||
printf " parse APKBUILD:\n"
|
|
||||||
printf '======================================================'
|
|
||||||
printf "$RESET\n\n"
|
|
||||||
( . ./APKBUILD ) || has_problems=1
|
|
||||||
|
|
||||||
printf "\n\n"
|
|
||||||
printf "$BLUE"
|
|
||||||
printf '======================================================\n'
|
|
||||||
printf " abuild sanitycheck:\n"
|
|
||||||
printf '======================================================'
|
|
||||||
printf "$RESET\n\n"
|
|
||||||
abuild sanitycheck || has_problems=1
|
|
||||||
|
|
||||||
printf "\n\n"
|
|
||||||
printf "$BLUE"
|
|
||||||
printf '======================================================\n'
|
|
||||||
printf " apkbuild-shellcheck:\n"
|
|
||||||
printf '======================================================'
|
|
||||||
printf "$RESET\n"
|
|
||||||
apkbuild-shellcheck || has_problems=1
|
|
||||||
|
|
||||||
printf "\n\n"
|
|
||||||
printf "$BLUE"
|
|
||||||
printf '======================================================\n'
|
|
||||||
printf " apkbuild-lint:\n"
|
|
||||||
printf '======================================================'
|
|
||||||
printf "$RESET\n\n"
|
|
||||||
apkbuild-lint APKBUILD || has_problems=1
|
|
||||||
|
|
||||||
return $has_problems
|
|
||||||
) || has_problems=1
|
|
||||||
|
|
||||||
echo
|
|
||||||
done
|
|
||||||
|
|
||||||
exit $has_problems
|
|
|
@ -1,56 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# shellcheck disable=SC3043
|
|
||||||
|
|
||||||
. $CI_PROJECT_DIR/.gitlab/bin/functions.sh
|
|
||||||
|
|
||||||
# shellcheck disable=SC3040
|
|
||||||
set -eu -o pipefail
|
|
||||||
|
|
||||||
readonly APORTSDIR=$CI_PROJECT_DIR
|
|
||||||
readonly REPOS="backports user"
|
|
||||||
readonly BASEBRANCH=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
|
||||||
|
|
||||||
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
|
||||||
|
|
||||||
gitlab_key_to_rsa $ABUILD_KEY rsa-private $HOME/.abuild/$ABUILD_KEY_NAME.rsa
|
|
||||||
gitlab_key_to_rsa $ABUILD_KEY_PUB rsa-public $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub
|
|
||||||
gitlab_key_to_rsa $SSH_KEY rsa-private $HOME/.ssh/id_rsa
|
|
||||||
chmod 700 "$HOME"/.ssh/id_rsa
|
|
||||||
chmod 700 "$HOME"/.abuild/$ABUILD_KEY_NAME.rsa
|
|
||||||
|
|
||||||
echo "PACKAGER_PRIVKEY=$HOME/.abuild/$ABUILD_KEY_NAME.rsa" > $HOME/.abuild/abuild.conf
|
|
||||||
echo "REPODEST=$HOME/repo-apk" >> $HOME/.abuild/abuild.conf
|
|
||||||
sudo cp $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub /etc/apk/keys/.
|
|
||||||
|
|
||||||
if [ -d $HOME/repo-apk ]; then
|
|
||||||
git -C $HOME/repo-apk fetch
|
|
||||||
git -C $HOME/repo-apk checkout $BASEBRANCH
|
|
||||||
git -C $HOME/repo-apk pull --rebase
|
|
||||||
else
|
|
||||||
git clone git@lab.ilot.io:ayakael/repo-apk -b $BASEBRANCH $HOME/repo-apk
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in $(find packages -type f -name "*.apk"); do
|
|
||||||
install -vDm644 $i ${i/packages/$HOME\/repo-apk}
|
|
||||||
done
|
|
||||||
|
|
||||||
fetch_flags="-qn"
|
|
||||||
git fetch $fetch_flags "$CI_MERGE_REQUEST_PROJECT_URL" \
|
|
||||||
"+refs/heads/$BASEBRANCH:refs/heads/$BASEBRANCH"
|
|
||||||
|
|
||||||
for repo in $(changed_repos); do
|
|
||||||
rm $HOME/repo-apk/$repo/*/APKINDEX.tar.gz | true
|
|
||||||
mkdir -p $repo/DUMMY
|
|
||||||
echo "pkgname=DUMMY" > $repo/DUMMY/APKBUILD
|
|
||||||
cd $repo/DUMMY
|
|
||||||
for i in $(find $HOME/repo-apk/$repo -maxdepth 1 -mindepth 1 -printf '%P '); do
|
|
||||||
CHOST=$i abuild index
|
|
||||||
done
|
|
||||||
cd "$CI_PROJECT_DIR"
|
|
||||||
rm -R $repo/DUMMY
|
|
||||||
done
|
|
||||||
|
|
||||||
git -C $HOME/repo-apk add .
|
|
||||||
git -C $HOME/repo-apk commit -m "Update from $CI_MERGE_REQUEST_IID - $CI_MERGE_REQUEST_TITLE"
|
|
||||||
git -C $HOME/repo-apk push
|
|
|
@ -1,17 +0,0 @@
|
||||||
diff --git a/usr/bin/abuild.orig b/usr/bin/abuild
|
|
||||||
index 71e0681..d4ae3dd 100755
|
|
||||||
--- a/usr/bin/abuild.orig
|
|
||||||
+++ b/usr/bin/abuild
|
|
||||||
@@ -2231,7 +2231,11 @@ calcdeps() {
|
|
||||||
list_has $i $builddeps && continue
|
|
||||||
subpackages_has ${i%%[<>=]*} || builddeps="$builddeps $i"
|
|
||||||
done
|
|
||||||
- hostdeps="$EXTRADEPENDS_TARGET"
|
|
||||||
+ for i in $EXTRADEPENDS_HOST $EXTRADEPENDS_TARGET $depends $makedepends; do
|
|
||||||
+ [ "$pkgname" = "${i%%[<>=]*}" ] && continue
|
|
||||||
+ list_has $i $hostdeps && continue
|
|
||||||
+ subpackages_has ${i%%[<>=]*} || hostdeps="$hostdeps $i"
|
|
||||||
+ done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
28
README.md
28
README.md
|
@ -1,32 +1,32 @@
|
||||||
# user-aports
|
# ayaports
|
||||||
Upstream: https://lab.ilot.io/ayakael/user-aports
|
Upstream: https://ayakael.net/forge/ayaports
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
This repository contains aports that are not yet merged in the official Alpine
|
This repository contains aports that are not yet merged in the official Alpine
|
||||||
Linux repository or don’t adhere to Alpine polices. Packages are automatically
|
Linux repository or don’t adhere to Alpine polices. Packages are automatically
|
||||||
built using GitLab CI on my own GitLab instance. Once built, they are deployed
|
built using CI. Once built, they are deployed to a Forgejo repository, making
|
||||||
to a git-lfs repository, making them available to apk.
|
them available to apk.
|
||||||
|
|
||||||
Branches are matched to Alpine releases.
|
Branches are matched to Alpine releases.
|
||||||
|
|
||||||
|
|
||||||
## Repositories
|
## Repositories
|
||||||
|
|
||||||
You can browse all the repositories at https://lab.ilot.io/ayakael/repo-apk.
|
You can browse all the repositories at https://ayakael.net/forge/ayaports
|
||||||
Affixed to each repository description is the appropriate link for use in
|
Affixed to each repository description is the appropriate link for use in
|
||||||
`/etc/apk/repositories`.
|
`/etc/apk/repositories`.
|
||||||
|
|
||||||
#### Backports
|
#### Backports
|
||||||
```
|
```
|
||||||
https://lab.ilot.io/ayakael/repo-apk/-/raw/edge/backports
|
https://ayakael.net/api/packages/forge/alpine/v3.21/backports
|
||||||
```
|
```
|
||||||
|
|
||||||
Aports from the official Alpine repositories backported from edge.
|
Aports from the official Alpine repositories backported from edge. This is only
|
||||||
|
available and kept up-to-date on latest stable release.
|
||||||
|
|
||||||
#### User
|
#### User
|
||||||
```
|
```
|
||||||
https://lab.ilot.io/ayakael/repo-apk/-/raw/edge/user
|
https://ayakael.net/api/packages/forge/alpine/edge/user
|
||||||
```
|
```
|
||||||
|
|
||||||
Aports that have yet to be (or may never be) upstreamed to the official
|
Aports that have yet to be (or may never be) upstreamed to the official
|
||||||
|
@ -34,11 +34,11 @@ aports.
|
||||||
|
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
Add security key of the repo-apk repository to your /etc/apk/keys:
|
Add security key of the apk repository to your /etc/apk/keys:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd /etc/apk/keys
|
cd /etc/apk/keys
|
||||||
wget https://lab.ilot.io/ayakael/repo-apk/-/raw/edge/antoine.martin@protonmail.com-5b3109ad.rsa.pub
|
curl -JO https://ayakael.net/api/packages/forge/alpine/key
|
||||||
```
|
```
|
||||||
Add repositories that you want to use (see above) to `/etc/apk/repositories`.
|
Add repositories that you want to use (see above) to `/etc/apk/repositories`.
|
||||||
|
|
||||||
|
@ -52,10 +52,10 @@ they will work for you.
|
||||||
|
|
||||||
## Contribution & bug reports
|
## Contribution & bug reports
|
||||||
If you wish to contribute to this aports collection, or wish to report a bug,
|
If you wish to contribute to this aports collection, or wish to report a bug,
|
||||||
you can do so on Alpine's GitLab instance here:
|
you can do so on Codeberg here:
|
||||||
https://gitlab.alpinelinux.org/ayakael/user-aports
|
https://codeberg.org/ayakael/ayaports/issues
|
||||||
|
|
||||||
For packages that are in testing/community, bug reports and merge requests
|
For packages that are in backports, bug reports and merge requests
|
||||||
should be done on Alpine's aports repo instance:
|
should be done on Alpine's aports repo instance:
|
||||||
https://gitlab.alpinelinux.org/alpine/aports
|
https://gitlab.alpinelinux.org/alpine/aports
|
||||||
|
|
||||||
|
|
25
backports/calibre/0001-calibre-no-update.patch
Normal file
25
backports/calibre/0001-calibre-no-update.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
diff --color -Nur calibre-6.17.0.orig/src/calibre/gui2/update.py calibre-6.17.0/src/calibre/gui2/update.py
|
||||||
|
--- calibre-6.17.0.orig/src/calibre/gui2/update.py 2023-05-06 11:36:35.678461036 -0700
|
||||||
|
+++ calibre-6.17.0/src/calibre/gui2/update.py 2023-05-06 11:39:10.365134930 -0700
|
||||||
|
@@ -82,20 +82,6 @@
|
||||||
|
while not self.shutdown_event.is_set():
|
||||||
|
calibre_update_version = NO_CALIBRE_UPDATE
|
||||||
|
plugins_update_found = 0
|
||||||
|
- try:
|
||||||
|
- version = get_newest_version()
|
||||||
|
- if version[:2] > numeric_version[:2]:
|
||||||
|
- calibre_update_version = version
|
||||||
|
- except Exception as e:
|
||||||
|
- prints('Failed to check for calibre update:', as_unicode(e))
|
||||||
|
- try:
|
||||||
|
- update_plugins = get_plugin_updates_available(raise_error=True)
|
||||||
|
- if update_plugins is not None:
|
||||||
|
- plugins_update_found = len(update_plugins)
|
||||||
|
- except Exception as e:
|
||||||
|
- prints('Failed to check for plugin update:', as_unicode(e))
|
||||||
|
- if calibre_update_version != NO_CALIBRE_UPDATE or plugins_update_found > 0:
|
||||||
|
- self.signal.update_found.emit(calibre_update_version, plugins_update_found)
|
||||||
|
self.shutdown_event.wait(self.INTERVAL)
|
||||||
|
|
||||||
|
def shutdown(self):
|
||||||
|
|
116
backports/calibre/APKBUILD
Normal file
116
backports/calibre/APKBUILD
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
# Maintainer: Cowington Post <cowingtonpost@gmail.com>
|
||||||
|
pkgname=calibre
|
||||||
|
pkgver=7.21.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Ebook management application"
|
||||||
|
# qt6-webengine
|
||||||
|
arch="x86_64 aarch64"
|
||||||
|
url="https://calibre-ebook.com"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
depends="
|
||||||
|
font-liberation
|
||||||
|
libwmf
|
||||||
|
mtdev
|
||||||
|
optipng
|
||||||
|
poppler
|
||||||
|
py3-apsw
|
||||||
|
py3-beautifulsoup4
|
||||||
|
py3-css-parser
|
||||||
|
py3-cssselect
|
||||||
|
py3-dateutil
|
||||||
|
py3-dnspython
|
||||||
|
py3-feedparser
|
||||||
|
py3-fonttools
|
||||||
|
py3-html2text
|
||||||
|
py3-html5-parser
|
||||||
|
py3-html5lib
|
||||||
|
py3-jeepney
|
||||||
|
py3-lxml
|
||||||
|
py3-markdown
|
||||||
|
py3-mechanize
|
||||||
|
py3-msgpack
|
||||||
|
py3-netifaces
|
||||||
|
py3-pillow
|
||||||
|
py3-psutil
|
||||||
|
py3-pycryptodome
|
||||||
|
py3-pygments
|
||||||
|
py3-pyqt6-webengine
|
||||||
|
py3-regex
|
||||||
|
py3-xxhash
|
||||||
|
py3-zeroconf
|
||||||
|
qt6-qtimageformats
|
||||||
|
qt6-qtsvg
|
||||||
|
qt6-qtwebengine
|
||||||
|
udisks2
|
||||||
|
"
|
||||||
|
makedepends="
|
||||||
|
cmake
|
||||||
|
curl
|
||||||
|
hunspell-dev
|
||||||
|
hyphen-dev
|
||||||
|
libmtp-dev
|
||||||
|
libstemmer-dev
|
||||||
|
libusb-dev
|
||||||
|
podofo-dev
|
||||||
|
py3-pyqt-builder
|
||||||
|
py3-pyqt6-sip
|
||||||
|
py3-sip
|
||||||
|
python3-dev
|
||||||
|
qt6-qtbase-dev
|
||||||
|
uchardet-dev
|
||||||
|
xdg-utils
|
||||||
|
ffmpeg-dev
|
||||||
|
"
|
||||||
|
subpackages="
|
||||||
|
$pkgname-pyc
|
||||||
|
$pkgname-doc
|
||||||
|
$pkgname-bash-completion
|
||||||
|
$pkgname-zsh-completion
|
||||||
|
"
|
||||||
|
source="https://download.calibre-ebook.com/$pkgver/calibre-$pkgver.tar.xz
|
||||||
|
0001-$pkgname-no-update.patch
|
||||||
|
"
|
||||||
|
# net: downloads iso-codes
|
||||||
|
# !check: no tests ran
|
||||||
|
options="net !check"
|
||||||
|
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
rm -f resources/calibre-portable.*
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
python3 setup.py build
|
||||||
|
python3 setup.py iso639
|
||||||
|
python3 setup.py iso3166
|
||||||
|
python3 setup.py liberation_fonts --system-liberation_fonts --path-to-liberation_fonts /usr/share/fonts/liberation
|
||||||
|
python3 setup.py mathjax
|
||||||
|
python3 setup.py gui
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
python3 -m unittest discover
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
# needed for zsh
|
||||||
|
mkdir -p "$pkgdir"/usr/share/zsh/site-functions
|
||||||
|
|
||||||
|
python3 setup.py install \
|
||||||
|
--staging-root="$pkgdir"/usr \
|
||||||
|
--system-plugins-location=/usr/share/calibre/system-plugins
|
||||||
|
|
||||||
|
cp -a man-pages/ "$pkgdir"/usr/share/man
|
||||||
|
|
||||||
|
rm -r "$pkgdir"/usr/share/calibre/rapydscript/
|
||||||
|
|
||||||
|
python3 -m compileall -fq "$pkgdir"/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
0c2ee610833df83219c0c33b09e1374a8262f1630ccd48e3c4725c92922a3ac5d102ad83fc213457fb9de3efa4f5a2c98ff6dff039828e1661085a1054d7f631 calibre-7.21.0.tar.xz
|
||||||
|
eb8e7ce40ff8b8daf6e7e55a5dff8ec4dff06c45744266bb48b3194e92ab1196bc91468203e3c2ca1e5144166a7d6be90e6cf0253513e761b56a4c85be4c2c76 0001-calibre-no-update.patch
|
||||||
|
"
|
|
@ -1,20 +1,19 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
pkgname=caprine
|
pkgname=caprine
|
||||||
pkgver=2.59.1
|
pkgver=2.60.1
|
||||||
pkgrel=0
|
pkgrel=2
|
||||||
pkgdesc="Elegant Facebook Messenger desktop app"
|
pkgdesc="Elegant Facebook Messenger desktop app"
|
||||||
arch="x86_64 aarch64" # bloced by electron
|
arch="x86_64 aarch64" # blocked by electron
|
||||||
url="https://github.com/sindresorhus/caprine"
|
url="https://github.com/sindresorhus/caprine"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="electron"
|
depends="electron"
|
||||||
makedepends="npm findutils coreutils"
|
makedepends="npm findutils coreutils"
|
||||||
options="!check"
|
options="!check" # No test suite
|
||||||
source="
|
source="
|
||||||
$pkgname-$pkgver.tar.gz::https://github.com/sindresorhus/caprine/archive/refs/tags/v$pkgver.tar.gz
|
$pkgname-$pkgver.tar.gz::https://github.com/sindresorhus/caprine/archive/refs/tags/v$pkgver.tar.gz
|
||||||
caprine.desktop
|
caprine.desktop
|
||||||
caprine.js
|
caprine.sh
|
||||||
"
|
"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -27,7 +26,7 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local appdir=/usr/lib/$pkgname
|
local appdir=/usr/lib/caprine
|
||||||
|
|
||||||
install -d "$pkgdir"$appdir
|
install -d "$pkgdir"$appdir
|
||||||
cp -r ./* "$pkgdir"$appdir
|
cp -r ./* "$pkgdir"$appdir
|
||||||
|
@ -35,13 +34,13 @@ package() {
|
||||||
install -dm755 "$pkgdir/usr/share/pixmaps"
|
install -dm755 "$pkgdir/usr/share/pixmaps"
|
||||||
install -m644 build/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
install -m644 build/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||||
|
|
||||||
install -Dm755 "$srcdir"/$pkgname.js "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 "$srcdir"/caprine.sh "$pkgdir"/usr/bin/caprine
|
||||||
install -Dm644 "$srcdir"/$pkgname.desktop \
|
install -Dm644 "$srcdir"/caprine.desktop \
|
||||||
"$pkgdir"/usr/share/applications/$pkgname.desktop
|
"$pkgdir"/usr/share/applications/caprine.desktop
|
||||||
|
|
||||||
install -dm755 "$pkgdir"/usr/share/licenses/$pkgname
|
install -dm755 "$pkgdir"/usr/share/licenses/caprine
|
||||||
ln -s "$(realpath -m --relative-to=/usr/share/licenses/$pkgname $appdir/license)" \
|
ln -s "$(realpath -m --relative-to=/usr/share/licenses/caprine $appdir/license)" \
|
||||||
"$pkgdir"/usr/share/licenses/$pkgname
|
"$pkgdir"/usr/share/licenses/caprine
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -r "$pkgdir"$appdir/build
|
rm -r "$pkgdir"$appdir/build
|
||||||
|
@ -49,7 +48,7 @@ package() {
|
||||||
rm -r "$pkgdir"$appdir/tsconfig.json
|
rm -r "$pkgdir"$appdir/tsconfig.json
|
||||||
find "$pkgdir"$appdir \
|
find "$pkgdir"$appdir \
|
||||||
-name "package.json" \
|
-name "package.json" \
|
||||||
-exec sed -e "s|$srcdir/$pkgname|$appdir|" \
|
-exec sed -e "s|$srcdir/caprine|$appdir|" \
|
||||||
-i {} \; \
|
-i {} \; \
|
||||||
-or -name ".*" -prune -exec rm -r '{}' \; \
|
-or -name ".*" -prune -exec rm -r '{}' \; \
|
||||||
-or -name "bin" -prune -exec rm -r '{}' \; \
|
-or -name "bin" -prune -exec rm -r '{}' \; \
|
||||||
|
@ -60,7 +59,7 @@ package() {
|
||||||
-or -name "test" -prune -exec rm -r '{}' \;
|
-or -name "test" -prune -exec rm -r '{}' \;
|
||||||
}
|
}
|
||||||
sha512sums="
|
sha512sums="
|
||||||
a525bafb6a53dd2dbdfc4b9b3e96d3939d93be950a3287f2a5ef6465d5a6b64ecda79b6d393023d067f939e1a6e85debc35f83bbb1f758011db9d94dd9ff8a72 caprine-2.59.1.tar.gz
|
0df7f233c91f5a044dcffde94b976c6ad71e6d355518615c48cd825a249c01d63f455de31ece69193a66ca0fd8157506f9b88088da1bd47fc75e9d3800784ed0 caprine-2.60.1.tar.gz
|
||||||
a469e3bea24926119e51642b777ef794c5fa65421107903f967c36d81bbb1adb3d52469ce3a3301b2c890f1aa53ab989ded22a7c6e811fb8cf0a582dbd835e19 caprine.desktop
|
a469e3bea24926119e51642b777ef794c5fa65421107903f967c36d81bbb1adb3d52469ce3a3301b2c890f1aa53ab989ded22a7c6e811fb8cf0a582dbd835e19 caprine.desktop
|
||||||
44280c62ce43bdafa8528729371fccb16b8a0e3db7aca28d5c157ae0144dca5fbb023b8883b561955aa28ab62e967f2674d8c6bcaff186e2cdd0e7ba8beab9ac caprine.js
|
3ad8994c1a0417e73d622587769e527b4236a32c1a89442ff76413b75b4392d667c9e2908979b453e5926e54db6d94b31625340c5a94e84e91ea77f56feae778 caprine.sh
|
||||||
"
|
"
|
2
backports/caprine/caprine.sh
Normal file
2
backports/caprine/caprine.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
/usr/bin/electron "/usr/lib/caprine"
|
|
@ -1,8 +1,8 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=coin
|
pkgname=coin
|
||||||
pkgver=4.0.0
|
pkgver=4.0.0
|
||||||
pkgrel=6
|
pkgrel=7
|
||||||
pkgdesc="OpenGL OpenInventor compatible graphics library"
|
pkgdesc="OpenGL OpenInventor compatible graphics library"
|
||||||
url="https://github.com/coin3d/coin"
|
url="https://github.com/coin3d/coin"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
|
|
|
@ -7,12 +7,13 @@ pkgver=5.2.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="3D printer / slicing GUI built on top of the Uranium framework"
|
pkgdesc="3D printer / slicing GUI built on top of the Uranium framework"
|
||||||
url="https://ultimaker.com/software/ultimaker-cura"
|
url="https://ultimaker.com/software/ultimaker-cura"
|
||||||
arch="noarch !ppc64le !x86 !armhf !riscv64 !s390x !armv7" # ppc64le: no py3-keyring
|
# ppc64le: no py3-keyring
|
||||||
# x86: no curaengine
|
# x86: no curaengine
|
||||||
# armhf: no uranium, qt5-qtquickcontrols, qt5-qtquickcontrols2, qt5-qtgraphicaleffects
|
# armhf: no uranium, qt5-qtquickcontrols, qt5-qtquickcontrols2, qt5-qtgraphicaleffects
|
||||||
# riscv64: no uranium
|
# riscv64: no uranium
|
||||||
# s390x: no py3-trimesh, no py3-numpy-stl
|
# s390x: no py3-trimesh, no py3-numpy-stl
|
||||||
# armv7: no py3-trimesh
|
# armv7: no py3-trimesh
|
||||||
|
arch="noarch !ppc64le !x86 !armhf !riscv64 !s390x !armv7"
|
||||||
license="LGPL-3.0-or-later"
|
license="LGPL-3.0-or-later"
|
||||||
# add cura-binary-data to depends when packaged
|
# add cura-binary-data to depends when packaged
|
||||||
depends="
|
depends="
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
pkgname=electron-tasje
|
pkgname=electron-tasje
|
||||||
pkgver=0.7.1
|
pkgver=0.7.3
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Tiny replacement for electron-builder"
|
pkgdesc="Tiny replacement for electron-builder"
|
||||||
url="https://codeberg.org/selfisekai/electron_tasje/"
|
url="https://codeberg.org/selfisekai/electron_tasje/"
|
||||||
|
@ -31,5 +31,5 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
665ccbd6cb357c25d55daed4ad3b3ce008da258054951d9d069a5b12e72dd5812d534f906868e6b18e78949f058069a961c394c6f21ab3b3fab5393c330445e5 electron_tasje-0.7.1.tar.gz
|
251b7eabe74acdb5c7394f9d4d735b736acf555352785a9896ddaeed37632b238e823e1bb639e1f5a44a50455957ec41e1a585a3b2a9919b5818bb40843bd877 electron_tasje-0.7.3.tar.gz
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
pkgname=electron
|
pkgname=electron
|
||||||
pkgver=30.0.9
|
pkgver=33.2.1
|
||||||
_semver="${pkgver/_beta/-beta.}"
|
_gittag=v"${pkgver/_beta/-beta.}"
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
_chromium=124.0.6367.233
|
_chromium=130.0.6723.127
|
||||||
_copium_tag=124.5
|
_copium_tag=129.1
|
||||||
_depot_tools=495b23b39aaba2ca3b55dd27cadc523f1cb17ee6
|
_depot_tools=495b23b39aaba2ca3b55dd27cadc523f1cb17ee6
|
||||||
pkgdesc="Electron cross-platform desktop toolkit"
|
pkgdesc="Electron cross-platform desktop toolkit"
|
||||||
url="https://github.com/electron/electron"
|
url="https://github.com/electron/electron"
|
||||||
arch="aarch64 x86_64" # same as chromium
|
arch="aarch64 x86_64" # same as chromium
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="gtk+3.0 so:libudev.so.1 xdg-utils"
|
depends="gtk+3.0 so:libudev.so.1 xdg-utils"
|
||||||
|
_llvmver=19
|
||||||
makedepends="
|
makedepends="
|
||||||
ada-dev
|
ada-dev
|
||||||
alsa-lib-dev
|
alsa-lib-dev
|
||||||
|
@ -22,7 +24,7 @@ makedepends="
|
||||||
bzip2-dev
|
bzip2-dev
|
||||||
c-ares-dev
|
c-ares-dev
|
||||||
cairo-dev
|
cairo-dev
|
||||||
clang-dev
|
clang$_llvmver-dev
|
||||||
clang-extra-tools
|
clang-extra-tools
|
||||||
compiler-rt
|
compiler-rt
|
||||||
crc32c-dev
|
crc32c-dev
|
||||||
|
@ -44,12 +46,12 @@ makedepends="
|
||||||
gzip
|
gzip
|
||||||
harfbuzz-dev
|
harfbuzz-dev
|
||||||
hdrhistogram-c-dev
|
hdrhistogram-c-dev
|
||||||
highway-dev
|
|
||||||
hunspell-dev
|
hunspell-dev
|
||||||
http-parser-dev
|
http-parser-dev
|
||||||
hwdata-dev
|
hwdata-dev
|
||||||
java-jdk
|
java-jdk
|
||||||
jpeg-dev
|
jpeg-dev
|
||||||
|
jsoncpp-dev
|
||||||
krb5-dev
|
krb5-dev
|
||||||
lcms2-dev
|
lcms2-dev
|
||||||
libarchive-tools
|
libarchive-tools
|
||||||
|
@ -75,7 +77,7 @@ makedepends="
|
||||||
libxslt-dev
|
libxslt-dev
|
||||||
linux-headers
|
linux-headers
|
||||||
lld
|
lld
|
||||||
llvm
|
llvm$_llvmver
|
||||||
mesa-dev
|
mesa-dev
|
||||||
minizip-dev
|
minizip-dev
|
||||||
nghttp2-dev
|
nghttp2-dev
|
||||||
|
@ -95,11 +97,16 @@ makedepends="
|
||||||
py3-six
|
py3-six
|
||||||
python3
|
python3
|
||||||
qt5-qtbase-dev
|
qt5-qtbase-dev
|
||||||
|
re2-dev
|
||||||
rsync
|
rsync
|
||||||
rust
|
rust
|
||||||
|
rust-bindgen
|
||||||
samurai
|
samurai
|
||||||
|
snappy-dev
|
||||||
speex-dev
|
speex-dev
|
||||||
|
spirv-tools-dev
|
||||||
sqlite-dev
|
sqlite-dev
|
||||||
|
woff2-dev
|
||||||
xcb-proto
|
xcb-proto
|
||||||
yarn
|
yarn
|
||||||
zlib-dev
|
zlib-dev
|
||||||
|
@ -107,21 +114,18 @@ makedepends="
|
||||||
"
|
"
|
||||||
subpackages="$pkgname-lang $pkgname-dev"
|
subpackages="$pkgname-lang $pkgname-dev"
|
||||||
# the lower patches are specific to electron, the top ones are from the equivalent chromium version
|
# the lower patches are specific to electron, the top ones are from the equivalent chromium version
|
||||||
source="https://ab-sn.lnl.gay/electron-$_semver-$_chromium.tar.zst
|
source="
|
||||||
|
https://ayakael.net/api/packages/mirrors/generic/electron/$_gittag/electron-$_gittag-$_chromium.tar.zst
|
||||||
copium-$_copium_tag.tar.gz::https://codeberg.org/selfisekai/copium/archive/$_copium_tag.tar.gz
|
copium-$_copium_tag.tar.gz::https://codeberg.org/selfisekai/copium/archive/$_copium_tag.tar.gz
|
||||||
chromium-revert-drop-of-system-java.patch
|
chromium-revert-drop-of-system-java.patch
|
||||||
compiler.patch
|
compiler.patch
|
||||||
disable-dns_config_service.patch
|
disable-dns_config_service.patch
|
||||||
disable-failing-tests.patch
|
disable-failing-tests.patch
|
||||||
fc-cache-version.patch
|
fc-cache-version.patch
|
||||||
fix-missing-cstdint-include-musl.patch
|
|
||||||
fix-opus.patch
|
fix-opus.patch
|
||||||
fstatat-32bit.patch
|
fstatat-32bit.patch
|
||||||
gdbinit.patch
|
gdbinit.patch
|
||||||
generic-sensor-include.patch
|
generic-sensor-include.patch
|
||||||
import-version.patch
|
|
||||||
libstdc++13.patch
|
|
||||||
mman.patch
|
|
||||||
musl-auxv.patch
|
musl-auxv.patch
|
||||||
musl-sandbox.patch
|
musl-sandbox.patch
|
||||||
musl-tid-caching.patch
|
musl-tid-caching.patch
|
||||||
|
@ -131,18 +135,15 @@ source="https://ab-sn.lnl.gay/electron-$_semver-$_chromium.tar.zst
|
||||||
no-res-ninit-nclose.patch
|
no-res-ninit-nclose.patch
|
||||||
no-sandbox-settls.patch
|
no-sandbox-settls.patch
|
||||||
partalloc-no-tagging-arm64.patch
|
partalloc-no-tagging-arm64.patch
|
||||||
perfetto-libstdc++.patch
|
|
||||||
pvalloc.patch
|
pvalloc.patch
|
||||||
random-fixes.patch
|
|
||||||
quiche-array.patch
|
|
||||||
system-zstd.patch
|
|
||||||
temp-failure-retry.patch
|
temp-failure-retry.patch
|
||||||
yes-musl.patch
|
yes-musl.patch
|
||||||
|
|
||||||
icon.patch
|
electron_icon.patch
|
||||||
python-jinja-3.10.patch
|
electron_python-jinja-3.10.patch
|
||||||
webpack-hash.patch
|
electron_webpack-hash.patch
|
||||||
unbundle-node.patch
|
electron_unbundle-node.patch
|
||||||
|
electron_system-zlib-headers.patch
|
||||||
|
|
||||||
default.conf
|
default.conf
|
||||||
electron.desktop
|
electron.desktop
|
||||||
|
@ -150,21 +151,23 @@ source="https://ab-sn.lnl.gay/electron-$_semver-$_chromium.tar.zst
|
||||||
"
|
"
|
||||||
_copium_patches="
|
_copium_patches="
|
||||||
cr124-iwyu-sys-select-dawn-terminal.patch
|
cr124-iwyu-sys-select-dawn-terminal.patch
|
||||||
cr124-libwebp-shim-sharpyuv.patch
|
cr126-aarch64-musl-unsupported-relocation.patch
|
||||||
|
cr129-ffmpeg-no-noh264parse.patch
|
||||||
|
cr129-musl-metricts-imports.patch
|
||||||
"
|
"
|
||||||
# tests are todo for some base checks
|
# tests are todo for some base checks
|
||||||
options="!check net suid"
|
options="!check net suid"
|
||||||
builddir="$srcdir/electron-$_semver-$_chromium"
|
builddir="$srcdir/electron-$_gittag-$_chromium"
|
||||||
|
|
||||||
export PATH="$PATH:/usr/lib/qt5/bin"
|
export PATH="$PATH:/usr/lib/qt5/bin"
|
||||||
|
|
||||||
export CC=clang
|
export CC=clang-$_llvmver
|
||||||
export CXX=clang++
|
export CXX=clang++-$_llvmver
|
||||||
|
|
||||||
# required to find the tools
|
# required to find the tools
|
||||||
export AR=llvm-ar
|
export AR=llvm-ar
|
||||||
export NM=llvm-nm
|
export NM=llvm-nm
|
||||||
export LD=clang++
|
export LD=clang++-$_llvmver
|
||||||
|
|
||||||
# less log spam, reproducible
|
# less log spam, reproducible
|
||||||
export CFLAGS="${CFLAGS/-g/} -O2 -Wno-builtin-macro-redefined -Wno-deprecated-declarations -Wno-shift-count-overflow -Wno-ignored-attributes"
|
export CFLAGS="${CFLAGS/-g/} -O2 -Wno-builtin-macro-redefined -Wno-deprecated-declarations -Wno-shift-count-overflow -Wno-ignored-attributes"
|
||||||
|
@ -188,6 +191,7 @@ snapshot() {
|
||||||
# vpython3 execs system python3 with this set
|
# vpython3 execs system python3 with this set
|
||||||
export VPYTHON_BYPASS="manually managed python not supported by chrome operations"
|
export VPYTHON_BYPASS="manually managed python not supported by chrome operations"
|
||||||
export CHROMIUM_BUILDTOOLS_PATH="$srcdir/src/buildtools"
|
export CHROMIUM_BUILDTOOLS_PATH="$srcdir/src/buildtools"
|
||||||
|
export DEPOT_TOOLS_UPDATE=0
|
||||||
mkdir -p "$srcdir"
|
mkdir -p "$srcdir"
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|
||||||
|
@ -205,7 +209,7 @@ snapshot() {
|
||||||
echo "solutions = [
|
echo "solutions = [
|
||||||
{
|
{
|
||||||
\"name\": \"src/electron\",
|
\"name\": \"src/electron\",
|
||||||
\"url\": \"https://github.com/electron/electron.git@v$_semver\",
|
\"url\": \"https://github.com/electron/electron.git@$_gittag\",
|
||||||
\"deps_file\": \"DEPS\",
|
\"deps_file\": \"DEPS\",
|
||||||
\"managed\": False,
|
\"managed\": False,
|
||||||
\"custom_deps\": {
|
\"custom_deps\": {
|
||||||
|
@ -220,8 +224,7 @@ snapshot() {
|
||||||
--nohooks
|
--nohooks
|
||||||
|
|
||||||
python3 src/build/landmines.py
|
python3 src/build/landmines.py
|
||||||
python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE
|
python3 src/build/util/lastchange.py -o src/build/util/LASTCHANGE \
|
||||||
python3 src/build/util/lastchange.py -s src/third_party/dawn \
|
|
||||||
--revision src/gpu/webgpu/DAWN_VERSION
|
--revision src/gpu/webgpu/DAWN_VERSION
|
||||||
python3 src/build/util/lastchange.py -m GPU_LISTS_VERSION \
|
python3 src/build/util/lastchange.py -m GPU_LISTS_VERSION \
|
||||||
--revision-id-only --header src/gpu/config/gpu_lists_version.h
|
--revision-id-only --header src/gpu/config/gpu_lists_version.h
|
||||||
|
@ -234,26 +237,27 @@ snapshot() {
|
||||||
python3 src/electron/script/apply_all_patches.py \
|
python3 src/electron/script/apply_all_patches.py \
|
||||||
src/electron/patches/config.json
|
src/electron/patches/config.json
|
||||||
|
|
||||||
mv src $pkgname-$_semver-$_chromium
|
mv src $pkgname-$_gittag-$_chromium
|
||||||
|
|
||||||
# extra binaries are most likely things we don't want, so nuke them all
|
# extra binaries are most likely things we don't want, so nuke them all
|
||||||
for elf in $(scanelf -RA -F "%F" $pkgname-$_semver-$_chromium); do
|
for elf in $(scanelf -RA -F "%F" $pkgname-$_gittag-$_chromium); do
|
||||||
rm -f "$elf"
|
rm -f "$elf"
|
||||||
done
|
done
|
||||||
|
|
||||||
msg "generating tarball.. (this takes a while)"
|
msg "generating tarball.. (this takes a while)"
|
||||||
tar -cf $pkgname-$_semver-$_chromium.tar \
|
tar -cf $pkgname-$_gittag-$_chromium.tar \
|
||||||
--exclude="ChangeLog*" \
|
--exclude="ChangeLog*" \
|
||||||
--exclude="testdata/*" \
|
--exclude="testdata/*" \
|
||||||
--exclude="test_data/*" \
|
--exclude="test_data/*" \
|
||||||
--exclude="android_rust_toolchain/*" \
|
--exclude="android_rust_toolchain/*" \
|
||||||
|
--exclude="third_party/instrumented_libs/binaries" \
|
||||||
--exclude-backups \
|
--exclude-backups \
|
||||||
--exclude-caches-all \
|
--exclude-caches-all \
|
||||||
--exclude-vcs \
|
--exclude-vcs \
|
||||||
$pkgname-$_semver-$_chromium
|
$pkgname-$_gittag-$_chromium
|
||||||
|
|
||||||
zstd --auto-threads=logical --ultra --long -22 -T"${ZSTD_LIMIT:-0}" -vv $pkgname-$_semver-$_chromium.tar -o "$SRCDEST"/$pkgname-$_semver-$_chromium.tar.zst
|
zstd --auto-threads=logical --ultra --long -22 -T"${ZSTD_LIMIT:-0}" -vv $pkgname-$_gittag-$_chromium.tar -o "$SRCDEST"/$pkgname-$_gittag-$_chromium.tar.zst
|
||||||
mcli cp "$SRCDEST"/$pkgname-$_semver-$_chromium.tar.zst "$_distbucket"
|
mcli cp "$SRCDEST"/$pkgname-$_gittag-$_chromium.tar.zst "$_distbucket"
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -267,7 +271,7 @@ prepare() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if [ ! -z "$failed" ]; then
|
if [ -n "$failed" ]; then
|
||||||
error "The following patches failed to apply:"
|
error "The following patches failed to apply:"
|
||||||
for i in $failed; do
|
for i in $failed; do
|
||||||
printf " %s\n" "$i" >&2
|
printf " %s\n" "$i" >&2
|
||||||
|
@ -291,9 +295,9 @@ prepare() {
|
||||||
git config commit.gpgsign false
|
git config commit.gpgsign false
|
||||||
git add LICENSE
|
git add LICENSE
|
||||||
git commit -m "init"
|
git commit -m "init"
|
||||||
git tag "v$_semver"
|
git tag "$_gittag"
|
||||||
git pack-refs
|
git pack-refs
|
||||||
yarn install --frozen-lockfile --no-scripts
|
yarn install --frozen-lockfile --ignore-scripts
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
|
@ -303,10 +307,11 @@ prepare() {
|
||||||
|
|
||||||
# reusable system library settings
|
# reusable system library settings
|
||||||
# flatbuffers - tensorflow has a few static_asserts for a specific patch version
|
# flatbuffers - tensorflow has a few static_asserts for a specific patch version
|
||||||
|
# highway - requires highway>=1.1.0 (arm failures)
|
||||||
# libavif - https://github.com/AOMediaCodec/libavif/commit/50a541469c98009016af8dcc9f83a1be79f3a7d9
|
# libavif - https://github.com/AOMediaCodec/libavif/commit/50a541469c98009016af8dcc9f83a1be79f3a7d9
|
||||||
# libaom - https://aomedia.googlesource.com/aom/+/706ee36dcc82%5E%21/
|
# libaom - https://aomedia.googlesource.com/aom/+/706ee36dcc82%5E%21/
|
||||||
# but watch this space: https://aomedia-review.googlesource.com/c/aom/+/188606
|
# but watch this space: https://aomedia-review.googlesource.com/c/aom/+/188606
|
||||||
# jsoncpp, re2, snappy, swiftshader, vulkan, woff2 - needs use_custom_libcxx=false
|
# jsoncpp, re2, snappy, swiftshader-*, woff2 - requires use_custom_libcxx=false
|
||||||
local chromium_use_system="
|
local chromium_use_system="
|
||||||
brotli
|
brotli
|
||||||
crc32c
|
crc32c
|
||||||
|
@ -317,7 +322,6 @@ prepare() {
|
||||||
fontconfig
|
fontconfig
|
||||||
freetype
|
freetype
|
||||||
harfbuzz-ng
|
harfbuzz-ng
|
||||||
highway
|
|
||||||
icu
|
icu
|
||||||
libdrm
|
libdrm
|
||||||
libevent
|
libevent
|
||||||
|
@ -333,8 +337,9 @@ prepare() {
|
||||||
zstd
|
zstd
|
||||||
"
|
"
|
||||||
|
|
||||||
for _lib in $chromium_use_system jinja2 libjpeg_turbo; do
|
for _lib in $chromium_use_system jinja2 libjpeg_turbo unrar; do
|
||||||
msg "Removing buildscripts for system provided $_lib"
|
msg "Removing buildscripts for system provided $_lib"
|
||||||
|
_lib="${_lib/swiftshader-/swiftshader/third_party/}"
|
||||||
find . -type f -path "*third_party/$_lib/*" \
|
find . -type f -path "*third_party/$_lib/*" \
|
||||||
\! -path "*third_party/$_lib/chromium/*" \
|
\! -path "*third_party/$_lib/chromium/*" \
|
||||||
\! -path "*third_party/$_lib/google/*" \
|
\! -path "*third_party/$_lib/google/*" \
|
||||||
|
@ -387,6 +392,12 @@ prepare() {
|
||||||
$chromium_use_system
|
$chromium_use_system
|
||||||
python3 third_party/libaddressinput/chromium/tools/update-strings.py
|
python3 third_party/libaddressinput/chromium/tools/update-strings.py
|
||||||
|
|
||||||
|
# flatc is used in build workflows since https://crrev.com/c/5595037,
|
||||||
|
# but the pre-generated files are still checked-in. remove to make sure
|
||||||
|
# they're not used. (if used, they will break builds on version mismatch.)
|
||||||
|
# https://github.com/tensorflow/tensorflow/issues/62298
|
||||||
|
# find third_party/tflite/ -name '*_generated.h' -delete
|
||||||
|
|
||||||
# prevent annoying errors when regenerating gni
|
# prevent annoying errors when regenerating gni
|
||||||
sed -i 's,^update_readme$,#update_readme,' \
|
sed -i 's,^update_readme$,#update_readme,' \
|
||||||
third_party/libvpx/generate_gni.sh
|
third_party/libvpx/generate_gni.sh
|
||||||
|
@ -399,8 +410,7 @@ prepare() {
|
||||||
sed -i -e 's/\<xmlMalloc\>/malloc/' -e 's/\<xmlFree\>/free/' \
|
sed -i -e 's/\<xmlMalloc\>/malloc/' -e 's/\<xmlFree\>/free/' \
|
||||||
third_party/blink/renderer/core/xml/*.cc \
|
third_party/blink/renderer/core/xml/*.cc \
|
||||||
third_party/blink/renderer/core/xml/parser/xml_document_parser.cc \
|
third_party/blink/renderer/core/xml/parser/xml_document_parser.cc \
|
||||||
third_party/libxml/chromium/*.cc \
|
third_party/libxml/chromium/*.cc
|
||||||
third_party/maldoca/src/maldoca/ole/oss_utils.h
|
|
||||||
|
|
||||||
_configure
|
_configure
|
||||||
}
|
}
|
||||||
|
@ -409,8 +419,6 @@ _configure() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
msg "Configuring build"
|
msg "Configuring build"
|
||||||
|
|
||||||
local clang_ver="$(clang -dumpversion)"
|
|
||||||
|
|
||||||
case "$USE_CCACHE" in
|
case "$USE_CCACHE" in
|
||||||
1)
|
1)
|
||||||
local cc_wrapper="ccache"
|
local cc_wrapper="ccache"
|
||||||
|
@ -433,7 +441,7 @@ _configure() {
|
||||||
chrome_pgo_phase=0
|
chrome_pgo_phase=0
|
||||||
clang_base_path=\"/usr\"
|
clang_base_path=\"/usr\"
|
||||||
clang_use_chrome_plugins=false
|
clang_use_chrome_plugins=false
|
||||||
clang_version=\"${clang_ver%%.*}\"
|
clang_version=\"$_llvmver\"
|
||||||
custom_toolchain=\"//build/toolchain/linux/unbundle:default\"
|
custom_toolchain=\"//build/toolchain/linux/unbundle:default\"
|
||||||
disable_fieldtrial_testing_config=true
|
disable_fieldtrial_testing_config=true
|
||||||
enable_hangout_services_extension=true
|
enable_hangout_services_extension=true
|
||||||
|
@ -453,11 +461,12 @@ _configure() {
|
||||||
is_official_build=true
|
is_official_build=true
|
||||||
link_pulseaudio=true
|
link_pulseaudio=true
|
||||||
proprietary_codecs=true
|
proprietary_codecs=true
|
||||||
regenerate_x11_protos=true
|
|
||||||
rtc_link_pipewire=true
|
rtc_link_pipewire=true
|
||||||
rtc_use_pipewire=true
|
rtc_use_pipewire=true
|
||||||
rustc_version=\"yes\"
|
rustc_version=\"yes\"
|
||||||
|
rust_bindgen_root=\"/usr\"
|
||||||
rust_sysroot_absolute=\"/usr\"
|
rust_sysroot_absolute=\"/usr\"
|
||||||
|
safe_browsing_use_unrar=false
|
||||||
symbol_level=$symbol_level
|
symbol_level=$symbol_level
|
||||||
treat_warnings_as_errors=false
|
treat_warnings_as_errors=false
|
||||||
use_custom_libcxx=true
|
use_custom_libcxx=true
|
||||||
|
@ -490,15 +499,12 @@ _configure() {
|
||||||
build() {
|
build() {
|
||||||
export PATH="$PATH:/usr/lib/qt5/bin"
|
export PATH="$PATH:/usr/lib/qt5/bin"
|
||||||
|
|
||||||
# ~1 GB per concurrent job is not enough with gcc
|
ninja -C out/Release \
|
||||||
_njobs="${NJOBS:-"$(python3 -c 'import os; print(max((os.cpu_count() - (10 if os.uname().machine == "aarch64" else 8), 1)))')"}"
|
copy_node_headers \
|
||||||
|
|
||||||
ninja -C out/Release -j$_njobs \
|
|
||||||
electron_dist_zip \
|
electron_dist_zip \
|
||||||
node_gypi_headers \
|
node_gypi_headers \
|
||||||
node_version_header
|
node_version_header
|
||||||
|
|
||||||
cp -vf out/Release/gen/node_headers/include/node/config.gypi third_party/electron_node/config.gypi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -512,13 +518,7 @@ package() {
|
||||||
install -Dm755 "$srcdir"/default.conf "$pkgdir"/etc/electron/default.conf
|
install -Dm755 "$srcdir"/default.conf "$pkgdir"/etc/electron/default.conf
|
||||||
|
|
||||||
mkdir -p "$pkgdir"/usr/include/electron
|
mkdir -p "$pkgdir"/usr/include/electron
|
||||||
|
cp -rv "$builddir"/out/Release/gen/node_headers "$pkgdir"/usr/include/electron
|
||||||
(
|
|
||||||
cd third_party/electron_node/
|
|
||||||
HEADERS_ONLY=1 python3 ./tools/install.py install "$pkgdir" "/usr/include/electron/node_headers"
|
|
||||||
)
|
|
||||||
# required overrides
|
|
||||||
install -Dm644 out/Release/gen/node_headers/include/node/* -t "$pkgdir"/usr/include/electron/node_headers/include/node
|
|
||||||
ln -sv /usr/include/electron/node_headers/include/node "$pkgdir"/usr/include/electron/node
|
ln -sv /usr/include/electron/node_headers/include/node "$pkgdir"/usr/include/electron/node
|
||||||
|
|
||||||
mkdir -p "$pkgdir"/usr/include/electron/node_headers/include/nan
|
mkdir -p "$pkgdir"/usr/include/electron/node_headers/include/nan
|
||||||
|
@ -544,41 +544,34 @@ lang() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
97024407a16fb41ec56fcc6df5552165ce4eea34fc51b17ecbf30a7e35406baccf8a3001a795a06d1e92d32e134d9d7a18d59fa74eda1b1bc23b59bc4947929b electron-30.0.9-124.0.6367.233.tar.zst
|
e2df4454f4178af859c13aadee4ea04a5b6aa202972cad625e54bc68f5b8c25e098e50d428ec9c1886c37ccf49aaaedb4c5f02fc8bdd498314ba216901932185 electron-v33.2.1-130.0.6723.127.tar.zst
|
||||||
13c647dc2024e27ae8a4d7e8f1202037a342f4a7054477226665c332029e1b6f1d8b99004c2b2809bcf1e6c19b1359ef5e1c971552d7ced59c5b43d5a836af88 copium-124.5.tar.gz
|
6138b3dbf3903c78f4ca1ed5a6c3c3c485471ded31976010484ce8893d03953df2b8f066a4fe84bbde5ae7ef9bbff664ef917e247b2e95dd471de40f2774d7d0 copium-129.1.tar.gz
|
||||||
29bb685e03356a77df5fd347cdf55194cc8b3265c421cc76e54d64edefc329dbcb052deb26b22e8f587ce68456876c071de1b7d258dd0fcc6ee66c875ec4a020 chromium-revert-drop-of-system-java.patch
|
29bb685e03356a77df5fd347cdf55194cc8b3265c421cc76e54d64edefc329dbcb052deb26b22e8f587ce68456876c071de1b7d258dd0fcc6ee66c875ec4a020 chromium-revert-drop-of-system-java.patch
|
||||||
54eb147c0af2ba096d1df375a289b339ee855ab1a9114e7c747753f0274a6bafb7212c1859b7885454c4529d9a5e3bd9559fc14e8e006f23ccd381895fa68d15 compiler.patch
|
53b7cdee8f7bfb4c9371cb385c473e34ed3d8ac7efaa43c0af061107560be30d8747b07fb0b16c01079b8c770f2c721bb5a8081313b7c126856ea4078a74da2a compiler.patch
|
||||||
4057cc78f10bfd64092bc35a373869abb1d68b880cdbca70422f39ffd78a929c19c7728d4d4c40709aaba25581148a93ae5343e724849fd35323062ed68753fa disable-dns_config_service.patch
|
4057cc78f10bfd64092bc35a373869abb1d68b880cdbca70422f39ffd78a929c19c7728d4d4c40709aaba25581148a93ae5343e724849fd35323062ed68753fa disable-dns_config_service.patch
|
||||||
111bc22fb704d97759988268a40d6b356c51b0bd7a8119a694e905ffe21850ff64e91566cd0dd0c9d62fcb46dca8acc821436c34eb0ba78be872ee4f7ec88a7b disable-failing-tests.patch
|
2470904846e3adde2c9506f9e78220daca0932320b628dd3d427bf2b7c17a8f7880cb97e787b046c28de7aca642e1a8d30824d6049905976da77e7473baa64da disable-failing-tests.patch
|
||||||
5fc5c012c1db6cf1ba82f38c6f3f4f5ca3a209e47ac708a74de379b018e0649b7694877c9571ef79002dde875ffc07b458a3355425f1c01867f362c66c2bc1bf fc-cache-version.patch
|
5fc5c012c1db6cf1ba82f38c6f3f4f5ca3a209e47ac708a74de379b018e0649b7694877c9571ef79002dde875ffc07b458a3355425f1c01867f362c66c2bc1bf fc-cache-version.patch
|
||||||
9200f78bad70e95c648a5e8392d50642190600f655c6baa366ff6467ebad52d3b3f305dad58f3610da67136f4b723557653b174ec5c25be8d8737ee04d9ee09f fix-missing-cstdint-include-musl.patch
|
|
||||||
b24563e9a738c00fce7ff2fbdee3d7c024d9125d7c74d9ab90af6bdb16f7ec8419f2c8aa78c0640f6d5d81c17dc2c673a194401d354f466749672729b48ed068 fix-opus.patch
|
b24563e9a738c00fce7ff2fbdee3d7c024d9125d7c74d9ab90af6bdb16f7ec8419f2c8aa78c0640f6d5d81c17dc2c673a194401d354f466749672729b48ed068 fix-opus.patch
|
||||||
c63dee5044353eb306a39ca1526158c0f003ab310ecb03d1c368dc2a979454590c84b8d3c15484517d5e66bb8add9b231da9abbadf2e50850abd72ac1345c4ab fstatat-32bit.patch
|
c63dee5044353eb306a39ca1526158c0f003ab310ecb03d1c368dc2a979454590c84b8d3c15484517d5e66bb8add9b231da9abbadf2e50850abd72ac1345c4ab fstatat-32bit.patch
|
||||||
33ee60863cc438ef57ffef92ba4cf67a856a5ffc16138bce241bcf87e47b15154aa86918e793c26f7ec4dc62a445257ad5673ed7001daf22c4043cf6cc57da7f gdbinit.patch
|
33ee60863cc438ef57ffef92ba4cf67a856a5ffc16138bce241bcf87e47b15154aa86918e793c26f7ec4dc62a445257ad5673ed7001daf22c4043cf6cc57da7f gdbinit.patch
|
||||||
36a764fa73443b47d38050b52dbe6ad2fa8d67201ff4ccdbad13b52308ef165ca046aac6f9609fe35890a6485f0f3e672e78cc41e3e44f3cdc7f145e540524e8 generic-sensor-include.patch
|
36a764fa73443b47d38050b52dbe6ad2fa8d67201ff4ccdbad13b52308ef165ca046aac6f9609fe35890a6485f0f3e672e78cc41e3e44f3cdc7f145e540524e8 generic-sensor-include.patch
|
||||||
8de65109ece27ea63bd469f2220c56b8c752ba0a50fdf390082a2d5ae74b8e010199126175569f6d5084270dd4e0571e68aec32c0bca8211a6699925b3a09124 import-version.patch
|
|
||||||
c49a1b06e061faa430d66dd5b404ef6c843e4d8a6e9012e963009a161b4726f8eb92c4da8fa710f8861f6e4daa8be5f68abee41a7d9fc02f2a0eb61ce53b5fdd libstdc++13.patch
|
|
||||||
e75f57ae34c97ca1caf15fa4b4106c6c1e79c31ed66869cf92ed9ea0c449886c9511e455047c17c1e9ad8b9a46ad4948511a4f2995a4b6030fb4d1c7ae21d038 mman.patch
|
|
||||||
99bcc7dd485b404a90c606a96addab1d900852128d44fb8cea8acc7303189ef87c89a7b0e749fd0e10c5ef5f6bf1fadeb5c16a34503cab6a59938ce2653d887e musl-auxv.patch
|
99bcc7dd485b404a90c606a96addab1d900852128d44fb8cea8acc7303189ef87c89a7b0e749fd0e10c5ef5f6bf1fadeb5c16a34503cab6a59938ce2653d887e musl-auxv.patch
|
||||||
50c274a420bb8a7f14fcb56e40920dac8f708792a4520789b4987facea459bef88113d5a2b60fa8c57bee6e92bff3617d6b73fa305c8c44614c638971cffd440 musl-sandbox.patch
|
51f1959bd622af26a1c3a1f4b0ad9a5bfa461057aa4cf9960c568dddf8ac47d55989c277f5d5ab5db040a04c54925a531af7a1cc767559218b408eaa6bdd7577 musl-sandbox.patch
|
||||||
e7163ac5810ac85366cef2447412287c856e3d67c6b77f219a6e5a418b1965b98e449c409424ad0704a5bded9355dd0aec3dc4585918ce5a2ab36c079707afe2 musl-tid-caching.patch
|
e7163ac5810ac85366cef2447412287c856e3d67c6b77f219a6e5a418b1965b98e449c409424ad0704a5bded9355dd0aec3dc4585918ce5a2ab36c079707afe2 musl-tid-caching.patch
|
||||||
92eb002718026611f5542362ad69b67f0a398ff71b3fca5c05d55cb5c6f9f29334e5e127bb4860cfaa3fba0f0d4c901e2b98808217e7dc02e254a64a5c9521aa musl-v8-monotonic-pthread-cont_timedwait.patch
|
92eb002718026611f5542362ad69b67f0a398ff71b3fca5c05d55cb5c6f9f29334e5e127bb4860cfaa3fba0f0d4c901e2b98808217e7dc02e254a64a5c9521aa musl-v8-monotonic-pthread-cont_timedwait.patch
|
||||||
73bca6c6f9873f2f11cef04f3f41f71e0ae86e7e2d77e14db4298675fec390744c5081f6fdb14052e5ee2b5885be1198c3aa6068eb2b656d1a665c0c3f36e708 no-execinfo.patch
|
a250cff50d282b02ce0f28880d0a2b4fb8e7df51bc072bfeeddc561c29a7c76453dbcbc7b17b82966a7b30a31409d2555720d1dcf963e1b3fb8a2a06a6abcf46 no-execinfo.patch
|
||||||
8e17101d69e23b456a9c03dc2fe95bcd56846389707ba6f4720192a9e9168406d20d9168dbebbb3a47d921ec92e478f0e390f46e6b9bb43a34dda217c6e6448b no-mallinfo.patch
|
0b41aeb6b212f9c3f61aa0a8d3085c9e865a2e68f3270ceec2376aab67f337ac46eaea7da36d3fd7219e2a1cb731b7aa2d3fb619a374d2b7653976b9f4f384bb no-mallinfo.patch
|
||||||
e4c4e5bc6f828f9c883dd418c0ba01887949c29c311f76206a1ec29f620b0c0ba0452949dc2778a9c46ea066405857536964a36436a68eecf7da7952736333cf no-res-ninit-nclose.patch
|
e4c4e5bc6f828f9c883dd418c0ba01887949c29c311f76206a1ec29f620b0c0ba0452949dc2778a9c46ea066405857536964a36436a68eecf7da7952736333cf no-res-ninit-nclose.patch
|
||||||
6dc4d8dc92e685dace62265a1ddb3aebc558aed54d20ff6d36b030be0c48d7e84662326c31363612492574d9a03c62653cdc21a60995b97dee1d75cae86a9f9b no-sandbox-settls.patch
|
6dc4d8dc92e685dace62265a1ddb3aebc558aed54d20ff6d36b030be0c48d7e84662326c31363612492574d9a03c62653cdc21a60995b97dee1d75cae86a9f9b no-sandbox-settls.patch
|
||||||
d4ac7f350806b4410ccb1df3b0ad7e90a7b6d724a16919761aa2d47a6f21008c7374da528b05b754ee712b85d23adfb113c7f7b9ca2ed5b47644fe3ea0cb9119 partalloc-no-tagging-arm64.patch
|
f2b08538ff57c50b3772a07ca91845f9d45f4a5112f608b6192d4fb5d7be48f478c0c36194d95ab7bbf933e0278e5c6d578619d8643895cdc40386eebc5b975f partalloc-no-tagging-arm64.patch
|
||||||
8e1aca983890c78d81a6f888b2cf1aa42878d1f8523e87d63b800e1e468cbfd33e5ff6a0975775ca222fe82f30c6497da95505da01b091c8776a44c98ac86f0f perfetto-libstdc++.patch
|
03f829a2da633533ef3fd0f287f5ec602d936a97a98b53cd2415553c2537ae9d571f35397ca7c9fb3f4b0806c300e3b189569f8d979ca132e1a2a4dae7206396 pvalloc.patch
|
||||||
2eb434b4fc6aee77026492644cd86772a543d9845f112a75cd4c3e1f25c9435cc31f8454c1c73223451fc9be69b86e822ff68821978f67f2fc8bcba50296d8e0 pvalloc.patch
|
|
||||||
803b8117c65132f76bec42054a4b2257a078b15b07fd08645fec2dfd51aa4e0075a9015300cd579d4ae0d757d9850b9988e080cfc2eea093f6684fdf82c4722c random-fixes.patch
|
|
||||||
86f612dd2b39602984a75b1b11c2ab8bc8cc6b4e78fae998570a777a6901ae45fdcdb22e46dd006dab703a0674e64c72cf8120af2dc5b9e78004f402c7e65358 quiche-array.patch
|
|
||||||
b3beb98b539fe160fbc493ba410ae0f68540cc4b6834f1f8ce9a22c3f4f59ef5d583ad48793e10549fd02a701f833a3969791ef4524322cd1e715ca5bf226bc8 system-zstd.patch
|
|
||||||
e48693e6b7aeebf69a5acbf80d9a35defe4c23835121dfeb58b051ac7c527e758a41004f4d193274fe1b01c0bfb1dbc77b09cb6a404a3fdee507a2918afb0edb temp-failure-retry.patch
|
e48693e6b7aeebf69a5acbf80d9a35defe4c23835121dfeb58b051ac7c527e758a41004f4d193274fe1b01c0bfb1dbc77b09cb6a404a3fdee507a2918afb0edb temp-failure-retry.patch
|
||||||
914ccf649d7771f19f209ab97f99c481aebc6f66174d68e8b539f6ad4a70bc8cb0fae2df6dadbf0415958ffb3574c420fe029079dcce45f5e5add4db2e903566 yes-musl.patch
|
914ccf649d7771f19f209ab97f99c481aebc6f66174d68e8b539f6ad4a70bc8cb0fae2df6dadbf0415958ffb3574c420fe029079dcce45f5e5add4db2e903566 yes-musl.patch
|
||||||
465107da7818b237e3c144a318ab80c3c9343b51ed38b8971ef204692d13346929becbe94cefad4c153788d3a200642143584d5ca070f6304e768ba2139c19ec icon.patch
|
465107da7818b237e3c144a318ab80c3c9343b51ed38b8971ef204692d13346929becbe94cefad4c153788d3a200642143584d5ca070f6304e768ba2139c19ec electron_icon.patch
|
||||||
e05180199ee1d559e4e577cedd3e589844ecf40d98a86321bf1bea5607b02eeb5feb486deddae40e1005b644550331f6b8500177aa7e79bcb3750d3c1ceb76c3 python-jinja-3.10.patch
|
e05180199ee1d559e4e577cedd3e589844ecf40d98a86321bf1bea5607b02eeb5feb486deddae40e1005b644550331f6b8500177aa7e79bcb3750d3c1ceb76c3 electron_python-jinja-3.10.patch
|
||||||
2aa340854316f1284217c0ca17cbf44953684ad6c7da90815117df30928612eb9fb9ffb734b948dfc309cd25d1a67cd57f77aac2d052a3dd9aca07a3a58cbb30 webpack-hash.patch
|
2aa340854316f1284217c0ca17cbf44953684ad6c7da90815117df30928612eb9fb9ffb734b948dfc309cd25d1a67cd57f77aac2d052a3dd9aca07a3a58cbb30 electron_webpack-hash.patch
|
||||||
ebb18a0e2eba4b4606e900fa82f4b57fe91dcbdc943e17544bccb3c9a011a49b4331cdbee59629e44b80184bad4ea54ec887c0bfcd00cda8d5686060dbf365e3 unbundle-node.patch
|
57aa81d46b9cc931092d9d9b3cb4a9859f86c183a236bc5cca6abbaeca86b82bf1b537dd9cb3412114fa4e86087c0022ee3f7e88de974d29b309e9d1714df7a5 electron_unbundle-node.patch
|
||||||
|
1b35edcf0b41e39e20c4d64dbb978bcaab8036f2fe839930709b269c50cb1321458a15b4d0013246f9e03f58f250a1e3a57ea910db1aa0adbd602a6a11ad33b9 electron_system-zlib-headers.patch
|
||||||
e8ea87c547546011c4c8fc2de30e4f443b85cd4cfcff92808e2521d2f9ada03feefb8e1b0cf0f6b460919c146e56ef8d5ad4bb5e2461cc5247c30d92eb4d068e default.conf
|
e8ea87c547546011c4c8fc2de30e4f443b85cd4cfcff92808e2521d2f9ada03feefb8e1b0cf0f6b460919c146e56ef8d5ad4bb5e2461cc5247c30d92eb4d068e default.conf
|
||||||
191559fc7aa1ea0353c6fb0cc321ee1d5803a0e44848c8be941cfab96277b0de6a59962d373e2a2a1686c8f9be2bcf2d2f33706759a339a959e297d3f7fda463 electron.desktop
|
191559fc7aa1ea0353c6fb0cc321ee1d5803a0e44848c8be941cfab96277b0de6a59962d373e2a2a1686c8f9be2bcf2d2f33706759a339a959e297d3f7fda463 electron.desktop
|
||||||
5f7ba5ad005f196facec1c0f26108356b64cafb1e5cfa462ff714a33b8a4c757ac00bfcb080da09eb5b65032f8eb245d9676a61ec554515d125ed63912708648 electron-launcher.sh
|
5f7ba5ad005f196facec1c0f26108356b64cafb1e5cfa462ff714a33b8a4c757ac00bfcb080da09eb5b65032f8eb245d9676a61ec554515d125ed63912708648 electron-launcher.sh
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
--- ./build/config/compiler/BUILD.gn.orig
|
--- ./build/config/compiler/BUILD.gn.orig
|
||||||
+++ ./build/config/compiler/BUILD.gn
|
+++ ./build/config/compiler/BUILD.gn
|
||||||
@@ -613,24 +613,6 @@
|
@@ -568,24 +568,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- # TODO(crbug.com/1488374): This causes binary size growth and potentially
|
- # TODO(crbug.com/40283598): This causes binary size growth and potentially
|
||||||
- # other problems.
|
- # other problems.
|
||||||
- # TODO(crbug.com/1491036): This isn't supported by Cronet's mainline llvm version.
|
- # TODO(crbug.com/40284925): This isn't supported by Cronet's mainline llvm version.
|
||||||
- if (default_toolchain != "//build/toolchain/cros:target" &&
|
- if (default_toolchain != "//build/toolchain/cros:target" &&
|
||||||
- !llvm_android_mainline) {
|
- !llvm_android_mainline) {
|
||||||
- cflags += [
|
- cflags += [
|
||||||
|
@ -22,10 +22,10 @@
|
||||||
- }
|
- }
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
# TODO(crbug.com/1235145): Investigate why/if this should be needed.
|
# TODO(crbug.com/40192287): Investigate why/if this should be needed.
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
cflags += [ "/clang:-ffp-contract=off" ]
|
cflags += [ "/clang:-ffp-contract=off" ]
|
||||||
@@ -1005,17 +987,6 @@
|
@@ -998,17 +980,6 @@
|
||||||
# `-nodefaultlibs` from the linker invocation from Rust, which would be used
|
# `-nodefaultlibs` from the linker invocation from Rust, which would be used
|
||||||
# to compile dylibs on Android, such as for constructing unit test APKs.
|
# to compile dylibs on Android, such as for constructing unit test APKs.
|
||||||
"-Cdefault-linker-libraries",
|
"-Cdefault-linker-libraries",
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
]
|
]
|
||||||
|
|
||||||
if (!is_win || force_rustc_color_output) {
|
if (!is_win || force_rustc_color_output) {
|
||||||
@@ -1182,8 +1153,8 @@
|
@@ -1175,8 +1146,8 @@
|
||||||
} else if (current_cpu == "arm") {
|
} else if (current_cpu == "arm") {
|
||||||
if (is_clang && !is_android && !is_nacl &&
|
if (is_clang && !is_android && !is_nacl &&
|
||||||
!(is_chromeos_lacros && is_chromeos_device)) {
|
!(is_chromeos_lacros && is_chromeos_device)) {
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
}
|
}
|
||||||
if (!is_nacl) {
|
if (!is_nacl) {
|
||||||
cflags += [
|
cflags += [
|
||||||
@@ -1197,8 +1168,8 @@
|
@@ -1190,8 +1161,8 @@
|
||||||
} else if (current_cpu == "arm64") {
|
} else if (current_cpu == "arm64") {
|
||||||
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
|
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
|
||||||
!(is_chromeos_lacros && is_chromeos_device)) {
|
!(is_chromeos_lacros && is_chromeos_device)) {
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
}
|
}
|
||||||
} else if (current_cpu == "mipsel" && !is_nacl) {
|
} else if (current_cpu == "mipsel" && !is_nacl) {
|
||||||
ldflags += [ "-Wl,--hash-style=sysv" ]
|
ldflags += [ "-Wl,--hash-style=sysv" ]
|
||||||
@@ -1983,7 +1954,7 @@
|
@@ -1982,7 +1953,7 @@
|
||||||
defines = [ "_HAS_NODISCARD" ]
|
defines = [ "_HAS_NODISCARD" ]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
cflags += [ "-Wextra" ]
|
cflags += [ "-Wextra" ]
|
||||||
--- ./build/config/rust.gni.orig
|
--- ./build/config/rust.gni.orig
|
||||||
+++ ./build/config/rust.gni
|
+++ ./build/config/rust.gni
|
||||||
@@ -186,11 +186,11 @@
|
@@ -185,11 +185,11 @@
|
||||||
rust_abi_target = ""
|
rust_abi_target = ""
|
||||||
if (is_linux || is_chromeos) {
|
if (is_linux || is_chromeos) {
|
||||||
if (current_cpu == "arm64") {
|
if (current_cpu == "arm64") {
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
} else if (current_cpu == "arm") {
|
} else if (current_cpu == "arm") {
|
||||||
if (arm_float_abi == "hard") {
|
if (arm_float_abi == "hard") {
|
||||||
float_suffix = "hf"
|
float_suffix = "hf"
|
||||||
@@ -199,13 +199,13 @@
|
@@ -198,15 +198,15 @@
|
||||||
}
|
}
|
||||||
if (arm_arch == "armv7-a" || arm_arch == "armv7") {
|
if (arm_arch == "armv7-a" || arm_arch == "armv7") {
|
||||||
# No way to inform Rust about the -a suffix.
|
# No way to inform Rust about the -a suffix.
|
||||||
|
@ -101,6 +101,9 @@
|
||||||
- rust_abi_target = "arm-unknown-linux-gnueabi" + float_suffix
|
- rust_abi_target = "arm-unknown-linux-gnueabi" + float_suffix
|
||||||
+ rust_abi_target = "armv6-alpine-linux-musleabi" + float_suffix
|
+ rust_abi_target = "armv6-alpine-linux-musleabi" + float_suffix
|
||||||
}
|
}
|
||||||
|
} else if (current_cpu == "riscv64") {
|
||||||
|
- rust_abi_target = "riscv64gc-unknown-linux-gnu"
|
||||||
|
+ rust_abi_target = "riscv64-alpine-linux-musl"
|
||||||
} else {
|
} else {
|
||||||
# Best guess for other future platforms.
|
# Best guess for other future platforms.
|
||||||
- rust_abi_target = current_cpu + "-unknown-linux-gnu"
|
- rust_abi_target = current_cpu + "-unknown-linux-gnu"
|
||||||
|
|
|
@ -160,24 +160,6 @@ ProcessAlternativeServicesTest.Process*: crashed ?
|
||||||
|
|
||||||
TEST_F(FileUtilTest, FILEToFile) {
|
TEST_F(FileUtilTest, FILEToFile) {
|
||||||
ScopedFILE stream;
|
ScopedFILE stream;
|
||||||
--- a/base/debug/stack_trace_unittest.cc
|
|
||||||
+++ b/base/debug/stack_trace_unittest.cc
|
|
||||||
@@ -345,6 +345,7 @@
|
|
||||||
// sometimes we read fp / pc from the place that previously held
|
|
||||||
// uninitialized value.
|
|
||||||
// TODO(crbug.com/1132511): Enable this test on Fuchsia.
|
|
||||||
+#if 0
|
|
||||||
#if defined(MEMORY_SANITIZER) || BUILDFLAG(IS_FUCHSIA)
|
|
||||||
#define MAYBE_TraceStackFramePointersFromBuffer \
|
|
||||||
DISABLED_TraceStackFramePointersFromBuffer
|
|
||||||
@@ -357,6 +358,7 @@
|
|
||||||
const void* frames[kDepth];
|
|
||||||
ExpectStackFramePointers<kDepth>(frames, kDepth, /*copy_stack=*/true);
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE)
|
|
||||||
#define MAYBE_StackEnd StackEnd
|
|
||||||
--- a/base/threading/platform_thread_unittest.cc
|
--- a/base/threading/platform_thread_unittest.cc
|
||||||
+++ b/base/threading/platform_thread_unittest.cc
|
+++ b/base/threading/platform_thread_unittest.cc
|
||||||
@@ -416,6 +416,7 @@
|
@@ -416,6 +416,7 @@
|
||||||
|
|
10
backports/electron/electron_system-zlib-headers.patch
Normal file
10
backports/electron/electron_system-zlib-headers.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- ./electron/BUILD.gn.orig
|
||||||
|
+++ ./electron/BUILD.gn
|
||||||
|
@@ -1565,7 +1565,6 @@
|
||||||
|
public_deps = header_groups + [
|
||||||
|
":node_gypi_headers",
|
||||||
|
":node_version_header",
|
||||||
|
- ":zlib_headers",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
@ -52,9 +52,11 @@
|
||||||
if (use_system_cares) {
|
if (use_system_cares) {
|
||||||
configs += [ ":cares" ]
|
configs += [ ":cares" ]
|
||||||
} else {
|
} else {
|
||||||
--- ./electron/script/generate-config-gypi.py.orig
|
diff --git a/./electron/script/generate-config-gypi.py.orig b/./electron/script/generate-config-gypi.py
|
||||||
+++ ./electron/script/generate-config-gypi.py
|
index b41cd7eb450..bc4098debb5 100755
|
||||||
@@ -62,6 +62,11 @@
|
--- a/./electron/script/generate-config-gypi.py.orig
|
||||||
|
+++ b/./electron/script/generate-config-gypi.py
|
||||||
|
@@ -62,6 +62,11 @@ def main(target_file, target_cpu):
|
||||||
# Used by certain versions of node-gyp.
|
# Used by certain versions of node-gyp.
|
||||||
v['build_v8_with_gn'] = 'false'
|
v['build_v8_with_gn'] = 'false'
|
||||||
|
|
||||||
|
@ -63,6 +65,5 @@
|
||||||
+ if v.get(f'node_shared_{dep}') is not None:
|
+ if v.get(f'node_shared_{dep}') is not None:
|
||||||
+ v[f'node_shared_{dep}'] = 'true'
|
+ v[f'node_shared_{dep}'] = 'true'
|
||||||
+
|
+
|
||||||
with open(target_file, 'w+') as f:
|
with open(target_file, 'w+', encoding='utf-8') as file_out:
|
||||||
f.write(pprint.pformat(config, indent=2))
|
file_out.write(pprint.pformat(config, indent=2))
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
Patch-Source: https://github.com/void-linux/void-packages/blob/378db3cf5087877588aebaaa8ca3c9d94dfb54e0/srcpkgs/chromium/patches/fix-missing-cstdint-include-musl.patch
|
|
||||||
fixed in https://github.com/google/quiche/commit/4d4820f0a959be7fa22285d114a5b5b8676f10fe
|
|
||||||
--
|
|
||||||
--- a/net/third_party/quiche/src/quiche/http2/adapter/window_manager.h
|
|
||||||
+++ b/net/third_party/quiche/src/quiche/http2/adapter/window_manager.h
|
|
||||||
@@ -3,6 +3,7 @@
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
#include "common/platform/api/quiche_export.h"
|
|
|
@ -1,15 +0,0 @@
|
||||||
they fixed the import to be glibc conditional, but now nothing is imported so
|
|
||||||
all the string functions are missing.
|
|
||||||
--
|
|
||||||
--- a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
|
|
||||||
+++ b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
|
|
||||||
@@ -61,8 +61,7 @@
|
|
||||||
|
|
||||||
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
|
|
||||||
// of lacros-chrome is complete.
|
|
||||||
-#if defined(__GLIBC__) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
|
|
||||||
-#include <gnu/libc-version.h>
|
|
||||||
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
|
|
||||||
|
|
||||||
#include "base/linux_util.h"
|
|
||||||
#include "base/strings/string_split.h"
|
|
|
@ -1,269 +0,0 @@
|
||||||
missing libstdc++13 includes
|
|
||||||
--
|
|
||||||
--- a/third_party/openscreen/src/platform/base/error.h
|
|
||||||
+++ b/third_party/openscreen/src/platform/base/error.h
|
|
||||||
@@ -6,6 +6,7 @@
|
|
||||||
#define PLATFORM_BASE_ERROR_H_
|
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <ostream>
|
|
||||||
#include <string>
|
|
||||||
#include <utility>
|
|
||||||
--- a/ui/base/prediction/kalman_filter.h
|
|
||||||
+++ b/ui/base/prediction/kalman_filter.h
|
|
||||||
@@ -8,6 +8,8 @@
|
|
||||||
#include "base/component_export.h"
|
|
||||||
#include "ui/gfx/geometry/matrix3_f.h"
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
namespace ui {
|
|
||||||
|
|
||||||
// This Kalman filter is used to predict state in one axles.
|
|
||||||
--- a/ui/events/types/scroll_types.h
|
|
||||||
+++ b/ui/events/types/scroll_types.h
|
|
||||||
@@ -5,6 +5,8 @@
|
|
||||||
#ifndef UI_EVENTS_TYPES_SCROLL_TYPES_H_
|
|
||||||
#define UI_EVENTS_TYPES_SCROLL_TYPES_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
namespace ui {
|
|
||||||
|
|
||||||
enum class ScrollGranularity : uint8_t {
|
|
||||||
--- a/third_party/webrtc/rtc_base/system/file_wrapper.h
|
|
||||||
+++ b/third_party/webrtc/rtc_base/system/file_wrapper.h
|
|
||||||
@@ -14,6 +14,7 @@
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "absl/strings/string_view.h"
|
|
||||||
--- a/third_party/pdfium/constants/annotation_flags.h
|
|
||||||
+++ b/third_party/pdfium/constants/annotation_flags.h
|
|
||||||
@@ -5,6 +5,8 @@
|
|
||||||
#ifndef CONSTANTS_ANNOTATION_FLAGS_H_
|
|
||||||
#define CONSTANTS_ANNOTATION_FLAGS_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
namespace pdfium {
|
|
||||||
namespace annotation_flags {
|
|
||||||
|
|
||||||
--- a/third_party/s2cellid/src/s2/util/math/mathutil.h
|
|
||||||
+++ b/third_party/s2cellid/src/s2/util/math/mathutil.h
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
#ifndef S2_UTIL_MATH_MATHUTIL_H_
|
|
||||||
#define S2_UTIL_MATH_MATHUTIL_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <type_traits>
|
|
||||||
|
|
||||||
class MathUtil {
|
|
||||||
--- a/third_party/s2cellid/src/s2/s1angle.h
|
|
||||||
+++ b/third_party/s2cellid/src/s2/s1angle.h
|
|
||||||
@@ -24,6 +24,7 @@
|
|
||||||
#define S2_S1ANGLE_H_
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <limits>
|
|
||||||
#include <ostream>
|
|
||||||
#include <type_traits>
|
|
||||||
--- a/third_party/maldoca/src/maldoca/ole/header.h
|
|
||||||
+++ b/third_party/maldoca/src/maldoca/ole/header.h
|
|
||||||
@@ -45,6 +45,8 @@
|
|
||||||
|
|
||||||
#include "absl/strings/string_view.h"
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
namespace maldoca {
|
|
||||||
|
|
||||||
class OLEHeader {
|
|
||||||
--- a/components/password_manager/core/browser/generation/password_generator.h
|
|
||||||
+++ b/components/password_manager/core/browser/generation/password_generator.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_GENERATION_PASSWORD_GENERATOR_H_
|
|
||||||
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_GENERATION_PASSWORD_GENERATOR_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
|
|
||||||
--- a/base/debug/profiler.h
|
|
||||||
+++ b/base/debug/profiler.h
|
|
||||||
@@ -7,6 +7,7 @@
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "base/base_export.h"
|
|
||||||
--- a/components/dom_distiller/core/url_utils.h
|
|
||||||
+++ b/components/dom_distiller/core/url_utils.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
|
|
||||||
#define COMPONENTS_DOM_DISTILLER_CORE_URL_UTILS_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "base/strings/string_piece_forward.h"
|
|
||||||
--- a/components/feature_engagement/internal/event_storage_validator.h
|
|
||||||
+++ b/components/feature_engagement/internal/event_storage_validator.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_EVENT_STORAGE_VALIDATOR_H_
|
|
||||||
#define COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_EVENT_STORAGE_VALIDATOR_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
namespace feature_engagement {
|
|
||||||
--- a/chrome/test/chromedriver/chrome/web_view_impl.cc
|
|
||||||
+++ b/chrome/test/chromedriver/chrome/web_view_impl.cc
|
|
||||||
@@ -8,6 +8,7 @@
|
|
||||||
#include <algorithm>
|
|
||||||
#include <memory>
|
|
||||||
#include <queue>
|
|
||||||
+#include <string>
|
|
||||||
#include <utility>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--- a/cc/trees/target_property.cc
|
|
||||||
+++ b/cc/trees/target_property.cc
|
|
||||||
@@ -2,6 +2,8 @@
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
#include "cc/trees/target_property.h"
|
|
||||||
|
|
||||||
#include "ui/gfx/animation/keyframe/target_property.h"
|
|
||||||
--- a/gpu/config/gpu_feature_info.h
|
|
||||||
+++ b/gpu/config/gpu_feature_info.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef GPU_CONFIG_GPU_FEATURE_INFO_H_
|
|
||||||
#define GPU_CONFIG_GPU_FEATURE_INFO_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--- a/gpu/config/gpu_driver_bug_workarounds.h
|
|
||||||
+++ b/gpu/config/gpu_driver_bug_workarounds.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
|
|
||||||
#define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "build/build_config.h"
|
|
||||||
--- a/third_party/blink/public/common/page_state/page_state.h
|
|
||||||
+++ b/third_party/blink/public/common/page_state/page_state.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_PAGE_STATE_PAGE_STATE_H_
|
|
||||||
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_PAGE_STATE_PAGE_STATE_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--- a/pdf/document_attachment_info.h
|
|
||||||
+++ b/pdf/document_attachment_info.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef PDF_DOCUMENT_ATTACHMENT_INFO_H_
|
|
||||||
#define PDF_DOCUMENT_ATTACHMENT_INFO_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
|
|
||||||
--- a/components/payments/content/utility/fingerprint_parser.h
|
|
||||||
+++ b/components/payments/content/utility/fingerprint_parser.h
|
|
||||||
@@ -7,6 +7,7 @@
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--- a/media/base/video_transformation.h
|
|
||||||
+++ b/media/base/video_transformation.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef MEDIA_BASE_VIDEO_TRANSFORMATION_H_
|
|
||||||
#define MEDIA_BASE_VIDEO_TRANSFORMATION_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "base/numerics/math_constants.h"
|
|
||||||
--- a/components/omnibox/browser/on_device_head_model.h
|
|
||||||
+++ b/components/omnibox/browser/on_device_head_model.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef COMPONENTS_OMNIBOX_BROWSER_ON_DEVICE_HEAD_MODEL_H_
|
|
||||||
#define COMPONENTS_OMNIBOX_BROWSER_ON_DEVICE_HEAD_MODEL_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
#include <utility>
|
|
||||||
#include <vector>
|
|
||||||
--- a/components/autofill/core/browser/autofill_ablation_study.h
|
|
||||||
+++ b/components/autofill/core/browser/autofill_ablation_study.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_ABLATION_STUDY_H_
|
|
||||||
#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_ABLATION_STUDY_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class GURL;
|
|
||||||
--- a/components/autofill/core/browser/strike_databases/strike_database_base.h
|
|
||||||
+++ b/components/autofill/core/browser/strike_databases/strike_database_base.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_STRIKE_DATABASES_STRIKE_DATABASE_BASE_H_
|
|
||||||
#define COMPONENTS_AUTOFILL_CORE_BROWSER_STRIKE_DATABASES_STRIKE_DATABASE_BASE_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <map>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
--- a/chrome/browser/resource_coordinator/decision_details.h
|
|
||||||
+++ b/chrome/browser/resource_coordinator/decision_details.h
|
|
||||||
@@ -5,6 +5,7 @@
|
|
||||||
#ifndef CHROME_BROWSER_RESOURCE_COORDINATOR_DECISION_DETAILS_H_
|
|
||||||
#define CHROME_BROWSER_RESOURCE_COORDINATOR_DECISION_DETAILS_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--- a/net/third_party/quiche/src/quiche/quic/core/qpack/qpack_stream_sender_delegate.h
|
|
||||||
+++ b/net/third_party/quiche/src/quiche/quic/core/qpack/qpack_stream_sender_delegate.h
|
|
||||||
@@ -8,6 +8,8 @@
|
|
||||||
#include "absl/strings/string_view.h"
|
|
||||||
#include "quiche/quic/platform/api/quic_export.h"
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
namespace quic {
|
|
||||||
|
|
||||||
// This interface writes encoder/decoder data to peer.
|
|
||||||
--- a/third_party/perfetto/include/perfetto/base/export.h
|
|
||||||
+++ b/third_party/perfetto/include/perfetto/base/export.h
|
|
||||||
@@ -17,6 +17,8 @@
|
|
||||||
#ifndef INCLUDE_PERFETTO_BASE_EXPORT_H_
|
|
||||||
#define INCLUDE_PERFETTO_BASE_EXPORT_H_
|
|
||||||
|
|
||||||
+#include <cstdint>
|
|
||||||
+
|
|
||||||
#include "perfetto/base/build_config.h"
|
|
||||||
#include "perfetto/public/abi/export.h"
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
needed for PKEY_DISABLE_WRITE. these are documented as also being from sys/
|
|
||||||
mman.h with GNU_SOURCE, but musl doesn't do that, so these are strictly from
|
|
||||||
kernel headers
|
|
||||||
--- a/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_unittest.cc
|
|
||||||
+++ b/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_unittest.cc
|
|
||||||
@@ -60,6 +60,7 @@
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/resource.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
+#include <linux/mman.h>
|
|
||||||
#endif // BUILDFLAG(IS_POSIX)
|
|
||||||
|
|
||||||
#if BUILDFLAG(ENABLE_PARTITION_ALLOC_AS_MALLOC_SUPPORT) && BUILDFLAG(IS_MAC)
|
|
|
@ -45,7 +45,7 @@ diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ./sandbox/linux/s
|
||||||
index d9d1882..0567557 100644
|
index d9d1882..0567557 100644
|
||||||
--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
||||||
+++ ./sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
+++ ./sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
|
||||||
@@ -392,6 +392,7 @@ bool SyscallSets::IsAllowedProcessStartOrDeath(int sysno) {
|
@@ -438,6 +438,7 @@
|
||||||
#if defined(__i386__)
|
#if defined(__i386__)
|
||||||
case __NR_waitpid:
|
case __NR_waitpid:
|
||||||
#endif
|
#endif
|
||||||
|
@ -53,7 +53,7 @@ index d9d1882..0567557 100644
|
||||||
return true;
|
return true;
|
||||||
case __NR_clone: // Should be parameter-restricted.
|
case __NR_clone: // Should be parameter-restricted.
|
||||||
case __NR_setns: // Privileged.
|
case __NR_setns: // Privileged.
|
||||||
@@ -404,7 +405,6 @@ bool SyscallSets::IsAllowedProcessStartOrDeath(int sysno) {
|
@@ -450,7 +451,6 @@
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
#if defined(__i386__) || defined(__x86_64__) || defined(__mips__)
|
||||||
case __NR_set_thread_area:
|
case __NR_set_thread_area:
|
||||||
#endif
|
#endif
|
||||||
|
@ -61,16 +61,16 @@ index d9d1882..0567557 100644
|
||||||
case __NR_unshare:
|
case __NR_unshare:
|
||||||
#if !defined(__mips__) && !defined(__aarch64__)
|
#if !defined(__mips__) && !defined(__aarch64__)
|
||||||
case __NR_vfork:
|
case __NR_vfork:
|
||||||
@@ -514,6 +514,8 @@ bool SyscallSets::IsAllowedAddressSpaceAccess(int sysno) {
|
@@ -549,6 +549,8 @@
|
||||||
case __NR_mlock:
|
|
||||||
case __NR_munlock:
|
case __NR_munlock:
|
||||||
case __NR_munmap:
|
case __NR_munmap:
|
||||||
|
case __NR_mseal:
|
||||||
+ case __NR_mremap:
|
+ case __NR_mremap:
|
||||||
+ case __NR_membarrier:
|
+ case __NR_membarrier:
|
||||||
return true;
|
return true;
|
||||||
case __NR_madvise:
|
case __NR_madvise:
|
||||||
case __NR_mincore:
|
case __NR_mincore:
|
||||||
@@ -531,7 +533,6 @@ bool SyscallSets::IsAllowedAddressSpaceAccess(int sysno) {
|
@@ -566,7 +568,6 @@
|
||||||
case __NR_modify_ldt:
|
case __NR_modify_ldt:
|
||||||
#endif
|
#endif
|
||||||
case __NR_mprotect:
|
case __NR_mprotect:
|
||||||
|
|
|
@ -37,16 +37,16 @@ for discussion about this, see https://www.openwall.com/lists/musl/2021/07/16/1
|
||||||
#define HAVE_FCNTL_H 1
|
#define HAVE_FCNTL_H 1
|
||||||
--- a/base/debug/stack_trace.cc
|
--- a/base/debug/stack_trace.cc
|
||||||
+++ b/base/debug/stack_trace.cc
|
+++ b/base/debug/stack_trace.cc
|
||||||
@@ -291,7 +291,7 @@
|
@@ -311,7 +311,7 @@
|
||||||
}
|
|
||||||
std::string StackTrace::ToStringWithPrefix(const char* prefix_string) const {
|
std::string StackTrace::ToStringWithPrefix(cstring_view prefix_string) const {
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
-#if !defined(__UCLIBC__) && !defined(_AIX)
|
-#if !defined(__UCLIBC__) && !defined(_AIX)
|
||||||
+#if defined(__GLIBC__) && !defined(_AIX)
|
+#if defined(__GLIBC__) && !defined(_AIX)
|
||||||
if (ShouldSuppressOutput()) {
|
OutputToStreamWithPrefix(&stream, prefix_string);
|
||||||
return "Backtrace suppressed.";
|
#endif
|
||||||
}
|
return stream.str();
|
||||||
@@ -301,7 +301,7 @@
|
@@ -335,7 +335,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const StackTrace& s) {
|
std::ostream& operator<<(std::ostream& os, const StackTrace& s) {
|
||||||
|
|
|
@ -102,23 +102,23 @@ musl does not implement mallinfo()/mallinfo2()
|
||||||
#define HAVE_MALLOC_H 1
|
#define HAVE_MALLOC_H 1
|
||||||
--- a/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc.cc
|
--- a/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc.cc
|
||||||
+++ b/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc.cc
|
+++ b/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc.cc
|
||||||
@@ -717,7 +717,7 @@
|
@@ -660,7 +660,7 @@
|
||||||
|
|
||||||
#endif // !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_ANDROID)
|
#endif // !PA_BUILDFLAG(IS_APPLE) && !PA_BUILDFLAG(IS_ANDROID)
|
||||||
|
|
||||||
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
-#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS)
|
||||||
+#if 0
|
+#if 0
|
||||||
SHIM_ALWAYS_EXPORT struct mallinfo mallinfo(void) __THROW {
|
SHIM_ALWAYS_EXPORT struct mallinfo mallinfo(void) __THROW {
|
||||||
base::SimplePartitionStatsDumper allocator_dumper;
|
partition_alloc::SimplePartitionStatsDumper allocator_dumper;
|
||||||
Allocator()->DumpStats("malloc", true, &allocator_dumper);
|
Allocator()->DumpStats("malloc", true, &allocator_dumper);
|
||||||
--- a/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc_unittest.cc
|
--- a/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc_unittest.cc
|
||||||
+++ b/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc_unittest.cc
|
+++ b/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc_unittest.cc
|
||||||
@@ -24,7 +24,7 @@
|
@@ -29,7 +29,7 @@
|
||||||
#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
||||||
|
|
||||||
// Platforms on which we override weak libc symbols.
|
// Platforms on which we override weak libc symbols.
|
||||||
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
-#if PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS)
|
||||||
+#if (BUILDFLAG(IS_LINUX) && defined(__GLIBC__)) || BUILDFLAG(IS_CHROMEOS)
|
+#if (PA_BUILDFLAG(IS_LINUX) && defined(__GLIBC__)) || PA_BUILDFLAG(IS_CHROMEOS)
|
||||||
|
|
||||||
NOINLINE void FreeForTest(void* data) {
|
PA_NOINLINE void FreeForTest(void* data) {
|
||||||
free(data);
|
free(data);
|
||||||
|
|
|
@ -12,3 +12,14 @@ to make the partalloc support code for it work.
|
||||||
|
|
||||||
declare_args() {
|
declare_args() {
|
||||||
# Causes all the allocations to be routed via allocator_shim.cc. Usually,
|
# Causes all the allocations to be routed via allocator_shim.cc. Usually,
|
||||||
|
--- ./base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h.orig
|
||||||
|
+++ ./base/allocator/partition_allocator/src/partition_alloc/aarch64_support.h
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
#include "partition_alloc/build_config.h"
|
||||||
|
#include "partition_alloc/partition_alloc_buildflags.h"
|
||||||
|
|
||||||
|
-#if PA_BUILDFLAG(IS_ANDROID) || PA_BUILDFLAG(IS_LINUX)
|
||||||
|
+#if PA_BUILDFLAG(IS_ANDROID) || (PA_BUILDFLAG(IS_LINUX) && defined(__GLIBC__))
|
||||||
|
#define HAS_HW_CAPS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
--- a/third_party/perfetto/src/trace_processor/perfetto_sql/engine/created_function.cc
|
|
||||||
+++ b/third_party/perfetto/src/trace_processor/perfetto_sql/engine/created_function.cc
|
|
||||||
@@ -107,7 +107,7 @@
|
|
||||||
// the destructors run correctly for non-trivial members of the
|
|
||||||
// union.
|
|
||||||
using Data =
|
|
||||||
- std::variant<int64_t, double, OwnedString, OwnedBytes, nullptr_t>;
|
|
||||||
+ std::variant<int64_t, double, OwnedString, OwnedBytes, std::nullptr_t>;
|
|
||||||
|
|
||||||
StoredSqlValue(SqlValue value) {
|
|
||||||
switch (value.type) {
|
|
||||||
@@ -132,7 +132,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
SqlValue AsSqlValue() {
|
|
||||||
- if (std::holds_alternative<nullptr_t>(data)) {
|
|
||||||
+ if (std::holds_alternative<std::nullptr_t>(data)) {
|
|
||||||
return SqlValue();
|
|
||||||
} else if (std::holds_alternative<int64_t>(data)) {
|
|
||||||
return SqlValue::Long(std::get<int64_t>(data));
|
|
|
@ -2,24 +2,24 @@ the pvalloc/valloc symbols are obsolete and not implemented in musl
|
||||||
--
|
--
|
||||||
--- a/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_unittest.cc
|
--- a/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_unittest.cc
|
||||||
+++ b/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_unittest.cc
|
+++ b/base/allocator/partition_allocator/src/partition_alloc/shim/allocator_shim_unittest.cc
|
||||||
@@ -375,7 +375,7 @@
|
@@ -410,7 +410,7 @@
|
||||||
ASSERT_GE(aligned_allocs_intercepted_by_alignment[128], 1u);
|
ASSERT_GE(aligned_allocs_intercepted_by_alignment[128], 1u);
|
||||||
ASSERT_GE(aligned_allocs_intercepted_by_size[53], 1u);
|
ASSERT_GE(aligned_allocs_intercepted_by_size[53], 1u);
|
||||||
|
|
||||||
-#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID)
|
-#if PA_BUILDFLAG(IS_POSIX) && !PA_BUILDFLAG(IS_ANDROID)
|
||||||
+#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && defined(__GLIBC__)
|
+#if (PA_BUILDFLAG(IS_POSIX) && defined(__GLIBC__)) && !PA_BUILDFLAG(IS_ANDROID)
|
||||||
void* pvalloc_ptr = pvalloc(67);
|
void* pvalloc_ptr = pvalloc(67);
|
||||||
ASSERT_NE(nullptr, pvalloc_ptr);
|
ASSERT_NE(nullptr, pvalloc_ptr);
|
||||||
ASSERT_EQ(0u, reinterpret_cast<uintptr_t>(pvalloc_ptr) % kPageSize);
|
ASSERT_EQ(0u, reinterpret_cast<uintptr_t>(pvalloc_ptr) % kPageSize);
|
||||||
@@ -414,7 +414,7 @@
|
@@ -449,7 +449,7 @@
|
||||||
free(memalign_ptr);
|
free(memalign_ptr);
|
||||||
ASSERT_GE(frees_intercepted_by_addr[Hash(memalign_ptr)], 1u);
|
ASSERT_GE(frees_intercepted_by_addr[Hash(memalign_ptr)], 1u);
|
||||||
|
|
||||||
-#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID)
|
-#if PA_BUILDFLAG(IS_POSIX) && !PA_BUILDFLAG(IS_ANDROID)
|
||||||
+#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && defined(__GLIBC__)
|
+#if (PA_BUILDFLAG(IS_POSIX) && defined(__GLIBC__)) && !PA_BUILDFLAG(IS_ANDROID)
|
||||||
free(pvalloc_ptr);
|
free(pvalloc_ptr);
|
||||||
ASSERT_GE(frees_intercepted_by_addr[Hash(pvalloc_ptr)], 1u);
|
ASSERT_GE(frees_intercepted_by_addr[Hash(pvalloc_ptr)], 1u);
|
||||||
#endif // BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID)
|
#endif // PA_BUILDFLAG(IS_POSIX) && !PA_BUILDFLAG(IS_ANDROID)
|
||||||
--- a/base/process/memory_unittest.cc
|
--- a/base/process/memory_unittest.cc
|
||||||
+++ b/base/process/memory_unittest.cc
|
+++ b/base/process/memory_unittest.cc
|
||||||
@@ -359,7 +359,7 @@
|
@@ -359,7 +359,7 @@
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
needed for push_back on array
|
|
||||||
--
|
|
||||||
--- a/net/third_party/quiche/src/quiche/common/quiche_endian.h
|
|
||||||
+++ b/net/third_party/quiche/src/quiche/common/quiche_endian.h
|
|
||||||
@@ -6,6 +6,7 @@
|
|
||||||
#define QUICHE_COMMON_QUICHE_ENDIAN_H_
|
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
+#include <array>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <type_traits>
|
|
||||||
|
|
|
@ -1,94 +0,0 @@
|
||||||
Patch-Source: https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/blob/c073b0c20935d7eb452732e0f3b2860a96c3db21/random-build-fixes.patch
|
|
||||||
--
|
|
||||||
diff --git a/chrome/browser/download/bubble/download_bubble_update_service.cc b/chrome/browser/download/bubble/download_bubble_update_service.cc
|
|
||||||
index 41b647f7b44..8940c6bb7fc 100644
|
|
||||||
--- a/chrome/browser/download/bubble/download_bubble_update_service.cc
|
|
||||||
+++ b/chrome/browser/download/bubble/download_bubble_update_service.cc
|
|
||||||
@@ -91,7 +91,7 @@ ItemSortKey GetSortKey(const Item& item) {
|
|
||||||
// Helper to get an iterator to the last element in the cache. The cache
|
|
||||||
// must not be empty.
|
|
||||||
template <typename Item>
|
|
||||||
-SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
|
|
||||||
+typename SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
|
|
||||||
CHECK(!cache.empty());
|
|
||||||
auto it = cache.end();
|
|
||||||
return std::prev(it);
|
|
||||||
@@ -967,9 +967,9 @@ bool DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheImpl(
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename Id, typename Item>
|
|
||||||
-SortedItems<Item>::iterator
|
|
||||||
+typename SortedItems<Item>::iterator
|
|
||||||
DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter(
|
|
||||||
- SortedItems<Item>::iterator iter,
|
|
||||||
+ typename SortedItems<Item>::iterator iter,
|
|
||||||
SortedItems<Item>& cache,
|
|
||||||
IterMap<Id, Item>& iter_map) {
|
|
||||||
CHECK(iter != cache.end());
|
|
||||||
diff --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
|
|
||||||
index c0708681ebd..98b8494d170 100644
|
|
||||||
--- a/chrome/test/chromedriver/capabilities.cc
|
|
||||||
+++ b/chrome/test/chromedriver/capabilities.cc
|
|
||||||
@@ -355,7 +355,7 @@ Status ParseMobileEmulation(const base::Value& option,
|
|
||||||
"'version' field of type string");
|
|
||||||
}
|
|
||||||
|
|
||||||
- brands.emplace_back(*brand, *version);
|
|
||||||
+ brands.emplace_back(BrandVersion{*brand, *version});
|
|
||||||
}
|
|
||||||
|
|
||||||
client_hints.brands = std::move(brands);
|
|
||||||
@@ -392,7 +392,7 @@ Status ParseMobileEmulation(const base::Value& option,
|
|
||||||
"a 'version' field of type string");
|
|
||||||
}
|
|
||||||
|
|
||||||
- full_version_list.emplace_back(*brand, *version);
|
|
||||||
+ full_version_list.emplace_back(BrandVersion{*brand, *version});
|
|
||||||
}
|
|
||||||
|
|
||||||
client_hints.full_version_list = std::move(full_version_list);
|
|
||||||
diff --git a/components/optimization_guide/core/tflite_model_executor.h b/components/optimization_guide/core/tflite_model_executor.h
|
|
||||||
index c4f750f4684..b5635f4108b 100644
|
|
||||||
--- a/components/optimization_guide/core/tflite_model_executor.h
|
|
||||||
+++ b/components/optimization_guide/core/tflite_model_executor.h
|
|
||||||
@@ -189,7 +189,7 @@ class TFLiteModelExecutor : public ModelExecutor<OutputType, InputType> {
|
|
||||||
void SendForBatchExecution(
|
|
||||||
BatchExecutionCallback callback_on_complete,
|
|
||||||
base::TimeTicks start_time,
|
|
||||||
- ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
|
||||||
+ typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
|
|
||||||
override {
|
|
||||||
DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
|
|
||||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
||||||
diff --git a/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc b/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
|
||||||
index 2dc0b304092..a82f255090b 100644
|
|
||||||
--- a/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
|
||||||
+++ b/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
|
|
||||||
@@ -169,7 +169,7 @@ class HTMLFastPathParser {
|
|
||||||
using Span = base::span<const Char>;
|
|
||||||
using USpan = base::span<const UChar>;
|
|
||||||
// 32 matches that used by HTMLToken::Attribute.
|
|
||||||
- typedef std::conditional<std::is_same_v<Char, UChar>,
|
|
||||||
+ typedef typename std::conditional<std::is_same_v<Char, UChar>,
|
|
||||||
UCharLiteralBuffer<32>,
|
|
||||||
LCharLiteralBuffer<32>>::type LiteralBufferType;
|
|
||||||
typedef UCharLiteralBuffer<32> UCharLiteralBufferType;
|
|
||||||
diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
|
||||||
index f0b49139147..a308fb67982 100644
|
|
||||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
|
||||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
|
|
||||||
@@ -91,12 +91,12 @@ void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags,
|
|
||||||
case kGradient:
|
|
||||||
GetCanvasGradient()->GetGradient()->ApplyToFlags(flags, SkMatrix::I(),
|
|
||||||
ImageDrawOptions());
|
|
||||||
- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
|
|
||||||
+ flags.setColor(SkColor4f{0.0f, 0.0f, 0.0f, global_alpha});
|
|
||||||
break;
|
|
||||||
case kImagePattern:
|
|
||||||
GetCanvasPattern()->GetPattern()->ApplyToFlags(
|
|
||||||
flags, AffineTransformToSkMatrix(GetCanvasPattern()->GetTransform()));
|
|
||||||
- flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
|
|
||||||
+ flags.setColor(SkColor4f{0.0f, 0.0f, 0.0f, global_alpha});
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
NOTREACHED();
|
|
|
@ -1,46 +0,0 @@
|
||||||
From ae3ae3711784865bdc38bf119a6182a7b8dae91c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Matt Jolly <Matt.Jolly@footclan.ninja>
|
|
||||||
Date: Sun, 17 Sep 2023 16:51:42 +1000
|
|
||||||
Subject: [PATCH] Add system-zstd
|
|
||||||
|
|
||||||
--- a/build/linux/unbundle/replace_gn_files.py
|
|
||||||
+++ b/build/linux/unbundle/replace_gn_files.py
|
|
||||||
@@ -74,6 +74,7 @@ REPLACEMENTS = {
|
|
||||||
#
|
|
||||||
'woff2': 'third_party/woff2/BUILD.gn',
|
|
||||||
'zlib': 'third_party/zlib/BUILD.gn',
|
|
||||||
+ 'zstd': 'third_party/zstd/BUILD.gn',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/build/linux/unbundle/zstd.gn
|
|
||||||
@@ -0,0 +1,25 @@
|
|
||||||
+import("//build/config/linux/pkg_config.gni")
|
|
||||||
+import("//build/shim_headers.gni")
|
|
||||||
+
|
|
||||||
+pkg_config("system_zstd") {
|
|
||||||
+ packages = [ "libzstd" ]
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+shim_headers("zstd_shim") {
|
|
||||||
+ root_path = "src/lib"
|
|
||||||
+ headers = [
|
|
||||||
+ "zdict.h",
|
|
||||||
+ "zstd.h",
|
|
||||||
+ "zstd_errors.h",
|
|
||||||
+ ]
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+source_set("zstd") {
|
|
||||||
+ deps = [ ":zstd_shim" ]
|
|
||||||
+ public_configs = [ ":system_zstd" ]
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+source_set("decompress") {
|
|
||||||
+ deps = [ ":zstd_shim" ]
|
|
||||||
+ public_configs = [ ":system_zstd" ]
|
|
||||||
+}
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=fdm-materials
|
pkgname=fdm-materials
|
||||||
pkgver=5.2.2
|
pkgver=5.2.2
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="FDM Material Database"
|
pkgdesc="FDM Material Database"
|
||||||
url="https://github.com/Ultimaker/fdm_materials"
|
url="https://github.com/Ultimaker/fdm_materials"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
pkgname=freetube
|
pkgname=freetube
|
||||||
pkgver=0.20.0
|
pkgver=0.21.3
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="An open source desktop YouTube player built with privacy in mind."
|
pkgdesc="An open source desktop YouTube player built with privacy in mind."
|
||||||
arch="x86_64 aarch64" # blocked by electron
|
arch="x86_64 aarch64" # blocked by electron
|
||||||
license="AGPL-3.0-only"
|
license="AGPL-3.0-only"
|
||||||
|
@ -50,7 +50,7 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
b82cdaff82d7bd325f3127794160382c97be3b72c5ef4bb3f327a8ada6b609043bc30a1f6af59c38e23237aac7d8b6ea2685c22aa82469c8d08b96cb839a3099 freetube-0.20.0.tar.gz
|
22e5ab677cd442d50237b2d62534698d8ad73a37e1731003dc23c4ea3da992b3cae936f0bb3a0a86cd4b7fba731c9fa53276cb0a6cd5bab213ff2a6c9006cb05 freetube-0.21.3.tar.gz
|
||||||
2ce2effc794bb663789cefe968b5899122127983dbfa1b240aa33a2be383720b18204e6d01b4a550df72956f02b6636b79c93a58f470a970b09b770f5b8f2fc4 freetube.sh
|
2ce2effc794bb663789cefe968b5899122127983dbfa1b240aa33a2be383720b18204e6d01b4a550df72956f02b6636b79c93a58f470a970b09b770f5b8f2fc4 freetube.sh
|
||||||
d27cb896b65a7e8d52ffe86e5f74eed72b6cf976b28e1a13012d34c7eceba5ff6f20298017738dfa93c0336ffa52b8ee4da7e06b02747062898db7e678819526 tasje-dotdash.patch
|
d27cb896b65a7e8d52ffe86e5f74eed72b6cf976b28e1a13012d34c7eceba5ff6f20298017738dfa93c0336ffa52b8ee4da7e06b02747062898db7e678819526 tasje-dotdash.patch
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
||||||
pkgname=libmedc
|
|
||||||
pkgver=4.1.1
|
|
||||||
pkgrel=3
|
|
||||||
pkgdesc="Open source library for numerical simulation"
|
|
||||||
url="https://www.salome-platform.org/"
|
|
||||||
arch="all"
|
|
||||||
license="GPL-3.0-or-later"
|
|
||||||
makedepends="cmake hdf5-dev swig python3-dev samurai"
|
|
||||||
options="!check" #test suite is nonfunctional with python bindings
|
|
||||||
subpackages="$pkgname-dev $pkgname-doc $pkgname-python-pyc $pkgname-python:_py"
|
|
||||||
source="
|
|
||||||
https://files.salome-platform.org/Salome/medfile/med-$pkgver.tar.gz
|
|
||||||
hdf5.patch
|
|
||||||
cmake-config-dir.patch
|
|
||||||
"
|
|
||||||
builddir="$srcdir/med-$pkgver"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cmake -B build -G Ninja \
|
|
||||||
-DCMAKE_BUILD_TYPE=None \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DMEDFILE_BUILD_TESTS=OFF \
|
|
||||||
-DMEDFILE_BUILD_PYTHON=ON
|
|
||||||
cmake --build build
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
|
||||||
}
|
|
||||||
|
|
||||||
_py() {
|
|
||||||
pkgdesc="Python bindings for libmedc"
|
|
||||||
depends="python3"
|
|
||||||
amove usr/lib/python3*
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
f211fa82750a7cc935baa3a50a55d16e40117a0f2254b482492ba8396d82781ca84960995da7a16b2b5be0b93ce76368bf4b311bb8af0e5f0243e7051c9c554c med-4.1.1.tar.gz
|
|
||||||
68d9291e73a68d674081314028c0fce7bbd4a7b78b93b7e5078117ce62f2d07318bc33ec95091ce677148ec3926c1ce653d0760c34e74b29257a7be59210f040 hdf5.patch
|
|
||||||
8d0f58cd67d205fbacaff0e6da76e2ee5473457b478ede13a551ebe5853c0716c7406b74c3792e1ace33a34d352fccca8dd2940f063a7c060a12529d060a991a cmake-config-dir.patch
|
|
||||||
"
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -101,7 +101,7 @@
|
|
||||||
IF(WIN32 AND NOT CYGWIN)
|
|
||||||
SET(INSTALL_CMAKE_CONFIG_DIR cmake)
|
|
||||||
ELSE()
|
|
||||||
- SET(INSTALL_CMAKE_CONFIG_DIR share/cmake/medfile-${MED_STR_VERSION})
|
|
||||||
+ SET(INSTALL_CMAKE_CONFIG_DIR lib${LIB_SUFFIX}/cmake/medfile-${MED_STR_VERSION})
|
|
||||||
ENDIF()
|
|
||||||
SET(INSTALL_INCLUDE_DIR include)
|
|
||||||
|
|
|
@ -1,94 +0,0 @@
|
||||||
Originally from https://gist.github.com/jedbrown/527ef81ff59a0dccf833da40fdd15a47
|
|
||||||
diff -rupN med-4.1.0/config/cmake_files/medMacros.cmake med-4.1.0-new/config/cmake_files/medMacros.cmake
|
|
||||||
--- med-4.1.0/config/cmake_files/medMacros.cmake 2021-12-03 09:35:30.675827163 +0100
|
|
||||||
+++ med-4.1.0-new/config/cmake_files/medMacros.cmake 2021-12-03 09:32:31.894994147 +0100
|
|
||||||
@@ -447,7 +447,7 @@ MACRO(MED_FIND_HDF5)
|
|
||||||
##
|
|
||||||
## Requires 1.10.x version
|
|
||||||
##
|
|
||||||
- IF (NOT HDF_VERSION_MAJOR_REF EQUAL 1 OR NOT HDF_VERSION_MINOR_REF EQUAL 10 OR NOT HDF_VERSION_RELEASE_REF GREATER 1)
|
|
||||||
+ IF (HDF5_VERSION VERSION_LESS 1.10.2)
|
|
||||||
MESSAGE(FATAL_ERROR "HDF5 version is ${HDF_VERSION_REF}. Only versions >= 1.10.2 are supported.")
|
|
||||||
ENDIF()
|
|
||||||
##
|
|
||||||
diff -rupN med-4.1.0/src/ci/MEDfileCompatibility.c med-4.1.0-new/src/ci/MEDfileCompatibility.c
|
|
||||||
--- med-4.1.0/src/ci/MEDfileCompatibility.c 2021-12-03 09:35:30.676827162 +0100
|
|
||||||
+++ med-4.1.0-new/src/ci/MEDfileCompatibility.c 2021-12-03 09:33:26.292942149 +0100
|
|
||||||
@@ -71,7 +71,7 @@ MEDfileCompatibility(const char* const f
|
|
||||||
_hversionMMR=10000*_hmajeur+100*_hmineur+_hrelease;
|
|
||||||
/* ISCRUTE(_hversionMMR); */
|
|
||||||
/* ISCRUTE(HDF_VERSION_NUM_REF); */
|
|
||||||
- if ( (_hversionMMR >= HDF_VERSION_NUM_REF) && (_hmineur == HDF_VERSION_MINOR_REF) ) *hdfok = MED_TRUE;
|
|
||||||
+ if (_hversionMMR >= HDF_VERSION_NUM_REF) *hdfok = MED_TRUE;
|
|
||||||
|
|
||||||
/* TODO : Vérifier si la version mineure HDF du fichier est supérieure
|
|
||||||
à la version mineure de la bibliothèque HDF utilisée :
|
|
||||||
@@ -113,7 +113,7 @@ MEDfileCompatibility(const char* const f
|
|
||||||
#if MED_NUM_MAJEUR != 4
|
|
||||||
#error "Don't forget to update the test version here when you change the major version of the library !"
|
|
||||||
#endif
|
|
||||||
-#if H5_VERS_MINOR > 10
|
|
||||||
+#if H5_VERS_MINOR > 14
|
|
||||||
#error "Don't forget to check the compatibility version of the library, depending on the internal hdf model choice !"
|
|
||||||
#error "Cf. _MEDfileCreate ..."
|
|
||||||
#endif
|
|
||||||
diff -rupN med-4.1.0/src/hdfi/_MEDfileCreate.c med-4.1.0-new/src/hdfi/_MEDfileCreate.c
|
|
||||||
--- med-4.1.0/src/hdfi/_MEDfileCreate.c 2021-12-03 09:35:30.677827161 +0100
|
|
||||||
+++ med-4.1.0-new/src/hdfi/_MEDfileCreate.c 2021-12-03 09:32:31.894994147 +0100
|
|
||||||
@@ -159,7 +159,7 @@ med_idt _MEDfileCreate(const char * cons
|
|
||||||
* En HDF5-1.10.0p1 cela n'a aucun effet !
|
|
||||||
* Un test autoconf permet de fixer un intervalle de version HDF à MED.
|
|
||||||
*/
|
|
||||||
-#if H5_VERS_MINOR > 10
|
|
||||||
+#if H5_VERS_MINOR > 14
|
|
||||||
#error "Don't forget to change the compatibility version of the library !"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
diff -rupN med-4.1.0/src/hdfi/_MEDfileOpen.c med-4.1.0-new/src/hdfi/_MEDfileOpen.c
|
|
||||||
--- med-4.1.0/src/hdfi/_MEDfileOpen.c 2021-12-03 09:35:30.677827161 +0100
|
|
||||||
+++ med-4.1.0-new/src/hdfi/_MEDfileOpen.c 2021-12-03 09:32:31.894994147 +0100
|
|
||||||
@@ -72,7 +72,7 @@ med_idt _MEDfileOpen(const char * const
|
|
||||||
|
|
||||||
• The creation order tracking property, H5P_CRT_ORDER_TRACKED, has been set in the group creation property list (see H5Pset_link_creation_order).
|
|
||||||
*/
|
|
||||||
-#if H5_VERS_MINOR > 10
|
|
||||||
+#if H5_VERS_MINOR > 14
|
|
||||||
#error "Don't forget to change the compatibility version of the library !"
|
|
||||||
#endif
|
|
||||||
/* L'avantage de bloquer le modèle interne HDF5
|
|
||||||
diff -rupN med-4.1.0/src/hdfi/_MEDmemFileOpen.c med-4.1.0-new/src/hdfi/_MEDmemFileOpen.c
|
|
||||||
--- med-4.1.0/src/hdfi/_MEDmemFileOpen.c 2021-12-03 09:35:30.678827160 +0100
|
|
||||||
+++ med-4.1.0-new/src/hdfi/_MEDmemFileOpen.c 2021-12-03 09:32:31.894994147 +0100
|
|
||||||
@@ -434,7 +434,7 @@ med_idt _MEDmemFileOpen(const char * con
|
|
||||||
goto ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#if H5_VERS_MINOR > 10
|
|
||||||
+#if H5_VERS_MINOR > 14
|
|
||||||
#error "Don't forget to change the compatibility version of the library !"
|
|
||||||
#endif
|
|
||||||
if ( H5Pset_libver_bounds( _fapl, H5F_LIBVER_18, H5F_LIBVER_18) ) {
|
|
||||||
diff -rupN med-4.1.0/src/hdfi/_MEDparFileCreate.c med-4.1.0-new/src/hdfi/_MEDparFileCreate.c
|
|
||||||
--- med-4.1.0/src/hdfi/_MEDparFileCreate.c 2021-12-03 09:35:30.678827160 +0100
|
|
||||||
+++ med-4.1.0-new/src/hdfi/_MEDparFileCreate.c 2021-12-03 09:32:31.894994147 +0100
|
|
||||||
@@ -64,7 +64,7 @@ med_idt _MEDparFileCreate(const char * c
|
|
||||||
* En HDF5-1.10.0p1 cela n'a aucun effet !
|
|
||||||
* Un test autoconf permet de fixer un intervalle de version HDF à MED.
|
|
||||||
*/
|
|
||||||
-#if H5_VERS_MINOR > 10
|
|
||||||
+#if H5_VERS_MINOR > 14
|
|
||||||
#error "Don't forget to change the compatibility version of the library !"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
diff -rupN med-4.1.0/src/hdfi/_MEDparFileOpen.c med-4.1.0-new/src/hdfi/_MEDparFileOpen.c
|
|
||||||
--- med-4.1.0/src/hdfi/_MEDparFileOpen.c 2021-12-03 09:35:30.679827159 +0100
|
|
||||||
+++ med-4.1.0-new/src/hdfi/_MEDparFileOpen.c 2021-12-03 09:32:31.894994147 +0100
|
|
||||||
@@ -55,7 +55,7 @@ med_idt _MEDparFileOpen(const char * con
|
|
||||||
MED_ERR_(_fid,MED_ERR_INIT,MED_ERR_PROPERTY,MED_ERR_PARALLEL_MSG);
|
|
||||||
goto ERROR;
|
|
||||||
}
|
|
||||||
-#if H5_VERS_MINOR > 10
|
|
||||||
+#if H5_VERS_MINOR > 14
|
|
||||||
#error "Don't forget to change the compatibility version of the library !"
|
|
||||||
#endif
|
|
||||||
if ( H5Pset_libver_bounds( _fapl, H5F_LIBVER_18, H5F_LIBVER_18 ) ) {
|
|
|
@ -1,38 +1,71 @@
|
||||||
# Contributor: Anjandev Momi <anjan@momi.ca>
|
# Contributor: Anjandev Momi <anjan@momi.ca>
|
||||||
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
pkgname=nlopt
|
pkgname=nlopt
|
||||||
pkgver=2.7.1
|
pkgver=2.8.0
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization"
|
pkgdesc="Library for nonlinear optimization"
|
||||||
url="https://github.com/stevengj/nlopt/"
|
url="https://github.com/stevengj/nlopt"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
makedepends="samurai cmake"
|
makedepends="
|
||||||
subpackages="$pkgname-dev $pkgname-doc"
|
cmake
|
||||||
|
guile-dev
|
||||||
|
python3-dev
|
||||||
|
samurai
|
||||||
|
swig
|
||||||
|
"
|
||||||
|
subpackages="
|
||||||
|
$pkgname-dev
|
||||||
|
$pkgname-doc
|
||||||
|
$pkgname-guile
|
||||||
|
"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/stevengj/nlopt/archive/refs/tags/v$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/stevengj/nlopt/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
|
|
||||||
|
case "$CARCH" in
|
||||||
|
# octave unavailable on these 3 archs
|
||||||
|
s390x|riscv64|ppc64le) ;;
|
||||||
|
*)
|
||||||
|
makedepends="$makedepends octave-dev"
|
||||||
|
subpackages="$subpackages $pkgname-octave"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
if [ "$CBUILD" != "$CHOST" ]; then
|
if [ "$CBUILD" != "$CHOST" ]; then
|
||||||
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||||
fi
|
fi
|
||||||
cmake -B build -G Ninja \
|
cmake -B build -G Ninja \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DBUILD_SHARED_LIBS=True \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=minsizerel \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
$CMAKE_CROSSOPTS .
|
$crossopts
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd build
|
ctest --test-dir build --output-on-failure
|
||||||
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
guile() {
|
||||||
|
pkgdesc="$pkgdesc (Guile bindings)"
|
||||||
|
depends="$pkgname=$pkgver-r$pkgrel guile"
|
||||||
|
|
||||||
|
amove usr/lib/guile usr/share/guile
|
||||||
|
}
|
||||||
|
|
||||||
|
octave() {
|
||||||
|
pkgdesc="$pkgdesc (Octave bindings)"
|
||||||
|
depends="$pkgname=$pkgver-r$pkgrel octave"
|
||||||
|
|
||||||
|
amove usr/lib/octave usr/share/octave
|
||||||
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
e23cb522fc696010574c14b72be85acc0f8ccf0bf208bf2b8789c57d6c5a6e6d419ee10330581518b1c1567018ae909b626ce7761d4fbd5bf112916871e420e2 nlopt-2.7.1.tar.gz
|
cb294caa5532e11ae0d22ed849705920bbae79f712144c840a5ca865ef8e6a15c6c9540c81ced0c3c05b9f44c360d50f74e235e69d893be34b7e1c5599f07c71 nlopt-2.8.0.tar.gz
|
||||||
"
|
"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
pkgname=openssl1.1-compat
|
pkgname=openssl1.1-compat
|
||||||
pkgver=1.1.1w
|
pkgver=1.1.1w
|
||||||
_abiver=${pkgver%.*}
|
_abiver=${pkgver%.*}
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="toolkit for transport layer security (TLS) - version 1.1"
|
pkgdesc="toolkit for transport layer security (TLS) - version 1.1"
|
||||||
url="https://www.openssl.org/"
|
url="https://www.openssl.org/"
|
||||||
arch="all"
|
arch="all"
|
||||||
|
@ -86,6 +86,7 @@ build() {
|
||||||
x86_64) _target="linux-x86_64"; _optflags="enable-ec_nistp_64_gcc_128" ;;
|
x86_64) _target="linux-x86_64"; _optflags="enable-ec_nistp_64_gcc_128" ;;
|
||||||
s390x) _target="linux64-s390x";;
|
s390x) _target="linux64-s390x";;
|
||||||
riscv64) _target="linux-generic64";;
|
riscv64) _target="linux-generic64";;
|
||||||
|
loongarch64) _target="linux-generic64";;
|
||||||
*) msg "Unable to determine architecture from (CARCH=$CARCH)" ; return 1 ;;
|
*) msg "Unable to determine architecture from (CARCH=$CARCH)" ; return 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -103,7 +104,7 @@ build() {
|
||||||
perl ./Configure \
|
perl ./Configure \
|
||||||
$_target \
|
$_target \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=lib \
|
--libdir=/usr/lib \
|
||||||
--openssldir=/etc/ssl1.1 \
|
--openssldir=/etc/ssl1.1 \
|
||||||
shared \
|
shared \
|
||||||
no-zlib \
|
no-zlib \
|
||||||
|
@ -144,23 +145,16 @@ package() {
|
||||||
_libcrypto() {
|
_libcrypto() {
|
||||||
pkgdesc="Crypto library from openssl"
|
pkgdesc="Crypto library from openssl"
|
||||||
replaces="libressl2.7-libcrypto"
|
replaces="libressl2.7-libcrypto"
|
||||||
mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
|
|
||||||
mv "$pkgdir"/etc "$subpkgdir"/
|
amove etc
|
||||||
for i in "$pkgdir"/usr/lib/libcrypto*; do
|
amove usr/lib/libcrypto*
|
||||||
mv $i "$subpkgdir"/lib/
|
amove usr/lib/engines-$_abiver
|
||||||
ln -s ../../lib/${i##*/} "$subpkgdir"/usr/lib/${i##*/}
|
|
||||||
done
|
|
||||||
mv "$pkgdir"/usr/lib/engines-$_abiver "$subpkgdir"/usr/lib/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_libssl() {
|
_libssl() {
|
||||||
pkgdesc="SSL shared libraries"
|
pkgdesc="SSL shared libraries"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
|
amove usr/lib/libssl*
|
||||||
for i in "$pkgdir"/usr/lib/libssl*; do
|
|
||||||
mv $i "$subpkgdir"/lib/
|
|
||||||
ln -s ../../lib/${i##*/} "$subpkgdir"/usr/lib/${i##*/}
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_static() {
|
_static() {
|
||||||
|
|
|
@ -1,47 +1,39 @@
|
||||||
# Automatically generated by apkbuild-cpan, template 2
|
# Automatically generated by apkbuild-cpan, template 4
|
||||||
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
||||||
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
pkgname=perl-math-random-isaac-xs
|
pkgname=perl-math-random-isaac-xs
|
||||||
_pkgreal=Math-Random-ISAAC-XS
|
|
||||||
pkgver=1.004
|
pkgver=1.004
|
||||||
pkgrel=7
|
pkgrel=8
|
||||||
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Math-Random-ISAAC-XS
|
||||||
pkgdesc="C implementation of the ISAAC PRNG algorithm"
|
pkgdesc="C implementation of the ISAAC PRNG algorithm"
|
||||||
url="https://metacpan.org/release/Math-Random-ISAAC-XS/"
|
url="https://metacpan.org/release/Math-Random-ISAAC-XS/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="unrestricted"
|
license="Public-Domain"
|
||||||
cpandepends=""
|
depends="perl"
|
||||||
cpanmakedepends="perl-test-nowarnings"
|
makedepends="perl-dev perl-module-build"
|
||||||
cpancheckdepends=""
|
checkdepends="perl-test-nowarnings"
|
||||||
depends="$cpandepends"
|
|
||||||
makedepends="perl-dev perl-module-build $cpanmakedepends"
|
|
||||||
checkdepends="$cpancheckdepends"
|
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://cpan.metacpan.org/authors/id/J/JA/JAWNSY/$_pkgreal-$pkgver.tar.gz"
|
source="https://cpan.metacpan.org/authors/id/J/JA/JAWNSY/Math-Random-ISAAC-XS-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare || return 1
|
|
||||||
|
|
||||||
cd "$builddir"
|
|
||||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
||||||
perl Build.PL installdirs=vendor || return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
|
||||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
perl Build.PL \
|
||||||
|
--installdirs=vendor \
|
||||||
|
--create_packlist=0
|
||||||
./Build
|
./Build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "$builddir"
|
|
||||||
./Build install destdir="$pkgdir" || return 1
|
|
||||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$builddir"
|
|
||||||
./Build test
|
./Build test
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="40c46b5f247f585a407ef9f36b5874d9cf03ec05963a9d92d988ebd63daf1e37b1b51308845d4596f47b5ad7203953bcb7fbb421c905b526dbe99b246ccb4d87 Math-Random-ISAAC-XS-1.004.tar.gz"
|
package() {
|
||||||
|
./Build install --destdir="$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
40c46b5f247f585a407ef9f36b5874d9cf03ec05963a9d92d988ebd63daf1e37b1b51308845d4596f47b5ad7203953bcb7fbb421c905b526dbe99b246ccb4d87 Math-Random-ISAAC-XS-1.004.tar.gz
|
||||||
|
"
|
||||||
|
|
46
backports/py3-apsw/APKBUILD
Normal file
46
backports/py3-apsw/APKBUILD
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
||||||
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||||
|
pkgname=py3-apsw
|
||||||
|
_pkgname=apsw
|
||||||
|
pkgver=3.46.1.0
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Another Python SQLite Wrapper"
|
||||||
|
url="https://github.com/rogerbinns/apsw"
|
||||||
|
arch="all"
|
||||||
|
license="Zlib"
|
||||||
|
depends="python3"
|
||||||
|
makedepends="
|
||||||
|
python3-dev
|
||||||
|
py3-gpep517
|
||||||
|
py3-setuptools
|
||||||
|
py3-wheel
|
||||||
|
sqlite-dev
|
||||||
|
"
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
source="$pkgname-$pkgver.zip::https://github.com/rogerbinns/apsw/releases/download/$pkgver/apsw-$pkgver.zip
|
||||||
|
detect-sqlite-config.patch
|
||||||
|
"
|
||||||
|
|
||||||
|
builddir="$srcdir/$_pkgname-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
.testenv/bin/python3 setup.py build_test_extension test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
8d24825c8346b05a99b8959ce1fd45ae5162c95b020ecc63bd3491bfd1579370a0e6b1a962f7f64a7e7e415846007e64d90b28e2065ae047e228d60b12b9cb02 py3-apsw-3.46.1.0.zip
|
||||||
|
8f3957bd6fecb5660a7cab367043e4ccdacd87d8963bbe41cc3d525265de28f08aa207099658d785be29c5c90b818c1418f766995cd780d02b8e36252a389758 detect-sqlite-config.patch
|
||||||
|
"
|
8
backports/py3-apsw/detect-sqlite-config.patch
Normal file
8
backports/py3-apsw/detect-sqlite-config.patch
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
diff --git a/setup.apsw b/setup.apsw
|
||||||
|
index 68dedb9..3ceb10b 100644
|
||||||
|
--- a/setup.apsw
|
||||||
|
+++ b/setup.apsw
|
||||||
|
@@ -1 +1,3 @@
|
||||||
|
# You can put ini format directives here in addition to command line flags
|
||||||
|
+[build_ext]
|
||||||
|
+use_system_sqlite_config = True
|
|
@ -1,9 +1,9 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=py3-arcus
|
pkgname=py3-arcus
|
||||||
# Needs to be upgraded in sync with libarcus
|
# Needs to be upgraded in sync with libarcus
|
||||||
pkgver=5.3.0
|
pkgver=5.3.0
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Python bindings for libarcus"
|
pkgdesc="Python bindings for libarcus"
|
||||||
url="https://github.com/Ultimaker/pyArcus"
|
url="https://github.com/Ultimaker/pyArcus"
|
||||||
arch="all"
|
arch="all"
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
pkgname=py3-colored
|
pkgname=py3-colored
|
||||||
_pyname=${pkgname/py3-/}
|
_pyname=${pkgname/py3-/}
|
||||||
pkgver=1.4.4
|
pkgver=1.4.4
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Simple Python library for color and formatting in terminal"
|
pkgdesc="Simple Python library for color and formatting in terminal"
|
||||||
url="https://gitlab.com/dslackw/colored"
|
url="https://gitlab.com/dslackw/colored"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://gitlab.com/dslackw/colored/-/archive/$pkgver/colored-$pkgver.tar.gz"
|
source="https://gitlab.com/dslackw/colored/-/archive/$pkgver/colored-$pkgver.tar.gz"
|
||||||
|
@ -16,11 +16,14 @@ builddir="$srcdir/$_pyname-$pkgver"
|
||||||
options="!check" # No testsuite
|
options="!check" # No testsuite
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
|
|
||||||
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
|
|
||||||
pkgname=py3-daemon
|
|
||||||
pkgver=2.3.2
|
|
||||||
pkgrel=4
|
|
||||||
pkgdesc="Library to implement a well-behaved Unix daemon process"
|
|
||||||
url="https://pagure.io/python-daemon"
|
|
||||||
options="!check" # Has lots of dependencies
|
|
||||||
arch="noarch"
|
|
||||||
license="Apache-2.0 AND GPL-3.0-or-later"
|
|
||||||
depends="py3-setuptools py3-lockfile"
|
|
||||||
makedepends="py3-docutils"
|
|
||||||
subpackages="$pkgname-pyc"
|
|
||||||
source="
|
|
||||||
https://pypi.io/packages/source/p/python-daemon/python-daemon-$pkgver.tar.gz
|
|
||||||
remove-docutils-depend.patch
|
|
||||||
"
|
|
||||||
builddir="$srcdir/python-daemon-$pkgver"
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
|
|
||||||
# Remove unnecessary dependency for building, twine is
|
|
||||||
# required for uploading the package to pypi which we don't
|
|
||||||
# do
|
|
||||||
sed -e '/twine/d' -i setup.py
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
python3 setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 setup.py install --root="$pkgdir"
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
d9f6e6c376a496fae96bd9efed0a56d00a137617a3d1d5ef74802ef176bc813bb1d49bbb9164cdbec03213529f944b32b257bcc64283abfa4a3522ff00826bfd python-daemon-2.3.2.tar.gz
|
|
||||||
20bc4bce7fba9754d1c9bca298f9b4ff7fe90ecf51769df2020912f370650a5997f91c99c6be2ecffed10a6b359a29b1f64b0c391772451eb3c04769df381015 remove-docutils-depend.patch
|
|
||||||
"
|
|
|
@ -1,16 +0,0 @@
|
||||||
diff --git a/setup.py.orig b/setup.py
|
|
||||||
index 24f0e7cb98a..d712294c20b 100644
|
|
||||||
--- a/setup.py.orig
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -96,11 +96,6 @@ setup_kwargs = dict(
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
-# Docutils is only required for building, but Setuptools can't distinguish
|
|
||||||
-# dependencies properly.
|
|
||||||
-# See <URL:https://github.com/pypa/setuptools/issues/457>.
|
|
||||||
-setup_kwargs['install_requires'].append("docutils")
|
|
||||||
-
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
setup(**setup_kwargs)
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
||||||
pkgname=py3-dateparser
|
pkgname=py3-dateparser
|
||||||
_pyname=${pkgname#py3-}
|
_pyname=${pkgname#py3-}
|
||||||
pkgver=1.2.0
|
pkgver=1.2.0
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Python parser for human readable dates"
|
pkgdesc="Python parser for human readable dates"
|
||||||
url="https://github.com/scrapinghub/dateparser"
|
url="https://github.com/scrapinghub/dateparser"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -40,13 +40,10 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
_test_filter='not test_parsing_date_should_fail_using_datetime_strptime_if_locale_is_non_english'
|
# test_relative_base_setting_2_en fails due to tzinfo mismatch
|
||||||
# test_custom_language_detect_fast_text fails due to wrong file format
|
# test_custom_language_detect_fast_text fails due to wrong file format
|
||||||
case "$CARCH" in
|
_test_filter="not test_parsing_date_should_fail_using_datetime_strptime_if_locale_is_non_english \
|
||||||
s390x)
|
and not test_relative_base_setting_2_en and not test_custom_language_detect_fast_text"
|
||||||
_test_filter="$_test_filter and not test_custom_language_detect_fast_text"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
.testenv/bin/python3 -m installer .dist/*.whl
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
||||||
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
|
||||||
pkgname=py3-django-debug-toolbar
|
|
||||||
_pkgname=django-debug-toolbar
|
|
||||||
pkgver=4.3
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Configurable set of panels that display various debug information about the current request/response"
|
|
||||||
options="!check" # Requires unpackaged Selenium python3 module
|
|
||||||
url="https://github.com/jazzband/django-debug-toolbar"
|
|
||||||
arch="noarch"
|
|
||||||
license="BSD-3-Clause"
|
|
||||||
depends="py3-django py3-sqlparse"
|
|
||||||
makedepends="
|
|
||||||
py3-gpep517
|
|
||||||
py3-hatchling
|
|
||||||
"
|
|
||||||
# options="!check" #no testsuite
|
|
||||||
subpackages="$pkgname-pyc"
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/$_pkgname/archive/$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
|
||||||
|
|
||||||
replaces="py-django-debug-toolbar" # Backwards compatibility
|
|
||||||
provides="py-django-debug-toolbar=$pkgver-r$pkgrel" # Backwards compatibility
|
|
||||||
|
|
||||||
build() {
|
|
||||||
gpep517 build-wheel \
|
|
||||||
--wheel-dir .dist \
|
|
||||||
--output-fd 3 3>&1 >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 -m installer -d "$pkgdir" \
|
|
||||||
.dist/*.whl
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
caa8563d38e8c96305828b7a07006ce2ee0afae099d70d75d332f2196fc3ffcf7f3848440ea22c00f2b918029477672a172e30714f6f73a630404175aef3b925 py3-django-debug-toolbar-4.3.tar.gz
|
|
||||||
"
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
|
||||||
pkgname=py3-flask-limiter
|
pkgname=py3-flask-limiter
|
||||||
pkgver=3.7.0
|
pkgver=3.9.2
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Rate Limiting extension for Flask"
|
pkgdesc="Rate Limiting extension for Flask"
|
||||||
url="https://github.com/alisaifee/flask-limiter"
|
url="https://github.com/alisaifee/flask-limiter"
|
||||||
|
@ -14,7 +14,7 @@ depends="
|
||||||
py3-rich
|
py3-rich
|
||||||
python3
|
python3
|
||||||
"
|
"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="
|
checkdepends="
|
||||||
py3-flask-restful
|
py3-flask-restful
|
||||||
py3-flask-restx
|
py3-flask-restx
|
||||||
|
@ -23,7 +23,6 @@ checkdepends="
|
||||||
py3-pytest
|
py3-pytest
|
||||||
py3-pytest-cov
|
py3-pytest-cov
|
||||||
"
|
"
|
||||||
options="!check" # tests depend on unpackaged modules
|
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="
|
source="
|
||||||
https://github.com/alisaifee/flask-limiter/archive/refs/tags/$pkgver/flask-limiter-$pkgver.tar.gz
|
https://github.com/alisaifee/flask-limiter/archive/refs/tags/$pkgver/flask-limiter-$pkgver.tar.gz
|
||||||
|
@ -31,20 +30,26 @@ source="
|
||||||
our-std-is-good-enough.patch
|
our-std-is-good-enough.patch
|
||||||
"
|
"
|
||||||
builddir="$srcdir/flask-limiter-$pkgver"
|
builddir="$srcdir/flask-limiter-$pkgver"
|
||||||
|
options="!check" # tests depend on unpackaged modules
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
f546536e3efb86571515aac5b578155c240049fb1ccf96e55d4b1814d9e227e41cc18fc587f115706606154bb12a84b381533cf069cdfc56453b0f170ec19449 flask-limiter-3.7.0.tar.gz
|
69e488a641ab39c088185fabcde19ebb4cbe1683e9143efdf146163bb0254e0c4f8b4b72df407542d540394e7e3b2d7498b9c93c25ae8a8128e05e319f342318 flask-limiter-3.9.2.tar.gz
|
||||||
1b90e9134076cda249695d5ea741db9d205a2ae452c7d6edfe01eb37a221ce6f64b0e8ddcdbbee9b0e0fb16a28e5eabf14f1c1e41e965c7e3b93ea4f42caf553 our-std-is-good-enough.patch
|
1b90e9134076cda249695d5ea741db9d205a2ae452c7d6edfe01eb37a221ce6f64b0e8ddcdbbee9b0e0fb16a28e5eabf14f1c1e41e965c7e3b93ea4f42caf553 our-std-is-good-enough.patch
|
||||||
"
|
"
|
||||||
|
|
|
@ -3,28 +3,33 @@
|
||||||
pkgname=py3-fuzzywuzzy
|
pkgname=py3-fuzzywuzzy
|
||||||
_pyname=fuzzywuzzy
|
_pyname=fuzzywuzzy
|
||||||
pkgver=0.18.0
|
pkgver=0.18.0
|
||||||
pkgrel=6
|
pkgrel=7
|
||||||
pkgdesc="Fuzzy string matching in python"
|
pkgdesc="Fuzzy string matching in python"
|
||||||
url="https://github.com/seatgeek/fuzzywuzzy"
|
url="https://github.com/seatgeek/fuzzywuzzy"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
depends="python3 py3-levenshtein"
|
depends="python3 py3-levenshtein"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest py3-pycodestyle py3-hypothesis"
|
checkdepends="py3-pytest py3-pycodestyle py3-hypothesis"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pyname-$pkgver"
|
builddir="$srcdir/$_pyname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH="$PWD/build/lib" pytest -v
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
|
41
backports/py3-html5-parser/APKBUILD
Normal file
41
backports/py3-html5-parser/APKBUILD
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# Maintainer: Cowington Post <cowingtonpost@gmail.com>
|
||||||
|
pkgname=py3-html5-parser
|
||||||
|
pkgver=0.4.12
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Fast C based HTML 5 parsing for python"
|
||||||
|
url="https://github.com/kovidgoyal/html5-parser"
|
||||||
|
arch="all"
|
||||||
|
license="Apache-2.0"
|
||||||
|
depends="py3-lxml py3-chardet"
|
||||||
|
makedepends="
|
||||||
|
libxml2-dev
|
||||||
|
py3-gpep517
|
||||||
|
py3-setuptools
|
||||||
|
py3-wheel
|
||||||
|
python3-dev
|
||||||
|
"
|
||||||
|
checkdepends="py3-beautifulsoup4"
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
source="https://github.com/kovidgoyal/html5-parser/archive/v$pkgver/py3-html5-parser-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/html5-parser-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
.testenv/bin/python3 setup.py test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
d2c031225b74d01a1ae3455837ac09e9afad8a4ec6ab1b8f66cbea8a86188db271a72570ef06e05ac56d369b41d97fc6f382455e25ca346a1897f62a3696a252 py3-html5-parser-0.4.12.tar.gz
|
||||||
|
"
|
|
@ -1,8 +1,8 @@
|
||||||
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
pkgname=py3-limits
|
pkgname=py3-limits
|
||||||
pkgver=3.12.0
|
pkgver=3.13.0
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Rate limiting using various strategies and storage backends such as redis & memcached"
|
pkgdesc="Rate limiting using various strategies and storage backends such as redis & memcached"
|
||||||
url="https://github.com/alisaifee/limits"
|
url="https://github.com/alisaifee/limits"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -11,7 +11,7 @@ depends="
|
||||||
py3-deprecated
|
py3-deprecated
|
||||||
python3
|
python3
|
||||||
"
|
"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="
|
checkdepends="
|
||||||
py3-flaky
|
py3-flaky
|
||||||
py3-mongo
|
py3-mongo
|
||||||
|
@ -22,7 +22,7 @@ checkdepends="
|
||||||
py3-redis
|
py3-redis
|
||||||
"
|
"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
options="!check" # most tests are integration with db connections, assume all connectors installed
|
options="!check" # most tests are integration with db connections, assume all connectors installed
|
||||||
source="
|
source="
|
||||||
https://github.com/alisaifee/limits/archive/refs/tags/$pkgver/limits-$pkgver.tar.gz
|
https://github.com/alisaifee/limits/archive/refs/tags/$pkgver/limits-$pkgver.tar.gz
|
||||||
|
|
||||||
|
@ -31,20 +31,25 @@ source="
|
||||||
builddir="$srcdir/limits-$pkgver"
|
builddir="$srcdir/limits-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
pytest \
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest \
|
||||||
-m 'not benchmark and not etcd and not integration and not memcached' \
|
-m 'not benchmark and not etcd and not integration and not memcached' \
|
||||||
-k 'not aio and not Storage and not strategy' -v
|
-k 'not aio and not Storage and not strategy' -v
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
2803dc26b18015e177342ed89e879f4dd680908579c99f9069d695edfa2beb3008b5bc47454ea2120a425bbcbc8a08928ab93a3058b33e11a2ae29431dfd9cd1 limits-3.12.0.tar.gz
|
0a13d08001c2f95e559ac1be35fa8cc178ad2d41bd5bf7b7e85781a428f550c350c21b92942b5b7e45f0f4c0604e96e579c8a26b5e9ca1196e6605608721030a limits-3.13.0.tar.gz
|
||||||
0364d51f9f879b95c6a4a3c9e9fd3d7d1e15ea214c50ae98cd36826b8c0b2d903cf1128741ac83738e305a207dae8955a0b2c8679484d2d6643e334595bdb1d7 our-std-is-good-enough.patch
|
0364d51f9f879b95c6a4a3c9e9fd3d7d1e15ea214c50ae98cd36826b8c0b2d903cf1128741ac83738e305a207dae8955a0b2c8679484d2d6643e334595bdb1d7 our-std-is-good-enough.patch
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,30 +1,33 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=py3-mapbox-earcut
|
pkgname=py3-mapbox-earcut
|
||||||
pkgver=1.0.1
|
pkgver=1.0.1
|
||||||
pkgrel=0
|
pkgrel=2
|
||||||
pkgdesc="Python bindings for the mapbox earcut c++ library"
|
pkgdesc="Python bindings for the mapbox earcut c++ library"
|
||||||
url="https://github.com/skogler/mapbox_earcut_python"
|
url="https://github.com/skogler/mapbox_earcut_python"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
depends="py3-numpy"
|
depends="py3-numpy"
|
||||||
makedepends="py3-setuptools py3-pybind11-dev python3-dev"
|
makedepends="py3-setuptools py3-pybind11-dev python3-dev py3-gpep517"
|
||||||
checkdepends="pytest"
|
checkdepends="py3-pytest"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/skogler/mapbox_earcut_python/archive/refs/tags/v$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/skogler/mapbox_earcut_python/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
builddir="$srcdir/mapbox_earcut_python-$pkgver"
|
builddir="$srcdir/mapbox_earcut_python-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 -m venv --clear --without-pip --system-site-packages test-env
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
test-env/bin/python3 setup.py install
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
test-env/bin/python3 -m pytest
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
pkgname=py3-microdata
|
|
||||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
||||||
_pkgreal=microdata
|
|
||||||
pkgver=0.8.0
|
|
||||||
pkgrel=0
|
|
||||||
pkgdesc="html5lib extension for parsing microdata"
|
|
||||||
url="https://pypi.python.org/project/microdata"
|
|
||||||
license="CC0-1.0"
|
|
||||||
arch="noarch"
|
|
||||||
depends="py3-html5lib"
|
|
||||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/edsu/microdata/archive/refs/tags/v$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
||||||
subpackages="$pkgname-pyc"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
gpep517 build-wheel \
|
|
||||||
--wheel-dir .dist \
|
|
||||||
--output-fd 3 3>&1 >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
||||||
.testenv/bin/python3 -m installer .dist/*.whl
|
|
||||||
.testenv/bin/python3 setup.py test
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 -m installer -d "$pkgdir" \
|
|
||||||
.dist/*.whl
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
e48c8c267f595faec97397fae470a3aa1f4f33d9f4ea7d186f07b104166b373ea768db7d73423aedd28af3e310f6b9fa268d946420c6aed9676d15f38396b07e py3-microdata-0.8.0.tar.gz
|
|
||||||
"
|
|
|
@ -1,34 +1,39 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=py3-numpy-stl
|
pkgname=py3-numpy-stl
|
||||||
pkgver=3.0.1
|
pkgver=3.2.0
|
||||||
pkgrel=2
|
pkgrel=0
|
||||||
pkgdesc="Library for working with STLs"
|
pkgdesc="Library for working with STLs"
|
||||||
url="https://github.com/WoLpH/numpy-stl"
|
url="https://github.com/WoLpH/numpy-stl"
|
||||||
# s390x: no py3-utils
|
# s390x: no py3-utils
|
||||||
arch="noarch !s390x"
|
arch="noarch !s390x"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
depends="python3 py3-utils py3-numpy"
|
depends="python3 py3-utils py3-numpy"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest py3-pytest-cov py3-pygments"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/wolph/numpy-stl/releases/download/v$pkgver/numpy-stl-$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/wolph/numpy-stl/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
builddir="$srcdir/numpy-stl-$pkgver"
|
builddir="$srcdir/numpy-stl-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
# deselected test needs xvfb-run and fails
|
# deselected test needs xvfb-run and fails
|
||||||
pytest \
|
.testenv/bin/python3 -m pytest \
|
||||||
--deselect tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter
|
--deselect tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
d01abb8f54738600ce36c8c44e1392957061030e7accbbfa0352aea4a904323a96712099146b311ce9518f243317c25c47cfb30930469602c0ad439de9f43c5f py3-numpy-stl-3.0.1.tar.gz
|
a08053ed264dbfd629229af3db9c38deed2932b28feced56e2d4c20476f1ba85ddc80881fb82330ea3f4fff9a3f91da20db7447050da5c75f1c04455a67538dc py3-numpy-stl-3.2.0.tar.gz
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
pkgname=py3-pathvalidate
|
pkgname=py3-pathvalidate
|
||||||
pkgver=3.2.0
|
pkgver=3.2.1
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Python library to sanitize/validate a string such as filenames/file-paths/etc"
|
pkgdesc="Python library to sanitize/validate a string such as filenames/file-paths/etc"
|
||||||
url="https://github.com/thombashi/pathvalidate"
|
url="https://github.com/thombashi/pathvalidate"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -11,6 +11,7 @@ depends="python3"
|
||||||
makedepends="
|
makedepends="
|
||||||
py3-gpep517
|
py3-gpep517
|
||||||
py3-setuptools
|
py3-setuptools
|
||||||
|
py3-setuptools_scm
|
||||||
py3-wheel
|
py3-wheel
|
||||||
"
|
"
|
||||||
checkdepends="py3-pytest py3-click py3-faker"
|
checkdepends="py3-pytest py3-click py3-faker"
|
||||||
|
@ -20,6 +21,7 @@ source="https://github.com/thombashi/pathvalidate/archive/refs/tags/v$pkgver/pat
|
||||||
builddir="$srcdir/pathvalidate-$pkgver"
|
builddir="$srcdir/pathvalidate-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
||||||
gpep517 build-wheel \
|
gpep517 build-wheel \
|
||||||
--wheel-dir .dist \
|
--wheel-dir .dist \
|
||||||
--output-fd 3 3>&1 >&2
|
--output-fd 3 3>&1 >&2
|
||||||
|
@ -31,5 +33,5 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
d1b0e49028bc5497558d9a0c15b4e3c301cacb439bebccffc467fc23001854877dbc81a214cc6eb34c5a905a88c4f9394f5865a4de42f354b2450a3bfe10bb9e pathvalidate-3.2.0.tar.gz
|
094bb442258ba58fff11691f5b60976513924443247e808effbc26b9dd6c336f5f84d8e4563643b7def19d9f82170eb9ec6cd89491f9115df8d1634d2aa12206 pathvalidate-3.2.1.tar.gz
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=py3-pivy
|
pkgname=py3-pivy
|
||||||
pkgver=0.6.9_alpha0
|
pkgver=0.6.9
|
||||||
pkgrel=0
|
pkgrel=2
|
||||||
pkgdesc="Python3 bindings for coin"
|
pkgdesc="Python3 bindings for coin"
|
||||||
url="https://github.com/coin3d/pivy"
|
url="https://github.com/coin3d/pivy"
|
||||||
# riscv64 blocked by py3-pyside6
|
# riscv64: blocked by py3-pyside6
|
||||||
arch="all !riscv64"
|
arch="all !riscv64"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
depends="py3-pyside6"
|
depends="py3-pyside6"
|
||||||
|
@ -32,5 +32,5 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
1bfefd58d2921c8be170a97efa30cad53b01f636ea0cf236acca242be4f691669a4c310cd61c64d3e0c55e55e8be96d36945cd244380ddc0b3a06170d0f8b691 py3-pivy-0.6.9_alpha0.tar.gz
|
fd9587c69ad7468b771fbae59e68620f67a3c20850edadd65bf7994c1789d3444feb419e65dce34c6ee897c98eaca9f2f29f0bbfb4d1f0bbde26e4db56f74f78 py3-pivy-0.6.9.tar.gz
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,18 +1,29 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
pkgname=py3-pyinstrument
|
pkgname=py3-pyinstrument
|
||||||
pkgver=4.6.2
|
pkgver=4.7.3
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Call stack profiler for Python"
|
pkgdesc="Call stack profiler for Python"
|
||||||
url="https://github.com/joerick/pyinstrument"
|
url="https://github.com/joerick/pyinstrument"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
makedepends="py3-gpep517 py3-setuptools py3-wheel python3-dev"
|
makedepends="
|
||||||
checkdepends="py3-pytest py3-flaky py3-trio py3-greenlet"
|
py3-gpep517
|
||||||
|
py3-setuptools
|
||||||
|
py3-wheel
|
||||||
|
python3-dev
|
||||||
|
"
|
||||||
|
checkdepends="
|
||||||
|
py3-flaky
|
||||||
|
py3-greenlet
|
||||||
|
py3-pytest
|
||||||
|
py3-pytest-asyncio
|
||||||
|
py3-trio
|
||||||
|
"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/joerick/pyinstrument/archive/refs/tags/v$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/joerick/pyinstrument/archive/refs/tags/v$pkgver.tar.gz"
|
||||||
builddir="$srcdir/pyinstrument-$pkgver"
|
builddir="$srcdir/pyinstrument-$pkgver"
|
||||||
options="!check" # currently not working
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
gpep517 build-wheel \
|
gpep517 build-wheel \
|
||||||
|
@ -21,9 +32,13 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
[ -d "pyinstrument" ] && mv -v pyinstrument pyinstrument.src
|
||||||
|
|
||||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
.testenv/bin/python3 -m installer .dist/*.whl
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
.testenv/bin/python3 -m pytest
|
|
||||||
|
# test_cmdline.py tries to run "pyinstrument" executable
|
||||||
|
PATH="$builddir/.testenv/bin:$PATH" .testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -31,5 +46,5 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
da23988e6c68876cb8920ce284326f349425303ae36718c5c479b72b5f5ca5d48ced1674bcab71851f60e81a0985bb668bfa89a8b96cc20a1faa0dd7e623ec50 py3-pyinstrument-4.6.2.tar.gz
|
24feac08a9726379b749f391bdb6ddbca6d3631cf3515d3ead85ace7a96f213bf60e2cd4d4f3c7cade68b5e481b4bfd562482817befe6322579101a8d91add66 py3-pyinstrument-4.7.3.tar.gz
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
pkgname=py3-pytube
|
|
||||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
||||||
_pkgreal=pytube
|
|
||||||
pkgver=15.0.0
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Python 3 library for downloading YouTube Videos."
|
|
||||||
url="https://pypi.python.org/project/pytube"
|
|
||||||
arch="noarch"
|
|
||||||
license="Unlicense"
|
|
||||||
checkdepends="py3-pytest"
|
|
||||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/pytube/pytube/archive/refs/tags/v$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
||||||
subpackages="$pkgname-pyc"
|
|
||||||
# 7/131 units failing due to:
|
|
||||||
# AttributeError: 'NoneType' object has no attribute 'register_on_progress_callback'
|
|
||||||
# AttributeError: 'YouTube' object has no attribute 'stream_monostate'
|
|
||||||
# StopIteration
|
|
||||||
options="!check"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
gpep517 build-wheel \
|
|
||||||
--wheel-dir .dist \
|
|
||||||
--output-fd 3 3>&1 >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
||||||
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
|
|
||||||
.testenv/bin/python3 -m pytest -v
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 -m installer -d "$pkgdir" \
|
|
||||||
.dist/*.whl
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
fc28d87c56bae9da3def68224a03687cc521c26e6f38dd41abe81e84f91bb2cab73dc8c7dbbc388787cf066f7d7304c78162cc60c544b99e75187b760c64b4a3 py3-pytube-15.0.0.tar.gz
|
|
||||||
"
|
|
|
@ -1,56 +0,0 @@
|
||||||
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
||||||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
||||||
pkgname=py3-rapidjson
|
|
||||||
pkgver=1.12
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Python3 wrapper around RapidJSON"
|
|
||||||
url="https://github.com/python-rapidjson/python-rapidjson"
|
|
||||||
arch="all"
|
|
||||||
license="MIT"
|
|
||||||
depends="
|
|
||||||
python3
|
|
||||||
"
|
|
||||||
makedepends="
|
|
||||||
py3-gpep517
|
|
||||||
py3-setuptools
|
|
||||||
py3-wheel
|
|
||||||
python3-dev
|
|
||||||
rapidjson-dev
|
|
||||||
"
|
|
||||||
checkdepends="
|
|
||||||
py3-pytest
|
|
||||||
py3-tz
|
|
||||||
"
|
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/python-rapidjson/python-rapidjson/archive/refs/tags/v$pkgver.tar.gz"
|
|
||||||
builddir="$srcdir/"python-rapidjson-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
default_prepare
|
|
||||||
|
|
||||||
# workaround setup.py complaining about "sources not found"
|
|
||||||
mkdir -v rapidjson/include
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
gpep517 build-wheel \
|
|
||||||
--wheel-dir .dist \
|
|
||||||
--output-fd 3 3>&1 >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
PYTHONPATH="$(echo "$PWD"/build/lib.linux*)" pytest \
|
|
||||||
--ignore benchmarks \
|
|
||||||
--deselect tests/test_base_types.py::test_base_values \
|
|
||||||
--deselect tests/test_unicode.py::test_unicode_decode_error \
|
|
||||||
--deselect tests/test_validator.py::test_additional_and_pattern_properties_valid \
|
|
||||||
#
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 -m installer -d "$pkgdir" \
|
|
||||||
.dist/*.whl
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
15d021491c64db53352830d8f3f62c8b48476fcb001f97c174bcbb9053d973eb135ceb92f14290a58f6ad6c5dfb24d02f6385c8cad70f4a74f5a5726aa0728e7 py3-rapidjson-1.12.tar.gz
|
|
||||||
"
|
|
|
@ -3,7 +3,7 @@
|
||||||
pkgname=py3-rtree
|
pkgname=py3-rtree
|
||||||
_pkgname=rtree
|
_pkgname=rtree
|
||||||
pkgver=1.1.0
|
pkgver=1.1.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Python3 library for r-tree spatial index (wrapper for libspatialindex)"
|
pkgdesc="Python3 library for r-tree spatial index (wrapper for libspatialindex)"
|
||||||
url="https://pypi.org/project/Rtree/"
|
url="https://pypi.org/project/Rtree/"
|
||||||
# s390x: Test failed: IndexSerialization::test_interleaving - AssertionError
|
# s390x: Test failed: IndexSerialization::test_interleaving - AssertionError
|
||||||
|
@ -11,22 +11,27 @@ url="https://pypi.org/project/Rtree/"
|
||||||
arch="noarch !s390x"
|
arch="noarch !s390x"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="python3 libspatialindex-dev"
|
depends="python3 libspatialindex-dev"
|
||||||
makedepends="py3-setuptools py3-wheel"
|
makedepends="py3-setuptools py3-wheel py3-gpep517"
|
||||||
checkdepends="py3-pytest py3-numpy"
|
checkdepends="py3-pytest py3-numpy"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Toblerity/rtree/archive/$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Toblerity/rtree/archive/$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 -m pytest -v --doctest-modules rtree tests
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest -v --doctest-modules rtree tests
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
pkgname=py3-svgpath
|
pkgname=py3-svgpath
|
||||||
pkgver=6.3
|
pkgver=6.3
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="SVG path and object parser"
|
pkgdesc="SVG path and object parser"
|
||||||
url="https://github.com/regebro/svg.path"
|
url="https://github.com/regebro/svg.path"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -12,7 +13,8 @@ checkdepends="py3-pytest py3-pillow"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/regebro/svg.path/archive/refs/tags/$pkgver.tar.gz
|
source="$pkgname-$pkgver.tar.gz::https://github.com/regebro/svg.path/archive/refs/tags/$pkgver.tar.gz
|
||||||
105_use-better-than-nothing-font.patch
|
105_use-better-than-nothing-font.patch
|
||||||
no-install-tests.patch"
|
no-install-tests.patch
|
||||||
|
"
|
||||||
builddir="$srcdir/svg.path-$pkgver"
|
builddir="$srcdir/svg.path-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -22,7 +24,9 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH=build/lib pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=py3-trimesh
|
pkgname=py3-trimesh
|
||||||
pkgver=3.22.1
|
pkgver=3.22.1
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Python library for working with triangular meshes"
|
pkgdesc="Python library for working with triangular meshes"
|
||||||
url="https://github.com/mikedh/trimesh"
|
url="https://github.com/mikedh/trimesh"
|
||||||
# x86, armhf, armv7 Tests fail on int64 to int32 casts on these arches
|
# x86, armhf, armv7 Tests fail on int64 to int32 casts on these arches
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
||||||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
||||||
pkgname=py3-utils
|
|
||||||
_pkgname=python-utils
|
|
||||||
pkgver=3.8.1
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="Convenient utilities not included with the standard Python install"
|
|
||||||
url="https://github.com/WoLpH/python-utils"
|
|
||||||
arch="noarch"
|
|
||||||
license="BSD-3-Clause"
|
|
||||||
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
||||||
checkdepends="py3-pytest py3-pytest-asyncio py3-loguru"
|
|
||||||
subpackages="$pkgname-pyc"
|
|
||||||
source="
|
|
||||||
https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
||||||
|
|
||||||
fix-setuptools-deprecation.patch
|
|
||||||
pytest.patch
|
|
||||||
typing-ext.patch
|
|
||||||
"
|
|
||||||
|
|
||||||
builddir="$srcdir/$_pkgname-$pkgver"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
gpep517 build-wheel \
|
|
||||||
--wheel-dir .dist \
|
|
||||||
--output-fd 3 3>&1 >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
||||||
.testenv/bin/python3 -m installer .dist/*.whl
|
|
||||||
.testenv/bin/python3 -m pytest
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
python3 -m installer -d "$pkgdir" \
|
|
||||||
.dist/*.whl
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
ccba9651cc99a8f4e3f13e7ff66a43a40d2e85bc735b6246524269495ff321225a0dcad9abd03ca9cb61b4b1b35a27009fac3fe87e3f748ffc5c87a956acd335 python-utils-3.8.1.tar.gz
|
|
||||||
c001453b958b8231806ef6a04fcd21e1d252eeec36d4e6cbfce35f0662bae76c3f7484e0e8ff06d68a3e9cc7d19c9cdbf792c13e0101c580bb5e8de9d837fde7 fix-setuptools-deprecation.patch
|
|
||||||
99cc91ad155f8140aedc9420659c0e560a4d816ac1f85468ddb3a9fdc87526d591da916441d63b601146a86fb2c26f61c9dfbe37e31b86ee605f732e24e7b465 pytest.patch
|
|
||||||
d68943e3301eaafe2a9ea27f382a2eba1ce98149d8cbbe91aa9222cf76a8f7bebba3d9dbfced54bd88c90688a6e18373f011fbb83cd36cbf2ecd3e36b034aa22 typing-ext.patch
|
|
||||||
"
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- a/setup.cfg
|
|
||||||
+++ b/setup.cfg
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
test = pytest
|
|
||||||
|
|
||||||
[metadata]
|
|
||||||
-description-file = README.rst
|
|
||||||
+description_file = README.rst
|
|
||||||
|
|
||||||
[nosetests]
|
|
||||||
verbosity = 3
|
|
|
@ -1,14 +0,0 @@
|
||||||
diff --git a/pytest.ini b/pytest.ini
|
|
||||||
index a8e632a..e28ed7d 100644
|
|
||||||
--- a/pytest.ini
|
|
||||||
+++ b/pytest.ini
|
|
||||||
@@ -5,9 +5,6 @@ python_files =
|
|
||||||
|
|
||||||
addopts =
|
|
||||||
--doctest-modules
|
|
||||||
- --cov python_utils
|
|
||||||
- --cov-report term-missing
|
|
||||||
-; --mypy
|
|
||||||
|
|
||||||
doctest_optionflags =
|
|
||||||
ALLOW_UNICODE
|
|
|
@ -1,22 +0,0 @@
|
||||||
diff --git a/python_utils/types.py b/python_utils/types.py
|
|
||||||
index 01c319a..79ef950 100644
|
|
||||||
--- a/python_utils/types.py
|
|
||||||
+++ b/python_utils/types.py
|
|
||||||
@@ -1,7 +1,6 @@
|
|
||||||
# pyright: reportWildcardImportFromLibrary=false
|
|
||||||
import datetime
|
|
||||||
import decimal
|
|
||||||
-from typing_extensions import * # type: ignore # noqa: F403
|
|
||||||
from typing import * # type: ignore # pragma: no cover # noqa: F403
|
|
||||||
from types import * # type: ignore # pragma: no cover # noqa: F403
|
|
||||||
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -29,7 +29,6 @@
|
|
||||||
),
|
|
||||||
package_data={'python_utils': ['py.typed']},
|
|
||||||
long_description=long_description,
|
|
||||||
- install_requires=['typing_extensions>3.10.0.2'],
|
|
||||||
tests_require=['pytest'],
|
|
||||||
extras_require={
|
|
||||||
'loguru': [
|
|
|
@ -1,14 +1,15 @@
|
||||||
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
pkgname=signal-desktop
|
pkgname=signal-desktop
|
||||||
pkgver=7.9.0
|
pkgver=7.34.0
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="A messaging app for simple private communication with friends"
|
pkgdesc="A messaging app for simple private communication with friends"
|
||||||
url="https://github.com/signalapp/Signal-Desktop/"
|
url="https://github.com/signalapp/Signal-Desktop/"
|
||||||
# same as electron
|
# same as electron
|
||||||
# build failure
|
arch="aarch64 x86_64"
|
||||||
#arch="aarch64 x86_64"
|
|
||||||
license="AGPL-3.0-only"
|
license="AGPL-3.0-only"
|
||||||
|
_llvmver=18
|
||||||
depends="
|
depends="
|
||||||
electron
|
electron
|
||||||
font-barlow
|
font-barlow
|
||||||
|
@ -24,7 +25,7 @@ makedepends="
|
||||||
cargo
|
cargo
|
||||||
cargo-auditable
|
cargo-auditable
|
||||||
cbindgen
|
cbindgen
|
||||||
clang-dev
|
clang$_llvmver-dev
|
||||||
cmake
|
cmake
|
||||||
crc32c-dev
|
crc32c-dev
|
||||||
dav1d-dev
|
dav1d-dev
|
||||||
|
@ -43,8 +44,9 @@ makedepends="
|
||||||
libsecret-dev
|
libsecret-dev
|
||||||
libvpx-dev
|
libvpx-dev
|
||||||
libwebp-dev
|
libwebp-dev
|
||||||
lld
|
libxml2-dev
|
||||||
llvm-dev
|
lld$_llvmver
|
||||||
|
llvm$_llvmver-dev
|
||||||
mesa-dev
|
mesa-dev
|
||||||
nodejs
|
nodejs
|
||||||
npm
|
npm
|
||||||
|
@ -63,34 +65,26 @@ makedepends="
|
||||||
"
|
"
|
||||||
options="net !check"
|
options="net !check"
|
||||||
|
|
||||||
# follow signal-desktop package.json -> @signalapp/libsignal-client
|
# use _check_depends to validate this
|
||||||
_libsignalver=0.45.0
|
_libsignalver=0.60.2
|
||||||
|
_ringrtcver=2.48.7
|
||||||
# follow signal-desktop package.json -> @signalapp/ringrtc
|
_webrtcver=6723a
|
||||||
_ringrtcver=2.41.0
|
|
||||||
|
|
||||||
# follow ringrtc (on version above) -> config/version.properties -> webrtc.version
|
|
||||||
# downloading tarball generated with abuild snapshot (with gclient dependencies fetched)
|
|
||||||
_webrtcver=6261g
|
|
||||||
|
|
||||||
# follow @signalapp/better-sqlite3 (on version in package.json) -> deps/download.js -> TOKENIZER_VERSION
|
|
||||||
# last bsqlite version: 8.7.1
|
|
||||||
_stokenizerver=0.2.1
|
_stokenizerver=0.2.1
|
||||||
|
|
||||||
source="
|
source="
|
||||||
https://github.com/signalapp/Signal-Desktop/archive/refs/tags/v$pkgver/Signal-Desktop-$pkgver.tar.gz
|
https://github.com/signalapp/Signal-Desktop/archive/refs/tags/v$pkgver/Signal-Desktop-$pkgver.tar.gz
|
||||||
https://github.com/signalapp/libsignal/archive/refs/tags/v$_libsignalver/libsignal-$_libsignalver.tar.gz
|
https://github.com/signalapp/libsignal/archive/refs/tags/v$_libsignalver/libsignal-$_libsignalver.tar.gz
|
||||||
https://github.com/signalapp/ringrtc/archive/refs/tags/v$_ringrtcver/ringrtc-$_ringrtcver.tar.gz
|
https://github.com/signalapp/ringrtc/archive/refs/tags/v$_ringrtcver/ringrtc-$_ringrtcver.tar.gz
|
||||||
https://ab-sn.lnl.gay/webrtc-$_webrtcver.tar.zst
|
https://ayakael.net/api/packages/mirrors/generic/webrtc/$_webrtcver/webrtc-$_webrtcver.tar.zst
|
||||||
https://github.com/signalapp/Signal-FTS5-Extension/archive/refs/tags/v$_stokenizerver/stokenizer-$_stokenizerver.tar.gz
|
https://github.com/signalapp/Signal-FTS5-Extension/archive/refs/tags/v$_stokenizerver/stokenizer-$_stokenizerver.tar.gz
|
||||||
|
|
||||||
bettersqlite-use-system-sqlcipher.patch
|
|
||||||
libsignal-auditable.patch
|
libsignal-auditable.patch
|
||||||
|
signal-use-system-sqlcipher.patch
|
||||||
signal-disable-updates.patch
|
signal-disable-updates.patch
|
||||||
signal-update-links.patch
|
signal-update-links.patch
|
||||||
signal-show-window-please.patch
|
signal-show-window-please.patch
|
||||||
ringrtc-webrtc-renamed.patch
|
ringrtc-webrtc-renamed.patch
|
||||||
webrtc-shared-like-my-wife.patch
|
webrtc-shared-libs.patch
|
||||||
webrtc-compiler.patch
|
webrtc-compiler.patch
|
||||||
webrtc-gcc13.patch
|
webrtc-gcc13.patch
|
||||||
|
|
||||||
|
@ -118,6 +112,26 @@ export CARGO_PROFILE_RELEASE_STRIP="symbols"
|
||||||
|
|
||||||
export YARN_CACHE_FOLDER="$srcdir/.yarn"
|
export YARN_CACHE_FOLDER="$srcdir/.yarn"
|
||||||
|
|
||||||
|
_check_depends() {
|
||||||
|
# _libsignalver: follow signal-desktop package.json -> @signalapp/libsignal-client
|
||||||
|
# _ringrtcver: follow signal-desktop package.json -> @signalapp/ringrtc
|
||||||
|
# _webrtcver: follow ringrtc (on version above) -> config/version.properties -> webrtc.version
|
||||||
|
# downloading tarball generated with abuild snapshot (with gclient dependencies fetched)
|
||||||
|
# _stokenizerver: follow @signalapp/better-sqlite3 (on version in package.json) -> deps/download.js -> TOKENIZER_VERSION
|
||||||
|
|
||||||
|
local _libsignalver=$(curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/v$pkgver/package-lock.json | grep "@signalapp/libsignal-client\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1)
|
||||||
|
local _ringrtcver=$(curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/v$pkgver/package-lock.json | grep "@signalapp/ringrtc\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1)
|
||||||
|
local _bsqlitever=$(curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/v$pkgver/package-lock.json | grep "@signalapp/better-sqlite3\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1)
|
||||||
|
local _webrtcver=$(curl --silent https://raw.githubusercontent.com/signalapp/ringrtc/v$_ringrtcver/config/version.properties | awk -F '=' '{if($1 == "webrtc.version"){print $2}}' | head -n 1)
|
||||||
|
local _extensionver=$(curl --silent https://raw.githubusercontent.com/signalapp/better-sqlite3/v$_bsqlitever/deps/download.js | grep "const EXTENSION_VERSION" | awk '{print $4}' | tr -d "'" | tr -d ';' | head -n 1)
|
||||||
|
local _stokenizerver=$(curl --silent https://raw.githubusercontent.com/signalapp/Signal-Sqlcipher-Extension/refs/tags/v$_extensionver/Cargo.lock | sed -n "/^name = \"signal-tokenizer\"$/,/^$/p" | awk -F ' = ' '{if($1=="version"){print $2}}' | tr -d '"')
|
||||||
|
|
||||||
|
echo _libsignalver=$_libsignalver
|
||||||
|
echo _ringrtcver=$_ringrtcver
|
||||||
|
echo _webrtcver=$_webrtcver
|
||||||
|
echo _stokenizerver=$_stokenizerver
|
||||||
|
}
|
||||||
|
|
||||||
# webrtc only, the other dependencies are fine with tarballs
|
# webrtc only, the other dependencies are fine with tarballs
|
||||||
_distbucket="sakamoto/lnl-aports-snapshots/"
|
_distbucket="sakamoto/lnl-aports-snapshots/"
|
||||||
snapshot() {
|
snapshot() {
|
||||||
|
@ -167,39 +181,19 @@ target_cpu_only = True
|
||||||
mcli cp "$SRCDEST"/webrtc-$_webrtcver.tar.zst "$_distbucket"
|
mcli cp "$SRCDEST"/webrtc-$_webrtcver.tar.zst "$_distbucket"
|
||||||
}
|
}
|
||||||
|
|
||||||
# manual patches
|
|
||||||
default_prepare() { :; }
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
default_prepare
|
# Moves to builddir to use abuild patch logics
|
||||||
msg "Applying patches"
|
for i in libsignal-$_libsignalver ringrtc-$_ringrtcver webrtc-$_webrtcver Signal-FTS5-Extension-$_stokenizerver; do
|
||||||
for x in $source; do
|
mv "$srcdir"/$i "$builddir"/${i%-*}
|
||||||
case "$x" in
|
|
||||||
signal-*.patch)
|
|
||||||
msg "$x"
|
|
||||||
patch -p1 -i "$srcdir"/$x -d "$srcdir"/Signal-Desktop-$pkgver
|
|
||||||
;;
|
|
||||||
libsignal-*.patch)
|
|
||||||
msg "$x"
|
|
||||||
patch -p1 -i "$srcdir"/$x -d "$srcdir"/libsignal-$_libsignalver
|
|
||||||
;;
|
|
||||||
ringrtc-*.patch)
|
|
||||||
msg "$x"
|
|
||||||
patch -p1 -i "$srcdir"/$x -d "$srcdir"/ringrtc-$_ringrtcver
|
|
||||||
;;
|
|
||||||
webrtc-*.patch)
|
|
||||||
msg "$x"
|
|
||||||
patch -p1 -i "$srcdir"/$x -d "$srcdir"/webrtc-$_webrtcver
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
done
|
||||||
|
|
||||||
msg "Installing signal-desktop JS dependencies"
|
msg "Installing signal-desktop JS dependencies"
|
||||||
echo 'ignore-engines true' > .yarnrc
|
npm ci --ignore-scripts
|
||||||
yarn --ignore-scripts --frozen-lockfile
|
|
||||||
|
default_prepare
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/webrtc-$_webrtcver
|
cd "$builddir"/webrtc
|
||||||
|
|
||||||
local use_system="
|
local use_system="
|
||||||
brotli
|
brotli
|
||||||
|
@ -239,6 +233,7 @@ prepare() {
|
||||||
\! -path "*third_party/$_lib/google/*" \
|
\! -path "*third_party/$_lib/google/*" \
|
||||||
\! -path './base/third_party/icu/*' \
|
\! -path './base/third_party/icu/*' \
|
||||||
\! -path './third_party/libxml/*' \
|
\! -path './third_party/libxml/*' \
|
||||||
|
\! -path './third_party/re2/*' \
|
||||||
\! -path './third_party/pdfium/third_party/freetype/include/pstables.h' \
|
\! -path './third_party/pdfium/third_party/freetype/include/pstables.h' \
|
||||||
\! -path './third_party/harfbuzz-ng/utils/hb_scoped.h' \
|
\! -path './third_party/harfbuzz-ng/utils/hb_scoped.h' \
|
||||||
\! -path './third_party/crashpad/crashpad/third_party/zlib/zlib_crashpad.h' \
|
\! -path './third_party/crashpad/crashpad/third_party/zlib/zlib_crashpad.h' \
|
||||||
|
@ -259,35 +254,35 @@ prepare() {
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/ringrtc-$_ringrtcver/src/rust
|
cd "$builddir"/ringrtc/src/rust
|
||||||
|
|
||||||
msg "Installing ringrtc rust dependencies"
|
msg "Installing ringrtc rust dependencies"
|
||||||
cargo fetch --target="$CTARGET" --locked
|
cargo fetch --target="$CTARGET" --locked
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/libsignal-$_libsignalver
|
cd "$builddir"/libsignal
|
||||||
|
|
||||||
msg "Installing libsignal rust dependencies"
|
msg "Installing libsignal rust dependencies"
|
||||||
cargo fetch --target="$CTARGET" --locked
|
cargo fetch --target="$CTARGET" --locked
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/Signal-FTS5-Extension-$_stokenizerver
|
cd "$builddir"/Signal-FTS5-Extension
|
||||||
|
|
||||||
msg "Installing signal tokenizer rust dependencies"
|
msg "Installing signal tokenizer rust dependencies"
|
||||||
cargo fetch --target="$CTARGET" --locked
|
cargo fetch --target="$CTARGET" --locked
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/ringrtc-$_ringrtcver/src/node
|
cd "$builddir"/ringrtc/src/node
|
||||||
|
|
||||||
msg "Installing ringrtc js dependencies"
|
msg "Installing ringrtc js dependencies"
|
||||||
yarn --frozen-lockfile --ignore-scripts
|
npm ci --ignore-scripts
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/libsignal-$_libsignalver/node
|
cd "$builddir"/libsignal/node
|
||||||
|
|
||||||
# fix target
|
# fix target
|
||||||
sed -i 's/unknown-linux-gnu/alpine-linux-musl/g' binding.gyp
|
sed -i 's/unknown-linux-gnu/alpine-linux-musl/g' binding.gyp
|
||||||
|
@ -305,7 +300,7 @@ build() {
|
||||||
|
|
||||||
# required dependency of ringrtc
|
# required dependency of ringrtc
|
||||||
(
|
(
|
||||||
cd "$srcdir"/webrtc-$_webrtcver
|
cd "$builddir"/webrtc
|
||||||
export PATH="$PWD/path:$PATH"
|
export PATH="$PWD/path:$PATH"
|
||||||
|
|
||||||
# shellcheck disable=2089
|
# shellcheck disable=2089
|
||||||
|
@ -337,18 +332,18 @@ build() {
|
||||||
use_lld=true
|
use_lld=true
|
||||||
use_sysroot=false
|
use_sysroot=false
|
||||||
"
|
"
|
||||||
mkdir -p "$srcdir"/ringrtc-$_ringrtcver/out/release
|
mkdir -p "$builddir"/ringrtc/out/release
|
||||||
msg "Building signal's webrtc"
|
msg "Building signal's webrtc"
|
||||||
# shellcheck disable=2090,2116
|
# shellcheck disable=2090,2116
|
||||||
gn gen "$srcdir"/ringrtc-$_ringrtcver/out/release --args="$(echo $webrtc_args)"
|
gn gen "$builddir"/ringrtc/out/release --args="$(echo $webrtc_args)"
|
||||||
ninja -C "$srcdir"/ringrtc-$_ringrtcver/out/release signaldeswebrtc
|
ninja -C "$builddir"/ringrtc/out/release signaldeswebrtc
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/ringrtc-$_ringrtcver
|
cd "$builddir"/ringrtc
|
||||||
|
|
||||||
msg "Building libringrtc"
|
msg "Building libringrtc"
|
||||||
OUTPUT_DIR="$srcdir"/ringrtc-$_ringrtcver/out \
|
OUTPUT_DIR="$builddir"/ringrtc/out \
|
||||||
cargo auditable build --features electron --release -p ringrtc
|
cargo auditable build --features electron --release -p ringrtc
|
||||||
|
|
||||||
mkdir -p src/node/build/linux
|
mkdir -p src/node/build/linux
|
||||||
|
@ -357,34 +352,34 @@ build() {
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/ringrtc-$_ringrtcver/src/node
|
cd "$builddir"/ringrtc/src/node
|
||||||
msg "Building ringrtc JS glue code"
|
msg "Building ringrtc JS glue code"
|
||||||
yarn build
|
npm run build
|
||||||
|
|
||||||
msg "Cleaning dev dependencies for ringrtc"
|
msg "Cleaning dev dependencies for ringrtc"
|
||||||
yarn --ignore-scripts --frozen-lockfile --production
|
npm prune --ignore-scripts --omit=dev
|
||||||
)
|
)
|
||||||
|
|
||||||
# module on npm intentionally unbuildable: https://github.com/signalapp/libsignal/issues/464#issuecomment-1160665052
|
# module on npm intentionally unbuildable: https://github.com/signalapp/libsignal/issues/464#issuecomment-1160665052
|
||||||
(
|
(
|
||||||
cd "$srcdir"/libsignal-$_libsignalver/node
|
cd "$builddir"/libsignal/node
|
||||||
|
|
||||||
msg "Building libsignal"
|
msg "Building libsignal"
|
||||||
yarn node-gyp configure --nodedir=/usr/include/electron/node_headers --build-from-source
|
node-gyp configure --nodedir=/usr/include/electron/node_headers --build-from-source
|
||||||
yarn node-gyp build --nodedir=/usr/include/electron/node_headers --build-from-source
|
node-gyp build --nodedir=/usr/include/electron/node_headers --build-from-source
|
||||||
|
|
||||||
mkdir -p prebuilds/linux-$chromium_arch
|
mkdir -p prebuilds/linux-$chromium_arch
|
||||||
mv build/Release/libsignal_client_linux_$chromium_arch.node prebuilds/linux-$chromium_arch/node.napi.node
|
mv build/Release/libsignal_client_linux_$chromium_arch.node prebuilds/linux-$chromium_arch/node.napi.node
|
||||||
|
|
||||||
msg "Building libsignal glue code"
|
msg "Building libsignal glue code"
|
||||||
yarn tsc
|
npm run tsc
|
||||||
|
|
||||||
msg "Cleaning dev dependencies for libsignal"
|
msg "Cleaning dev dependencies for libsignal"
|
||||||
yarn --ignore-scripts --frozen-lockfile --production
|
npm prune -ignore-scripts --omit=dev
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$srcdir"/Signal-FTS5-Extension-$_stokenizerver
|
cd "$builddir"/Signal-FTS5-Extension
|
||||||
|
|
||||||
msg "Building signal tokenizer"
|
msg "Building signal tokenizer"
|
||||||
cargo auditable build --features extension --release --frozen
|
cargo auditable build --features extension --release --frozen
|
||||||
|
@ -392,8 +387,8 @@ build() {
|
||||||
)
|
)
|
||||||
|
|
||||||
# from package.json postinstall
|
# from package.json postinstall
|
||||||
yarn build:acknowledgments
|
npm run build:acknowledgments
|
||||||
yarn patch-package
|
npm exec patch-package
|
||||||
rm -rf node_modules/dtrace-provider
|
rm -rf node_modules/dtrace-provider
|
||||||
|
|
||||||
# get esbuild installed (needed for next step)
|
# get esbuild installed (needed for next step)
|
||||||
|
@ -403,42 +398,22 @@ build() {
|
||||||
NODE_ENV=production \
|
NODE_ENV=production \
|
||||||
SIGNAL_ENV=production \
|
SIGNAL_ENV=production \
|
||||||
NODE_OPTIONS=--openssl-legacy-provider \
|
NODE_OPTIONS=--openssl-legacy-provider \
|
||||||
yarn build:dev
|
npm run build:dev
|
||||||
|
|
||||||
# purge non-production deps
|
# purge non-production deps
|
||||||
yarn install --ignore-scripts --frozen-lockfile --production
|
npm prune --ignore-scripts --omit=dev
|
||||||
|
|
||||||
# XXX: the previous step undoes the patches. and removes the patch applier.
|
|
||||||
# please force me to just implement packaging without dev modules in tasje. -lnl
|
|
||||||
for x in patches/*.patch; do
|
|
||||||
# some of these patches are made for devDependencies
|
|
||||||
if [ -d "$(grep -Eo 'node_modules/(@[a-z\d_-]+/)?[a-z\d_-]+/' "$x" | head -n1)" ]; then
|
|
||||||
msg "$x"
|
|
||||||
patch -Np1 -i ./"$x"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# use our libsignal
|
# use our libsignal
|
||||||
rm -rf node_modules/@signalapp/libsignal-client/
|
rm -rf node_modules/@signalapp/libsignal-client/
|
||||||
mv "$srcdir"/libsignal-$_libsignalver/node/ node_modules/@signalapp/libsignal-client
|
mv libsignal/node/ node_modules/@signalapp/libsignal-client
|
||||||
|
|
||||||
# use our libringrtc
|
# use our libringrtc
|
||||||
rm -rf node_modules/@signalapp/ringrtc/
|
rm -rf node_modules/@signalapp/ringrtc/
|
||||||
mv "$srcdir"/ringrtc-$_ringrtcver/src/node/ node_modules/@signalapp/ringrtc
|
mv ringrtc/src/node/ node_modules/@signalapp/ringrtc
|
||||||
|
|
||||||
# patch the sqlcipher module
|
|
||||||
for x in $source; do
|
|
||||||
case "$x" in
|
|
||||||
bettersqlite-*.patch)
|
|
||||||
msg "$x"
|
|
||||||
patch -Np1 -i "$srcdir"/$x -d "$srcdir"/Signal-Desktop-$pkgver/node_modules/@signalapp/better-sqlite3/
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir node_modules/@signalapp/better-sqlite3/tokenizer
|
mkdir node_modules/@signalapp/better-sqlite3/tokenizer
|
||||||
mv "$srcdir"/Signal-FTS5-Extension-$_stokenizerver/target/release/libsignal_tokenizer.a node_modules/@signalapp/better-sqlite3/tokenizer/
|
mv Signal-FTS5-Extension/target/release/libsignal_tokenizer.a node_modules/@signalapp/better-sqlite3/tokenizer/
|
||||||
mv "$srcdir"/Signal-FTS5-Extension-$_stokenizerver/target/release/signal-tokenizer.h node_modules/@signalapp/better-sqlite3/tokenizer/
|
mv Signal-FTS5-Extension/target/release/signal-tokenizer.h node_modules/@signalapp/better-sqlite3/tokenizer/
|
||||||
|
|
||||||
npm rebuild \
|
npm rebuild \
|
||||||
sharp @signalapp/better-sqlite3 spellchecker websocket \
|
sharp @signalapp/better-sqlite3 spellchecker websocket \
|
||||||
|
@ -451,7 +426,7 @@ build() {
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
# tests run against downloaded build of electron for glibc, probably can be patched
|
# tests run against downloaded build of electron for glibc, probably can be patched
|
||||||
yarn test
|
npm run test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -462,9 +437,9 @@ package() {
|
||||||
install -Dm644 signal.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
install -Dm644 signal.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
||||||
|
|
||||||
# this should be in /usr/lib/signal-desktop. however, it does not simply work and I stopped to care
|
# this should be in /usr/lib/signal-desktop. however, it does not simply work and I stopped to care
|
||||||
install -Dm755 "$srcdir"/ringrtc-$_ringrtcver/out/release/libsignaldeswebrtc.so "$pkgdir"/usr/lib/libsignaldeswebrtc.so
|
install -Dm755 "$builddir"/ringrtc/out/release/libsignaldeswebrtc.so "$pkgdir"/usr/lib/libsignaldeswebrtc.so
|
||||||
|
|
||||||
install -Dm755 "$srcdir"/$pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 "$srcdir"/signal-desktop "$pkgdir"/usr/bin/signal-desktop
|
||||||
|
|
||||||
while read -r size; do
|
while read -r size; do
|
||||||
install -Dm644 icons/$size.png "$pkgdir"/usr/share/icons/hicolor/$size/apps/$pkgname.png
|
install -Dm644 icons/$size.png "$pkgdir"/usr/share/icons/hicolor/$size/apps/$pkgname.png
|
||||||
|
@ -472,19 +447,19 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
53ef9feccdbe1c52eee88d2e2ed337746dcaf0fd18ee0d462ba3faaef02b38e9ba7269857e975f241c719d6750ce01fc42b0d90bbd9ef7bbee14b9b4540adbb8 Signal-Desktop-7.9.0.tar.gz
|
30e06721b01e580414c5e57b63350fc42edbe837b0a60a9cd100bc6ab1758fa6fd5744dc3a35d991db62f363eab791c45b43e1d9d5c81af9e67685114ae2e630 Signal-Desktop-7.34.0.tar.gz
|
||||||
70f2cb7d05e019235cd044c401bcf072a934fdfea4a161ef5be988d2e3932ba5233110b4b06525e6f33ea9cad036def442e70adad15eab883903d9246969896e libsignal-0.45.0.tar.gz
|
26780a0a6a529cee18f5c3b58f0395c6b5b630dbc8d2bbaa345dd7dd319a0e8548575c915dc16de6ac5d421fffdbe898f2dedb1fa3b4eab5d26debdfc1da515b libsignal-0.60.2.tar.gz
|
||||||
3adccc33d4efa29e003175d0e00cceb169426a73f467ea32406e9cd721c72aeaa45a7816985e484b8adceb2de2a6405f306f6d609b43a25c950b18dd49a14476 ringrtc-2.41.0.tar.gz
|
e5e5ab27dc3bd37ef577c248d450e70fa11e72bdfab00fef233aad84d3d8aa3434166c03267f6b95b69d593e9da2f37017b5b7a0913f68499f387354742ba50a ringrtc-2.48.7.tar.gz
|
||||||
6dc8c709986816e724a57d056a165cf72db70644593e8de8e3026e511d1f8f3d6d5e171d500cfabe760309c5a81795b667b4399c9885be30163d326cbc82c1b4 webrtc-6261g.tar.zst
|
64eed5c2a6f5a505d014bc4fa80e15b21103df1ea27825eaa1dfecc23c269f198a7e98472f29de7cae4ac7fa4fede6e837c27494b8ec4d03e36b85b029c64831 webrtc-6723a.tar.zst
|
||||||
84a1f2fc29262a12842e94698d124a85b823128e72a493b0be8ea92fbb72c5c268499f4a6827cdedaae06ec73cce4039a39fe5c5d536cbef330e59ba0183da28 stokenizer-0.2.1.tar.gz
|
84a1f2fc29262a12842e94698d124a85b823128e72a493b0be8ea92fbb72c5c268499f4a6827cdedaae06ec73cce4039a39fe5c5d536cbef330e59ba0183da28 stokenizer-0.2.1.tar.gz
|
||||||
be5b4e823543b79175a12314f10c6326d9f0d59f470136962daed4665887006acc05b48b40dc1b67747396d8f6f7d23be298c1e110ccdd35ff9b09d5e6b80bab bettersqlite-use-system-sqlcipher.patch
|
8d2d2d82c8546c2dd1fef161b61df79918f8c22235a56a46adb375a0beb4acef12c5fe53e67242a4be97f77adc522ff79b47949c352956c742a70d50f4179f7f libsignal-auditable.patch
|
||||||
92de6fc7cc5f2b6d65bedbd74cc733dd86dafc9cbfb9b727c3267aef63a71a07247cde9b163c68fddfeb9096dcd7f554d36d0b2de078d8905e3825645ddbd6eb libsignal-auditable.patch
|
cee74edb504ee5ae685e8a449ac35fabf949c33bfee5905778f850c3b18e17f9ae9bd501c89a7fd2c9c81a5bb2b0af0c0b3c72e32128603b3923c32d2a493ce9 signal-use-system-sqlcipher.patch
|
||||||
152435231cdcf52a17a9e24aadf95d77511258e818172941ba074a73a90a541f0136feb58868674f2bcb19191a6d12933fe6cd5baf3ee99e508915c72523163b signal-disable-updates.patch
|
152435231cdcf52a17a9e24aadf95d77511258e818172941ba074a73a90a541f0136feb58868674f2bcb19191a6d12933fe6cd5baf3ee99e508915c72523163b signal-disable-updates.patch
|
||||||
d50eb5724502df9ea4d795db8cfc27af767c25168d7db2af512e615be7cc2ca290210a9ae78e1abb153c0198677e858ad3d74926c958099d0319295e7d9e7f1d signal-update-links.patch
|
d50eb5724502df9ea4d795db8cfc27af767c25168d7db2af512e615be7cc2ca290210a9ae78e1abb153c0198677e858ad3d74926c958099d0319295e7d9e7f1d signal-update-links.patch
|
||||||
646d303fe58cae3f0896ae0275a66695b902fae6ddde7c568cc9798157dee9f45ceff907bc951fadc4c511d512a73d114b4e4f7c8914e2311c63929d29e1621a signal-show-window-please.patch
|
bfc8acdd13aa48d29c7657311733cc9d33c4899782efbd1ef6d25ad1698be4de7cc67e829324bc0309715d69ae37ea9f782cf54887317e817213e110d73d68e7 signal-show-window-please.patch
|
||||||
ab51b8fdcda1d8811213d2c5d8cb5d8457b478a02e23ce40f36b38ec56d45a3bd7a2d184720c27046f98a27771551cfad93c1290fe93856cc02695d318b33e47 ringrtc-webrtc-renamed.patch
|
10284e0d86ab88de161ae689871082194f689ce416f3ebada8991d5db707994ea1cb8b4212756dd93ba5a3469964050988220f18afc37e38f3404a6e17ec8caf ringrtc-webrtc-renamed.patch
|
||||||
9d92389637cdda83a0a7039fa6c52516d7bc491d0b1e42d5374b9d1f4fa7b9c930642f2dca896da17a2dc3344fa1bb97434c8dddd0539a4fedfd0dec809fc875 webrtc-shared-like-my-wife.patch
|
98a7e4df27c3ed56c5968ebc3ae8e08bfb54362d0c910f9af1d414079a6d5fe0f18aa570ae3c38042f4691af6a130cb3ff689625e26a3987720dd319a5f587b1 webrtc-shared-libs.patch
|
||||||
e07ae8544988d402aaf0fbd95ea36a64c94c59566c561132578aa6dcf8ff11a34058530e64dc204e5cadc2482f1401e74b32384a144e5e08017c663d0cf7c2fc webrtc-compiler.patch
|
fe78cdc58c18826fc4227cc8e9377980766229390544578f6a1a6f7322bc3243c066963b589323dbfe4f2bfd37f8859ad84f63cb3783317892e5ae3652270a3a webrtc-compiler.patch
|
||||||
88515d8b8cc82355c9f9b0f44fac83b7ff149b13e9fb102fd46036ec5234cfb2385fa5ad58a0520ee604b93dc4ddd6ae18a7005978ef207841645724ef7a9749 webrtc-gcc13.patch
|
48ab5c733e643eaff08ccbe839086bebbb68d397984ad7c5c5b68df8071f75d2dfe92c3f52d9fbf9b81754934bdfa8a67c69addd476ce4265b978592fb4ff9bd webrtc-gcc13.patch
|
||||||
87534e7b5ad7365509eab75629e6bd1a9ed61ee92f7e358405a0abaf0df57de14623fb3894eb082f8785422e5c087e1c50f9e2e5cafbb2529591fd7bf447f7f5 signal-desktop
|
87534e7b5ad7365509eab75629e6bd1a9ed61ee92f7e358405a0abaf0df57de14623fb3894eb082f8785422e5c087e1c50f9e2e5cafbb2529591fd7bf447f7f5 signal-desktop
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
--- a/binding.gyp
|
|
||||||
+++ b/binding.gyp
|
|
||||||
@@ -7,7 +7,16 @@
|
|
||||||
'targets': [
|
|
||||||
{
|
|
||||||
'target_name': 'better_sqlite3',
|
|
||||||
- 'dependencies': ['deps/sqlite3.gyp:sqlite3'],
|
|
||||||
+ 'include_dirs': [
|
|
||||||
+ '/usr/include/sqlcipher',
|
|
||||||
+ 'tokenizer',
|
|
||||||
+ ],
|
|
||||||
+ 'link_settings': {
|
|
||||||
+ 'libraries': [
|
|
||||||
+ '-lsqlcipher',
|
|
||||||
+ '<!(pwd)/tokenizer/libsignal_tokenizer.a',
|
|
||||||
+ ]
|
|
||||||
+ },
|
|
||||||
'sources': ['src/better_sqlite3.cpp'],
|
|
||||||
'cflags_cc': ['-std=c++17'],
|
|
||||||
'xcode_settings': {
|
|
||||||
@@ -24,14 +33,22 @@
|
|
||||||
['OS=="linux"', {
|
|
||||||
'ldflags': [
|
|
||||||
'-Wl,-Bsymbolic',
|
|
||||||
- '-Wl,--exclude-libs,ALL',
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'target_name': 'test_extension',
|
|
||||||
- 'dependencies': ['deps/sqlite3.gyp:sqlite3'],
|
|
||||||
+ 'include_dirs': [
|
|
||||||
+ '/usr/include/sqlcipher',
|
|
||||||
+ 'tokenizer',
|
|
||||||
+ ],
|
|
||||||
+ 'link_settings': {
|
|
||||||
+ 'libraries': [
|
|
||||||
+ '-lsqlcipher',
|
|
||||||
+ '<!(pwd)/tokenizer/libsignal_tokenizer.a',
|
|
||||||
+ ]
|
|
||||||
+ },
|
|
||||||
'conditions': [['sqlite3 == ""', { 'sources': ['deps/test_extension.c'] }]],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
--- a/package.json
|
|
||||||
+++ b/package.json
|
|
||||||
@@ -34,7 +34,7 @@
|
|
||||||
"sqlite3": "^5.0.2"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
- "install": "npm run download && npm run build-release",
|
|
||||||
+ "install": "npm run build-release",
|
|
||||||
"build-release": "node-gyp rebuild --release",
|
|
||||||
"build-debug": "node-gyp rebuild --debug",
|
|
||||||
"rebuild-release": "npm run lzz && npm run build-release",
|
|
|
@ -1,11 +1,13 @@
|
||||||
--- ./node/build_node_bridge.py.orig
|
diff --git a/libsignal/node/build_node_bridge.py.orig b/libsignal/node/build_node_bridge.py
|
||||||
+++ ./node/build_node_bridge.py
|
index e75c2d0..3bdb328 100755
|
||||||
@@ -63,7 +63,7 @@
|
--- a/libsignal/node/build_node_bridge.py.orig
|
||||||
|
+++ b/libsignal/node/build_node_bridge.py
|
||||||
|
@@ -97,7 +97,7 @@ def main(args: Optional[List[str]] = None) -> int:
|
||||||
|
if 'npm_config_libsignal_debug_level_logs' not in os.environ:
|
||||||
|
features.append('log/release_max_level_info')
|
||||||
|
|
||||||
out_dir = options.out_dir.strip('"') or os.path.join('build', configuration_name)
|
- cmdline = ['cargo', 'build', '--target', cargo_target, '-p', 'libsignal-node', '--features', ','.join(features)]
|
||||||
|
+ cmdline = ['cargo', 'auditable', 'build', '--target', cargo_target, '-p', 'libsignal-node', '--features', ','.join(features)]
|
||||||
- cmdline = ['cargo', 'build', '--target', cargo_target, '-p', 'libsignal-node', '--features', 'testing-fns']
|
|
||||||
+ cmdline = ['cargo', 'auditable', 'build', '--target', cargo_target, '-p', 'libsignal-node', '--features', 'testing-fns']
|
|
||||||
if configuration_name == 'Release':
|
if configuration_name == 'Release':
|
||||||
cmdline.append('--release')
|
cmdline.append('--release')
|
||||||
print("Running '%s'" % (' '.join(cmdline)))
|
print("Running '%s'" % (' '.join(cmdline)))
|
||||||
|
|
|
@ -1,19 +1,23 @@
|
||||||
--- ./src/rust/build.rs.orig
|
--- ./ringrtc/src/rust/build.rs.orig
|
||||||
+++ ./src/rust/build.rs
|
+++ ./ringrtc/src/rust/build.rs
|
||||||
@@ -41,15 +41,15 @@
|
@@ -79,6 +79,7 @@
|
||||||
if cfg!(feature = "native") {
|
|
||||||
if let Ok(out_dir) = out_dir {
|
|
||||||
println!(
|
|
||||||
- "cargo:rustc-link-search=native={}/{}/obj/",
|
|
||||||
+ "cargo:rustc-link-search=native={}/{}/",
|
|
||||||
out_dir, build_type,
|
|
||||||
);
|
|
||||||
- println!("cargo:rerun-if-changed={}/{}/obj/", out_dir, build_type,);
|
|
||||||
+ println!("cargo:rerun-if-changed={}/{}/", out_dir, build_type,);
|
|
||||||
} else {
|
|
||||||
println!("cargo:warning=No WebRTC output directory (OUTPUT_DIR) defined!");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if cfg!(feature = "native") {
|
||||||
|
let webrtc_dir = if cfg!(feature = "prebuilt_webrtc") {
|
||||||
|
+ panic!("trying to download prebuild webrtc");
|
||||||
|
if let Err(e) = fs::create_dir_all(&out_dir) {
|
||||||
|
panic!("Failed to create webrtc out directory: {:?}", e);
|
||||||
|
}
|
||||||
|
@@ -86,12 +87,12 @@
|
||||||
|
// Ignore build type since we only have release prebuilts
|
||||||
|
format!("{}/release/obj/", out_dir)
|
||||||
|
} else {
|
||||||
|
- format!("{}/{}/obj", out_dir, build_type)
|
||||||
|
+ format!("{}/{}", out_dir, build_type)
|
||||||
|
};
|
||||||
|
println!("cargo:rerun-if-changed={}", webrtc_dir);
|
||||||
|
println!("cargo:rerun-if-changed={}", config_dir());
|
||||||
|
println!("cargo:rustc-link-search=native={}", webrtc_dir);
|
||||||
- println!("cargo:rustc-link-lib=webrtc");
|
- println!("cargo:rustc-link-lib=webrtc");
|
||||||
+ println!("cargo:rustc-link-lib=dylib=signaldeswebrtc");
|
+ println!("cargo:rustc-link-lib=dylib=signaldeswebrtc");
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
--- ./app/main.ts.orig
|
diff --git a/app/main.ts.orig b/app/main.ts
|
||||||
+++ ./app/main.ts
|
index aa1bec8..bd7c1d5 100644
|
||||||
@@ -721,7 +721,7 @@
|
--- a/app/main.ts.orig
|
||||||
const titleBarOverlay = await getTitleBarOverlay();
|
+++ b/app/main.ts
|
||||||
|
@@ -690,7 +690,7 @@ async function createWindow() {
|
||||||
|
: DEFAULT_HEIGHT;
|
||||||
|
|
||||||
const windowOptions: Electron.BrowserWindowConstructorOptions = {
|
const windowOptions: Electron.BrowserWindowConstructorOptions = {
|
||||||
- show: false,
|
- show: false,
|
||||||
+ show: true,
|
+ show: true,
|
||||||
width: DEFAULT_WIDTH,
|
width,
|
||||||
height: DEFAULT_HEIGHT,
|
height,
|
||||||
minWidth: MIN_WIDTH,
|
minWidth: MIN_WIDTH,
|
||||||
|
|
43
backports/signal-desktop/signal-use-system-sqlcipher.patch
Normal file
43
backports/signal-desktop/signal-use-system-sqlcipher.patch
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
diff --git a/node_modules/@signalapp/better-sqlite3/binding.gyp.orig b/node_modules/@signalapp/better-sqlite3/binding.gyp
|
||||||
|
index c370c30b309..bf0207e6fec 100644
|
||||||
|
--- a/node_modules/@signalapp/better-sqlite3/binding.gyp.orig
|
||||||
|
+++ b/node_modules/@signalapp/better-sqlite3/binding.gyp
|
||||||
|
@@ -7,7 +7,16 @@
|
||||||
|
'targets': [
|
||||||
|
{
|
||||||
|
'target_name': 'better_sqlite3',
|
||||||
|
- 'dependencies': ['deps/sqlite3.gyp:sqlite3'],
|
||||||
|
+ 'include_dirs': [
|
||||||
|
+ '/usr/include/sqlcipher',
|
||||||
|
+ 'tokenizer',
|
||||||
|
+ ],
|
||||||
|
+ 'link_settings': {
|
||||||
|
+ 'libraries': [
|
||||||
|
+ '-lsqlcipher',
|
||||||
|
+ '<!(pwd)/tokenizer/libsignal_tokenizer.a',
|
||||||
|
+ ]
|
||||||
|
+ },
|
||||||
|
'sources': ['src/better_sqlite3.cpp'],
|
||||||
|
'cflags_cc': ['-std=c++20'],
|
||||||
|
'msvs_settings': {
|
||||||
|
@@ -21,7 +30,6 @@
|
||||||
|
['OS=="linux"', {
|
||||||
|
'ldflags': [
|
||||||
|
'-Wl,-Bsymbolic',
|
||||||
|
- '-Wl,--exclude-libs,ALL',
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
],
|
||||||
|
diff --git a/node_modules/@signalapp/better-sqlite3/package.json.orig b/node_modules/@signalapp/better-sqlite3/package.json
|
||||||
|
index fbb9d360352..a9217039c01 100644
|
||||||
|
--- a/node_modules/@signalapp/better-sqlite3/package.json.orig
|
||||||
|
+++ b/node_modules/@signalapp/better-sqlite3/package.json
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"format": "xcrun clang-format --style=chromium -Werror --verbose -i src/*.cpp src/*.hpp",
|
||||||
|
- "install": "npm run download && npm run build-release",
|
||||||
|
+ "install": "npm run build-release",
|
||||||
|
"build-release": "node-gyp rebuild --release",
|
||||||
|
"build-debug": "node-gyp rebuild --debug",
|
||||||
|
"test": "mocha --exit --slow=75 --timeout=5000",
|
|
@ -1,5 +1,5 @@
|
||||||
--- ./build/config/compiler/BUILD.gn.orig
|
--- ./webrtc/build/config/compiler/BUILD.gn.orig
|
||||||
+++ ./build/config/compiler/BUILD.gn
|
+++ ./webrtc/build/config/compiler/BUILD.gn
|
||||||
@@ -624,14 +624,14 @@
|
@@ -624,14 +624,14 @@
|
||||||
if (default_toolchain != "//build/toolchain/cros:target" &&
|
if (default_toolchain != "//build/toolchain/cros:target" &&
|
||||||
!llvm_android_mainline) {
|
!llvm_android_mainline) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- ./rtc_base/system/file_wrapper.h.orig
|
--- ./webrtc/rtc_base/system/file_wrapper.h.orig
|
||||||
+++ ./rtc_base/system/file_wrapper.h
|
+++ ./webrtc/rtc_base/system/file_wrapper.h
|
||||||
@@ -13,6 +13,7 @@
|
@@ -13,6 +13,7 @@
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
--- ./modules/audio_coding/neteq/reorder_optimizer.cc.orig
|
--- ./webrtc/modules/audio_coding/neteq/reorder_optimizer.cc.orig
|
||||||
+++ ./modules/audio_coding/neteq/reorder_optimizer.cc
|
+++ ./webrtc/modules/audio_coding/neteq/reorder_optimizer.cc
|
||||||
@@ -11,6 +11,7 @@
|
@@ -11,6 +11,7 @@
|
||||||
#include "modules/audio_coding/neteq/reorder_optimizer.h"
|
#include "modules/audio_coding/neteq/reorder_optimizer.h"
|
||||||
|
|
||||||
|
|
64
backports/signal-desktop/webrtc-shared-libs.patch
Normal file
64
backports/signal-desktop/webrtc-shared-libs.patch
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
--- ./webrtc/BUILD.gn.orig
|
||||||
|
+++ ./webrtc/BUILD.gn
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
# 'ninja default' and then 'ninja all', the second build should do no work.
|
||||||
|
group("default") {
|
||||||
|
testonly = true
|
||||||
|
- deps = [ ":webrtc" ]
|
||||||
|
+ deps = [ ":signaldeswebrtc" ]
|
||||||
|
if (rtc_build_examples) {
|
||||||
|
deps += [ "examples" ]
|
||||||
|
}
|
||||||
|
@@ -464,7 +464,7 @@
|
||||||
|
|
||||||
|
if (!build_with_chromium) {
|
||||||
|
# Target to build all the WebRTC production code.
|
||||||
|
- rtc_static_library("webrtc") {
|
||||||
|
+ rtc_shared_library("signaldeswebrtc") {
|
||||||
|
# Only the root target and the test should depend on this.
|
||||||
|
visibility = [
|
||||||
|
"//:default",
|
||||||
|
@@ -472,7 +472,6 @@
|
||||||
|
]
|
||||||
|
|
||||||
|
sources = []
|
||||||
|
- complete_static_lib = true
|
||||||
|
suppressed_configs += [ "//build/config/compiler:thin_archive" ]
|
||||||
|
defines = []
|
||||||
|
|
||||||
|
diff --git a/webrtc/third_party/googletest/BUILD.gn.orig b/webrtc/third_party/googletest/BUILD.gn
|
||||||
|
index 14089f0..b7dc621 100644
|
||||||
|
--- a/webrtc/third_party/googletest/BUILD.gn.orig
|
||||||
|
+++ b/webrtc/third_party/googletest/BUILD.gn
|
||||||
|
@@ -48,7 +48,6 @@ config("gtest_config") {
|
||||||
|
|
||||||
|
configs = [
|
||||||
|
"//third_party/abseil-cpp:absl_include_config",
|
||||||
|
- "//third_party/re2:re2_config",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/webrtc/third_party/googletest/BUILD.gn.orig b/webrtc/third_party/googletest/BUILD.gn
|
||||||
|
index b7dc621..367f929 100644
|
||||||
|
--- a/webrtc/third_party/googletest/BUILD.gn.orig
|
||||||
|
+++ b/webrtc/third_party/googletest/BUILD.gn
|
||||||
|
@@ -133,7 +133,6 @@ source_set("gtest") {
|
||||||
|
|
||||||
|
# googletest only needs `absl`, but this makes gn check happier.
|
||||||
|
deps = [ "//third_party/abseil-cpp:absl_full" ]
|
||||||
|
- public_deps = [ "//third_party/re2" ]
|
||||||
|
if (is_nacl || !build_with_chromium) {
|
||||||
|
defines += [ "GTEST_DISABLE_PRINT_STACK_TRACE" ]
|
||||||
|
sources -= [
|
||||||
|
diff --git a/webrtc/third_party/fuzztest/BUILD.gn.orig b/webrtc/third_party/fuzztest/BUILD.gn
|
||||||
|
index 57ee790..ba1d297 100644
|
||||||
|
--- a/webrtc/third_party/fuzztest/BUILD.gn.orig
|
||||||
|
+++ b/webrtc/third_party/fuzztest/BUILD.gn
|
||||||
|
@@ -309,7 +309,6 @@ source_set("fuzztest_internal") {
|
||||||
|
# For RE2 mutators. It's questionable whether we want to pull this library
|
||||||
|
# into every fuzztest target, but this is the approach used in other
|
||||||
|
# fuzztest contexts so we'll do the same
|
||||||
|
- "//third_party/re2",
|
||||||
|
|
||||||
|
# For protobuf mutators
|
||||||
|
"$protobuf_target_prefix:protobuf_lite",
|
|
@ -1,28 +0,0 @@
|
||||||
--- ./BUILD.gn.orig
|
|
||||||
+++ ./BUILD.gn
|
|
||||||
@@ -38,7 +38,7 @@
|
|
||||||
# 'ninja default' and then 'ninja all', the second build should do no work.
|
|
||||||
group("default") {
|
|
||||||
testonly = true
|
|
||||||
- deps = [ ":webrtc" ]
|
|
||||||
+ deps = [ ":signaldeswebrtc" ]
|
|
||||||
if (rtc_build_examples) {
|
|
||||||
deps += [ "examples" ]
|
|
||||||
}
|
|
||||||
@@ -464,7 +464,7 @@
|
|
||||||
|
|
||||||
if (!build_with_chromium) {
|
|
||||||
# Target to build all the WebRTC production code.
|
|
||||||
- rtc_static_library("webrtc") {
|
|
||||||
+ rtc_shared_library("signaldeswebrtc") {
|
|
||||||
# Only the root target and the test should depend on this.
|
|
||||||
visibility = [
|
|
||||||
"//:default",
|
|
||||||
@@ -472,7 +472,6 @@
|
|
||||||
]
|
|
||||||
|
|
||||||
sources = []
|
|
||||||
- complete_static_lib = true
|
|
||||||
suppressed_configs += [ "//build/config/compiler:thin_archive" ]
|
|
||||||
defines = []
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
||||||
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
# Maintainer:
|
||||||
pkgname=soqt
|
pkgname=soqt
|
||||||
pkgver=1.6.0
|
pkgver=1.6.0
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="GUI binding library for coin"
|
pkgdesc="GUI binding library for coin"
|
||||||
url="https://github.com/coin3d/soqt"
|
url="https://github.com/coin3d/soqt"
|
||||||
arch="all"
|
arch="all"
|
||||||
|
|
|
@ -42,7 +42,7 @@ build() {
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
# useless code style test with another dependency
|
# useless code style test with another dependency
|
||||||
ctest -j $JOBS --output-on-failure -T Test
|
ctest --output-on-failure -T Test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
|
@ -1,108 +0,0 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
|
|
||||||
pkgname=craftbukkit-plugin-essentialx
|
|
||||||
_pkgver=2.19.2
|
|
||||||
_buildver=release
|
|
||||||
_buildcommit=0
|
|
||||||
pkgrel=2
|
|
||||||
pkgdesc="EssentialsX is the essential plugin suite for Minecraft servers, with over 130 commands for servers of all size and scale."
|
|
||||||
options=!check
|
|
||||||
arch='noarch'
|
|
||||||
url="https://essentialsx.net/"
|
|
||||||
license="GPL-3.0"
|
|
||||||
depends="craftbukkit>=1.8.8 craftbukkit<=1.18.1"
|
|
||||||
|
|
||||||
if _buildver=release; then
|
|
||||||
pkgver=$_pkgver
|
|
||||||
_url=https://github.com/EssentialsX/Essentials/releases/download/$pkgver
|
|
||||||
_filename="$pkgver.jar"
|
|
||||||
else
|
|
||||||
pkgver=$_pkgver.$_buildver
|
|
||||||
_url=https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/jars
|
|
||||||
_filename="$_pkgver-dev+$_buildver-$_buildcommit.jar"
|
|
||||||
fi
|
|
||||||
|
|
||||||
source="
|
|
||||||
$_url/EssentialsX-$_filename
|
|
||||||
$_url/EssentialsXChat-$_filename
|
|
||||||
$_url/EssentialsXSpawn-$_filename
|
|
||||||
$_url/EssentialsXAntiBuild-$_filename
|
|
||||||
$_url/EssentialsXDiscord-$_filename
|
|
||||||
$_url/EssentialsXGeoIP-$_filename
|
|
||||||
$_url/EssentialsXProtect-$_filename
|
|
||||||
$_url/EssentialsXXMPP-$_filename
|
|
||||||
"
|
|
||||||
|
|
||||||
subpackages="$pkgname-core $pkgname-chat $pkgname-spawn $pkgname-antibuild $pkgname-discord $pkgname-geo $pkgname-protect $pkgname-xmpp"
|
|
||||||
|
|
||||||
|
|
||||||
package() {
|
|
||||||
mkdir -p "$pkgdir"
|
|
||||||
}
|
|
||||||
|
|
||||||
core() {
|
|
||||||
pkgdesc="Core functionality: teleports, private messages, homes, warps and more"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsX-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/Essentials.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/Essentials.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
chat() {
|
|
||||||
pkgdesc="Chat formatting, local chat"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXChat-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsChat.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsChat.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
spawn() {
|
|
||||||
pkgdesc="Spawnpoint control, per-player spawns"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXSpawn-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsSpawn.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsSpawn.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
antibuild() {
|
|
||||||
pkgdesc="Simple permissions-based building control"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXAntiBuild-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsAntiBuild.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsAntiBuild.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
discord() {
|
|
||||||
pkgdesc="Lightweight chat, messaging and command integration with Discord"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXDiscord-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsDiscord.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsDiscord.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
geo() {
|
|
||||||
pkgdesc="Geographical player lookup (formerly EssentialsX GeoIP)"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXGeoIP-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsGeo.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsGeo.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
protect() {
|
|
||||||
pkgdesc="Configurable world protection and control"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXProtect-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsProtect.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsProtect.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
xmpp() {
|
|
||||||
pkgdesc="Lightweight chat, messaging and server log integration with Jabber/XMPP services"
|
|
||||||
depends="$pkgname-core"
|
|
||||||
install -Dm644 "$srcdir"/EssentialsXXMPP-*.jar "$subpkgdir/var/lib/craftbukkit/plugins/EssentialsXMPP.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$subpkgdir"/var/lib/craftbukkit/plugins/EssentialsXMPP.jar
|
|
||||||
}
|
|
||||||
|
|
||||||
sha512sums="
|
|
||||||
c91c0905c11482d93b1565f8b9dce7b6f939567b4cb2756b112ee408bdcca1fece04742f9b7b0876d5b2e84cebdbc555d35cf783e9e86ab12fafb9dc02bc6008 EssentialsX-2.19.2.jar
|
|
||||||
e2df6f242db38689579501b34763ad7d4b5e8ddd87b7b57956c6b5cc667f1b34af6b1289d668a64761da63f8ae8507eb9687ca490cc715a3eff6338770963240 EssentialsXChat-2.19.2.jar
|
|
||||||
24e41168428f20bd6506282b9920718c43f7e5227bf35e174522e49859e294048a1d979ae42044bdbdba45c8a1109f4db6ffd0e24d5f3e909d0f9a3ac31e21d3 EssentialsXSpawn-2.19.2.jar
|
|
||||||
326ec004241b526965cb67ae0f0245dfa960da2fdb4b59d867eb08e5196fceb468f9314cb838c8a0bc513cc55f43cf58023d11b18ed98e472be7089838538f97 EssentialsXAntiBuild-2.19.2.jar
|
|
||||||
211c575adde17c3f2f901144e5c31beb2918df7e6e15f8ebe16805d3b53214a4756b87ec84466790ebf1dacb41e1aea97b6a9ba8ed39e85092293a821044d579 EssentialsXDiscord-2.19.2.jar
|
|
||||||
7845e7666f983d3e793528a7085ced7c9f1bf881740bcc68b6a54fea74e31c3c0c2a52e26fc20330ba7d4a190dad0a1b27195fed0e1417a48494c5fa2ac60d92 EssentialsXGeoIP-2.19.2.jar
|
|
||||||
e74ed72a15b5e6cd3c5f61d032a26c151865e3197638c9059237dc2d1144b0cb15668545532fc532ac8ec247bdf9b9ee6843b8f4af7506aef86d155dd5672c5f EssentialsXProtect-2.19.2.jar
|
|
||||||
8d35009499557700f49c27ca3132e866f511a200791dbcfd2f595396977058cc2fc9349d0b4eaa0eb67b27331e91e6209df6ed57a766c06fd3b3325718462478 EssentialsXXMPP-2.19.2.jar
|
|
||||||
"
|
|
|
@ -1,23 +0,0 @@
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
||||||
|
|
||||||
pkgname=craftbukkit-plugin-luckperms
|
|
||||||
_pkgver=5.3.89
|
|
||||||
_buildver=1389
|
|
||||||
pkgver=$_pkgver.$_buildver
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="An advanced permissions plugin for Bukkit/Spigot, BungeeCord and Sponge."
|
|
||||||
options=!check
|
|
||||||
arch='noarch'
|
|
||||||
url="https://github.com/lucko/LuckPerms"
|
|
||||||
license="MIT"
|
|
||||||
depends="craftbukkit>=1.8.8 craftbukkit<=1.18.1"
|
|
||||||
source="https://ci.lucko.me/job/LuckPerms/$_buildver/artifact/bukkit/loader/build/libs/LuckPerms-Bukkit-$_pkgver.jar"
|
|
||||||
|
|
||||||
package() {
|
|
||||||
install -Dm644 "$srcdir"/LuckPerms-Bukkit-$_pkgver.jar "$pkgdir/var/lib/craftbukkit/plugins/LuckPerms.jar"
|
|
||||||
chown craftbukkit:craftbukkit "$pkgdir"/var/lib/craftbukkit/plugins/LuckPerms.jar
|
|
||||||
}
|
|
||||||
sha512sums="
|
|
||||||
7e146616cdf7f667c483bbe2112439c85f32427e9aa3714f0b0e869abf0cde6aacc7341d8d9e6a72ddcf8f35af840f4ba678c4690222912113f497cafce11154 LuckPerms-Bukkit-5.3.89.jar
|
|
||||||
"
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue