summaryrefslogtreecommitdiff
path: root/teams-for-linux/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-10-23 11:36:00 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-10-23 11:36:00 +0200
commit46de3ffa9e51235410e8fe19bea2967d16564f86 (patch)
tree4376511dff7d99bd06ef200fa99b397ab592e373 /teams-for-linux/PKGBUILD
parent9f6405e1e91ffab586b6af6d54f712558cc0b59f (diff)
downloadarchlinuxewe-46de3ffa9e51235410e8fe19bea2967d16564f86.tar.xz
teams-for-linux: remove accidentally-commited patch
Diffstat (limited to 'teams-for-linux/PKGBUILD')
-rw-r--r--teams-for-linux/PKGBUILD124
1 files changed, 0 insertions, 124 deletions
diff --git a/teams-for-linux/PKGBUILD b/teams-for-linux/PKGBUILD
index fbeb4f996..ae716e63b 100644
--- a/teams-for-linux/PKGBUILD
+++ b/teams-for-linux/PKGBUILD
@@ -83,128 +83,4 @@ package() {
install -Dm644 "${_file}" "${pkgdir}/usr/share/icons/hicolor/${_filename%.png}/apps/${pkgname}.png"
done
ln -sf "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
-_patch_PKGBUILD
-}
-_patch_PKGBUILD() {
-if printf '%s\n' "${arch[@]}" | grep -qvxF any; then
- if [ -d "${pkgdir}/usr/lib" ]; then
- provides=(
- $(
- {
- printf '%s\n' "${provides[@]}"
- find "${pkgdir}/usr/lib" \
- -name '*.so' -printf '%p\n' \
- | while read -r fn; do
- if ! LC_ALL=C readelf -h "$fn" 2>/dev/null | grep -q '.*Type:.*DYN (Shared object file).*'; then
- # no shared object
- continue
- fi
- if ! LC_ALL=C readelf -d "$fn" 2>/dev/null | grep -q '.*Library soname: \[.*\].*'; then
- # not versioned
- continue
- fi
- printf '%s\n' "${fn##*/}"
- done
- } \
- | sort -u
- )
- )
- fi
-fi
-if printf '%s\n' "${arch[@]}" | grep -qvxF any; then
- if ! _errors=$(
- diff <(
- {
- find "${pkgdir}" -type f -exec objdump -x {} \; 2>/dev/null \
- | sed '
- s/^\s*NEEDED\s\+\(\S\+\.so\)\(\.\S\+\)\?\s*$/\1/
- t
- d
- ' \
- | sort -u \
- | while read -r _lib; do
- for _libdir in {${pkgdir},}/usr/lib*; do
- [ -d "${_libdir}" ] || continue
- [ -e "${_libdir}/${_lib}" ] \
- && printf '%s\n' "${_lib}"
- done
- done \
- | sort -u
- for _libdir in "${pkgdir}/usr"/lib*; do
- [ -d "${_libdir}" ] || continue
- find "${_libdir}" -not -type d -name '*.so' -printf '%f\n%f\n'
- done
- } \
- | sort \
- | uniq -u \
- | while read -r _lib; do
- if ! _pkg=$(
- pacman -Qqo "/usr/lib/${_lib}" 2>/dev/null
- ); then
- >&2 printf 'WARNING: noone owns "%s"\n' "${_lib}"
- printf '%s\n' "${_lib}"
- continue
- fi
- if pacman -Qi "${_pkg}" \
- | sed '
- :a
- $! N
- s/\n\s\+/ /
- ta
- P
- D
- ' \
- | sed -n '
- s/^Provides\s*:\s*//
- T
- y/ /\n/
- p
- ' \
- | sed -n '
- /^$/d
- s/=.*$//
- T
- /\.so$/p
- ' \
- | grep -qxF "${_lib}"; then
- printf '%s\n' "${_lib}"
- else
- printf '%s\n' "${_pkg}"
- fi
- done \
- | sed '
- s/[<>]\?=.*$//
- /^python$/d
- /^$/d
- ' \
- | sort -u
- ) <(
- eval 'printf '"'"'%s\n'"'"' "${_pinned_dependencies[@]}" "${_pinned_dependencies_'"${CARCH}"'[@]}" "${_pinned_dependencies_'"${OS}"'[@]}"' \
- | sed '
- s/[<>]\?=.*$//
- /^python$/d
- /^$/d
- ' \
- | sort -u
- )
- ); then
- {
- printf 'There are discrepancies between the _pinned_dependencies and the linked libraries in %s'"'"'s %s():\n' \
- "${pkgbase:-${pkgname}}" \
- "${FUNCNAME[1]}"
- printf '%s\n' "${_errors}" \
- | sed '
- s/^</actual /
- t
- s/^>/claimed /
- t
- d
- ' \
- | sort -k1,1
- } \
- | tee -a /tmp/pin-dependencies.log
- return 1
- fi
-fi
-:
}