sublime-merge-2059

This commit is contained in:
Alexander Popov 2023-09-05 23:48:04 +03:00
parent 2d59c4cbd9
commit efaad27876
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
5 changed files with 98 additions and 0 deletions

5
packages/sublime-merge/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*.tar.xz
*.tar.xz.asc
pkg/
src/

View File

@ -0,0 +1,21 @@
The SOFTWARE PRODUCT (SUBLIME MERGE) is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. The SOFTWARE PRODUCT is licensed, not sold.
1. LICENSES
SUBLIME MERGE is licensed as follows:
a. Installation and Usage.
Licenses are per user and valid for use on all supported operating systems. License keys may be used on multiple computers and operating systems, provided the license key holder is the primary user. Businesses must purchase at least as many licenses as the number of people using SUBLIME MERGE.
b. Backup Copies.
You may make copies of the license key and or SUBLIME MERGE for backup and archival purposes.
2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS
a. Maintenance of Copyright Notices.
You must not remove or alter any copyright notices on any copy of SUBLIME MERGE.
b. Distribution.
You may not distribute or sell license keys or SUBLIME MERGE to third parties. Licenses will be revoked if distributed or sold to third parties.
c. Rental.
You may not rent, lease, or lend the license key or SUBLIME MERGE.
3. COPYRIGHT
All title, including but not limited to copyrights, in and to SUBLIME MERGE and any copies thereof are owned by SUBLIME HQ PTY LTD.
4. NO WARRANTIES
SUBLIME HQ PTY LTD expressly disclaims any warranty for SUBLIME MERGE, which is provided 'as is' without any express or implied warranty of any kind, including but not limited to any warranties of merchantability, non-infringement, or fitness of a particular purpose.
5. LIMITATION OF LIABILITY
In no event shall SUBLIME HQ PTY LTD be liable for any damages due to use of SUBLIME MERGE, to the maximum extent permitted by law. This includes without limitation, lost profits, business interruption, or lost information. In no event will SUBLIME HQ PTY LTD be liable for loss of data or for indirect, special, incidental, consequential (including lost profit), or other damages. SUBLIME HQ PTY LTD shall have no liability with respect to the content of SUBLIME MERGE or any part thereof, including but not limited to errors or omissions contained therein, libel, trademark rights, business interruption, loss of privacy or the disclosure of confidential information.

View File

@ -0,0 +1,3 @@
----- BEGIN LICENSE -----
ololo
------ END LICENSE ------

View File

@ -0,0 +1,50 @@
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Honghao Li <im@rasphino.cn>
# Contributor: Alexander Popov <iiiypuk@fastmail.fm>
pkgname=sublime-merge
pkgver=2059
pkgrel=1
pkgdesc='Meet a new Git Client, from the makers of Sublime Text'
arch=('x86_64')
url='https://www.sublimemerge.com'
license=('custom')
depends=('gtk3')
source=("https://download.sublimetext.com/sublime_merge_build_${pkgver}_x64.tar.xz"
"https://download.sublimetext.com/sublime_merge_build_${pkgver}_x64.tar.xz.asc"
LICENSE)
b2sums=('5d0e892131a658fce3b827b4b1cd08c202d7f1d180ec8dd7950a5e1025291ec89ef31e1ccbe1198d13dbff2098a73f326d83f62ee7caff2c3d2f8742c4d99c36'
'SKIP'
'e17f9223fc423b385d20f78fd54bf8bdc0722134cb89e1a12f9105a4d130e9ae12f81997904b52ce6d6db45810d23db53c8f90c8a9bc1ac0ae4a8532d1097396')
validpgpkeys=('1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A')
package() {
cd sublime_merge
install -dm755 "${pkgdir}"/usr/bin
# Install binaries
install -Dm755 -t "${pkgdir}"/opt/sublime_merge/ \
crash_reporter \
git-credential-sublime \
ssh-askpass-sublime \
sublime_merge
# link executable to /usr/bin/
ln -s /opt/sublime_merge/sublime_merge "${pkgdir}"/usr/bin/smerge
# copy misc files
cp --preserve=mode -r -t "${pkgdir}"/opt/sublime_merge/ \
changelog.txt \
Packages \
Icon
# link app icons to system folder
for res in 256x256 128x128 48x48 32x32 16x16; do
install -dm755 "${pkgdir}"/usr/share/icons/hicolor/${res}/apps
ln -s /opt/sublime_merge/Icon/${res}/sublime-merge.png "${pkgdir}"/usr/share/icons/hicolor/${res}/apps/sublime-merge.png
done
# install desktop file and license
install -Dm644 -t "${pkgdir}"/usr/share/applications/ "${srcdir}"/sublime_merge/sublime_merge.desktop
install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname}/ "${srcdir}"/LICENSE
}

19
packages/sublime-merge/crack.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# Thanks: https://gist.github.com/lugrus2000/1fc55158b87f94d799392a6dd1ac0ce2
cd /opt/sublime_merge || exit
md5sum -c <<<"54b7372d3ab785a49bda799c6350b009 sublime_merge" > /dev/null 2>&1 || exit
# Initial License Check
printf '\x48\xC7\xC0\x19\x01\x00\x00\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A5400)) conv=notrunc
# Persistent License Check 1
printf '\x90\x90\x90\x90\x90' | dd of=sublime_merge bs=1 seek=$((0x003A7EC9)) conv=notrunc
# Persistent License Check 2
printf '\x90\x90\x90\x90\x90' | dd of=sublime_merge bs=1 seek=$((0x003A7EE4)) conv=notrunc
# Disable Server Validation Thread
printf '\x48\x31\xC0\x48\xFF\xC0\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A67FE)) conv=notrunc
# Disable License Notify Thread
printf '\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A514E)) conv=notrunc
# Disable Crash Reporter
printf '\xC3' | dd of=sublime_merge bs=1 seek=$((0x003A40D2)) conv=notrunc