-
Notifications
You must be signed in to change notification settings - Fork 0
/
assets.conf.endeavouros-testing-dev
91 lines (72 loc) · 2.97 KB
/
assets.conf.endeavouros-testing-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
# Definitions for the [endeavouros-testing-dev] repo at 'repo-testing'.
# Note: this file will be sourced into a function,
# so all variables are made 'local'.
local REPONAME="endeavouros-testing-dev"
local RELEASE_TAGS=(endeavouros-pkgbuild-tools)
## user to sign packages
local SIGNER="[email protected]" # "EndeavourOS"
## local folders
local USE_RELEASE_ASSETS=yes
local PREFER_GIT_OVER_RELEASE=no # was yes
local GITREPOURL=https://github.com/endeavouros-team/eos-tools.git
# if [ "$USE_RELEASE_ASSETS" = "no" ] ; then
local GITREPODIR="$(basename "$GITREPOURL" .git)/$REPONAME"
# fi
local ARCHIVE_TAG=repo-testing
## new way with absolute paths:
local ASSETSDIR="$EOS_ROOT/_BUILD_/$REPONAME"
local PKGBUILD_ROOTDIR="$ASSETSDIR/PKGBUILDS" # temporary copy only, will always be overwritten
local GITDIR="$EOS_ROOT/eos-tools"
local ARCHIVE_GIT="$EOS_ROOT/archive/.git"
# SKIP_UNACCEPTABLE_PKGBUILD=(python3-gpg_batch_sign)
## package name specifications
local PKGNAMES=( # actually: dir names for packages
# b43-firmware/aur
python3-gpg_batch_sign/aur
repo-add_and_sign/aur
# aur/archupdate-indicator
calamares-git
# calamares
eos-pkgbuild-setup
)
# test before plasma 6 is mainstream:
# pacman-conf --repo-list | grep kde-unstable >/dev/null || PKGNAMES_WAIT=(calamares-git)
declare -A PKG_CHANGELOGS=(
calamares-git "https://github.com/endeavouros-team/calamares/commits/calamares"
)
# Hook functions are run at the beginning of assets.make.
local ASSET_HOOKS=(
# currently none
)
_welcome_hook_theming() {
# don't skip theming code in repo-testing!
pushd "$PKGBUILD_ROOTDIR"/welcome >/dev/null
#sed -i welcome \
# -e 's|^[ ]*local theming_support_skip=1| local theming_support_skip=0|'
sed -i welcome \
-e 's|^[ ]*mode=offline| mode=choose|'
updpkgsums 2>/dev/null
popd >/dev/null
}
# Hooks for AUR packages:
_repo-add_and_sign_hook_change_rel() {
# change http to https
sed -i "$PKGBUILD_ROOTDIR"/repo-add_and_sign/PKGBUILD \
-e 's|http://|https://|'
}
_archupdate-indicator_fixes() {
# Change pkgver in PKGBUILD.
# Force PKGBUILD to change strings "xterm" and "sudo pacman -Syu" to "xfce4-terminal" and "ysy -Syu" in archupdate-indicator.py.
local pkgbuild="$PKGBUILD_ROOTDIR"/archupdate-indicator/PKGBUILD
local rel="$(grep "^pkgrel=" $pkgbuild | cut -d '=' -f 2)".1
sed -i "$pkgbuild" \
-e '/^[ \t]*cd "/'afoobar123
sed -i "$pkgbuild" \
-e 's|^pkgrel=.*$|pkgrel='"$rel"'|' \
-e 's|foobar123|\tsed -i archupdate-indicator.py -e \"s/\\"xterm\\"/\\"xfce4-terminal\\"/\" -e \"s/\\"sudo pacman -Syu\\"/\\"yay -Syu\\"/\"|'
}
declare -A ASSET_PACKAGE_HOOKS
#ASSET_PACKAGE_HOOKS["welcome"]=_welcome_hook_theming
ASSET_PACKAGE_HOOKS["repo-add_and_sign"]=_repo-add_and_sign_hook_change_rel
ASSET_PACKAGE_HOOKS["archupdate-indicator"]=_archupdate-indicator_fixes