From e983de1c1287e973b7f947d1a1b9d6c963701dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Thu, 4 Apr 2024 17:15:44 +0200 Subject: [PATCH] feat: intellij, disable redistribution for some pkgs --- common/hypa/build.sh | 5 +++++ srcpkgs/google-chrome/template | 1 + srcpkgs/intellij-idea-ultimate-edition/template | 1 + srcpkgs/visual-studio-code/template | 1 + 4 files changed, 8 insertions(+) diff --git a/common/hypa/build.sh b/common/hypa/build.sh index b08c21d..7daa89e 100755 --- a/common/hypa/build.sh +++ b/common/hypa/build.sh @@ -5,5 +5,10 @@ for xbps_pkg in $(ls -1 ./srcpkgs); do continue fi + if grep -q "restricted=yes" ./srcpkgs/${xbps_pkg}/template; then + # license :( + continue + fi + ./xbps-src pkg -Q ${xbps_pkg} || exit 1 done diff --git a/srcpkgs/google-chrome/template b/srcpkgs/google-chrome/template index ca8ed33..a3348ef 100644 --- a/srcpkgs/google-chrome/template +++ b/srcpkgs/google-chrome/template @@ -15,6 +15,7 @@ distfiles="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stab checksum=cfe502ef052c5805fb90f22093c4bdba35b69fa1e5529d26df31d3bec0224e9b skiprdeps="/opt/google/chrome/libqt5_shim.so /opt/google/chrome/libqt6_shim.so" +restricted=yes nostrip=yes do_install() { diff --git a/srcpkgs/intellij-idea-ultimate-edition/template b/srcpkgs/intellij-idea-ultimate-edition/template index 317f924..b0a2820 100644 --- a/srcpkgs/intellij-idea-ultimate-edition/template +++ b/srcpkgs/intellij-idea-ultimate-edition/template @@ -16,6 +16,7 @@ nopie=yes python_version=3 # requires liblldb.so which is unversioned, pulled by lldb-devel skiprdeps="/usr/lib/intellij-idea-ultimate-edition/plugins/Kotlin/bin/linux/LLDBFrontend" +restricted=yes do_extract() { bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_filename} --strip-components=1 -C . diff --git a/srcpkgs/visual-studio-code/template b/srcpkgs/visual-studio-code/template index 9c03891..c40c613 100644 --- a/srcpkgs/visual-studio-code/template +++ b/srcpkgs/visual-studio-code/template @@ -15,6 +15,7 @@ license="custom: commercial" homepage="https://code.visualstudio.com/" distfiles="https://update.code.visualstudio.com/${version}/linux-x64/stable>code_x86_${version}.tar.gz" +restricted=yes checksum="c2e97cdc63ff1bcbfbb10c227b5398623d21f21e487108fa1d740dabe7d37985" do_install() {