50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Template file for 'sublime-merge'
|
|
pkgname=sublime-merge
|
|
version=2079
|
|
revision=1
|
|
archs="x86_64"
|
|
hostmakedepends="w3m"
|
|
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
|
|
short_desc="New Git client, from the makers of Sublime Text"
|
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
|
license="custom:EULA"
|
|
homepage="https://www.sublimemerge.com"
|
|
changelog="https://www.sublimemerge.com/download"
|
|
distfiles="https://download.sublimetext.com/sublime_merge_build_${version}_x64.tar.xz"
|
|
checksum=cb8a1c2d7c7112419ac3d3bfbe15fd3099dce7a4202b7ed83c9914c0ad984b45
|
|
_license_checksum=287d037b0ecedb68ae1e3138411d54b87172156effecd1987a5f85834aa26a24
|
|
nopie=yes
|
|
repository=nonfree
|
|
|
|
post_extract() {
|
|
$XBPS_FETCH_CMD https://www.sublimehq.com/eula
|
|
sed -n '
|
|
/is licensed.*not sold/p
|
|
/<ol>/,${ /<\/ol>/{x;p;d}; H }
|
|
$a </ol>
|
|
' <eula | w3m -dump -I utf-8 -T text/html >EULA
|
|
|
|
filesum="$(xbps-digest EULA)"
|
|
if [ "$filesum" != "$_license_checksum" ]; then
|
|
msg_error "SHA256 mismatch for EULA:\n$filesum\n"
|
|
fi
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir "usr/bin"
|
|
vmkdir "opt/sublime_merge"
|
|
vcopy "*" opt/sublime_merge
|
|
vinstall "sublime_merge.desktop" 644 "usr/share/applications/"
|
|
for size in 16 32 48 128 256; do
|
|
vinstall "Icon/${size}x${size}/sublime-merge.png" 644 "usr/share/icons/hicolor/${size}x${size}/apps/"
|
|
done
|
|
ln -s /opt/sublime_merge/sublime_merge ${DESTDIR}/usr/bin/subl-merge
|
|
vlicense EULA
|
|
}
|
|
|
|
sublime-merge-bin_package() {
|
|
build_style=meta
|
|
short_desc+=" (transitional dummy package)"
|
|
depends="sublime-merge>=${version}_${revision}"
|
|
}
|