From 57e76abda401a02a26b4be12208118df2bb45a1e Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 14 Mar 2022 15:24:34 -0400 Subject: [PATCH] sublime-text3: replace with empty meta package --- srcpkgs/sublime-text3/INSTALL.msg | 4 ++++ srcpkgs/sublime-text3/template | 37 +++++++------------------------ 2 files changed, 12 insertions(+), 29 deletions(-) create mode 100644 srcpkgs/sublime-text3/INSTALL.msg diff --git a/srcpkgs/sublime-text3/INSTALL.msg b/srcpkgs/sublime-text3/INSTALL.msg new file mode 100644 index 0000000000..cf4c4e70a7 --- /dev/null +++ b/srcpkgs/sublime-text3/INSTALL.msg @@ -0,0 +1,4 @@ +sublime-text3 is replaced with the restricted sublime-text3-bin +package, due to its license that restricts redistribution. +In order to install it you have to build it with xbps-src, please see: +https://docs.voidlinux.org/xbps/repositories/restricted.html diff --git a/srcpkgs/sublime-text3/template b/srcpkgs/sublime-text3/template index c693768e6e..c077963863 100644 --- a/srcpkgs/sublime-text3/template +++ b/srcpkgs/sublime-text3/template @@ -1,36 +1,15 @@ # Template file for 'sublime-text3' pkgname=sublime-text3 version=3211 -revision=2 -depends="libpng gtk+ hicolor-icon-theme desktop-file-utils" -short_desc="Sophisticated text editor for code, markup and prose" -maintainer="Andrea Brancaleoni " -license="custom:Proprietary" -homepage="http://www.sublimetext.com/3dev" - -if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then - distfiles="https://download.sublimetext.com/sublime_text_3_build_${version}_x64.tar.bz2" - checksum=0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee -else - distfiles="https://download.sublimetext.com/sublime_text_3_build_${version}_x32.tar.bz2" - checksum=480609962bbbd12128b5332c7831372b8851c13e160512730d1b0a6a835a3071 -fi - -repository="nonfree" +revision=3 archs="i686 x86_64" -wrksrc="sublime_text_3" -nopie=yes +build_style=meta +short_desc="Empty meta-package for sublime-text3" +maintainer="Andrea Brancaleoni " +license="custom:EULA" #no vlicense check +homepage="http://www.sublimetext.com/3dev" +repository="nonfree" do_install() { - vmkdir "usr/bin" - vmkdir "usr/lib/sublime_text" - cp --preserve=mode -r ./* "${DESTDIR}/usr/lib/sublime_text" - vinstall "sublime_text.desktop" 644 "usr/share/applications/" - for size in 128 16 256 32 48; do - vinstall "Icon/${size}x${size}/sublime-text.png" 644 \ - "usr/share/icons/hicolor/${size}x${size}/apps/" - done - ln -s /usr/lib/sublime_text/sublime_text ${DESTDIR}/usr/bin/subl3 - vsed -e 's:Exec=/opt/sublime_text/:Exec=/usr/lib/sublime_text/:' \ - -i ${DESTDIR}/usr/share/applications/sublime_text.desktop + vdoc "${XBPS_SRCPKGDIR}/${pkgname}/INSTALL.msg" README.voidlinux }