diff --git a/play.d/icaclient.sh b/play.d/icaclient.sh new file mode 100755 index 0000000000000000000000000000000000000000..8175200c5d6d2b17bf2ff1e87ae943b9e305076b --- /dev/null +++ b/play.d/icaclient.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +PKGNAME=ICAClient +SUPPORTEDARCHES="x86_64" +#DESCRIPTION="Citrix Workspace app from the official site" +DESCRIPTION='' +URL="https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html" + +. $(dirname $0)/common.sh + +VERSION=24.2.0.65 + +pkgtype="$(epm print info -p)" +case "$pkgtype" in + rpm) + IPFSHASH=QmNtSr1HzmbHz3Yhx9JwFeM8wYEyA3yYR6YT9QUFa1qsAw + PKGURL="https://downloads.citrix.com/22629/ICAClient-rhel-${VERSION}-0.x86_64.rpm" + ;; + deb) + IPFSHASH=QmanCSx8RSpB3fu6YKyrhbFfdzXbXSEWqrfmPouaWC1ykx + PKGURL="https://downloads.citrix.com/22629/icaclient_${VERSION}_amd64.deb" + ;; + *) + IPFSHASH=QmanCSx8RSpB3fu6YKyrhbFfdzXbXSEWqrfmPouaWC1ykx + PKGURL="https://downloads.citrix.com/22629/icaclient_${VERSION}_amd64.deb" + ;; +esac + +# use temp dir +PKGDIR="$(mktemp -d)" +trap "rm -fr $PKGDIR" EXIT +cd $PKGDIR || fatal + +pkgname=$(basename $PKGURL) + +if ! epm tool eget $PKGURL ; then + echo "It is possible you are blocked from USA, trying get from IPFS ..." + epm tool eget -O $pkgname https://dhash.ru/ipfs/$IPFSHASH || fatal "Can't get $pkgname from IPFS." +fi + +repack='' +[ "$(epm print info -s)" = "alt" ] && repack='--repack' + +epm install $repack $pkgname || exit diff --git a/repack.d/ICAClient.sh b/repack.d/ICAClient.sh index 43ef780a43f88b0a353906110073894f2d69ef23..9c8d092fa50c573f07eb7ec2d1f2c082d6cf8bcb 100755 --- a/repack.d/ICAClient.sh +++ b/repack.d/ICAClient.sh @@ -3,9 +3,25 @@ BUILDROOT="$1" SPEC="$2" +. $(dirname $0)/common.sh + +# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=icaclient + # Fix macro in file list subst 's|%_h32bit|%%_h32bit|g' $SPEC +ignore_lib_requires libunwind.so.1 libgssapi.so.3 +ignore_lib_requires libgstreamer-0.10.so.0 libgstapp-0.10.so.0 libgstbase-0.10.so.0 libgstinterfaces-0.10.so.0 libgstpbutils-0.10.so.0 +ignore_lib_requires libgstpbutils-1.0.so.0 libgstreamer-1.0.so.0 libgstvideo-1.0.so.0 libgssapi_krb5.so.2 libgstapp-1.0.so.0 libgstbase-1.0.so.0 +ignore_lib_requires libc++.so.1 libc++abi.so.1 + +# glibc >= 2.7 gtk2 >= 2.12 gtk3 libICE >= 1.0.6 libSM >= 1.2.1 libX11 >= 1.6.0 libXext >= 1.3.2 libXinerama libXmu >= 1.1.1 libXpm >= 3.5.10 libXrender libXt >= 1.1.4 libpng speexdsp sqlite-libs webkit2gtk3 >= 2.26 +# libc6 (>= 2.13-38), libice6 (>= 1:1.0.0), libgtk2.0-0 (>= 2.12.0), libsm6, libx11-6, libxext6, libxmu6, libxpm4, libasound2, libstdc++6, libidn11 | libidn12, zlib1g, curl (>= 7.68), libsqlite3-0, libspeexdsp1 +# +add_libs_requires + +exit 0 + # Remove unmets subst '1i%filter_from_requires /\\(SUNWut\\|LIBJPEG_6.2\\|kdelibs\\|killproc\\|start_daemon\\)/d' $SPEC subst '1i%filter_from_requires /^libc.so.6(GLIBC_PRIVATE).*/d' $SPEC