sublime-merge: replace with empty meta package
This commit is contained in:
parent
d72ef42973
commit
c0314306ef
3 changed files with 10 additions and 36 deletions
4
srcpkgs/sublime-merge/INSTALL.msg
Normal file
4
srcpkgs/sublime-merge/INSTALL.msg
Normal file
|
@ -0,0 +1,4 @@
|
|||
sublime-merge is replaced with the restricted sublime-merge-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
|
|
@ -1,41 +1,13 @@
|
|||
# Template file for 'sublime-merge'
|
||||
pkgname=sublime-merge
|
||||
version=2027
|
||||
version=2032
|
||||
revision=1
|
||||
archs="x86_64"
|
||||
wrksrc=sublime_merge
|
||||
hostmakedepends="w3m"
|
||||
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
|
||||
short_desc="New Git client, from the makers of Sublime Text"
|
||||
maintainer="Adelmo Junior <noblehelm@gmail.com>"
|
||||
license="custom:EULA"
|
||||
build_style=meta
|
||||
short_desc="Empty meta-package for sublime-merge"
|
||||
maintainer="mobinmob <mobinmob@disroot.org>"
|
||||
license="custom:EULA" #no vlicense check
|
||||
homepage="https://www.sublimemerge.com"
|
||||
distfiles="https://download.sublimetext.com/sublime_merge_build_${version}_x64.tar.xz"
|
||||
checksum=d932503d4f006c02dbd2b787d4fb0001f730fbdfe2f51fb9b55dd5d16d0859ff
|
||||
_license_checksum=aaf2f4a457945145bfea1ff06498806bd91951f76ec3cefec169f904ff4cb158
|
||||
nopie=yes
|
||||
repository=nonfree
|
||||
|
||||
|
||||
post_extract() {
|
||||
$XBPS_FETCH_CMD https://www.sublimehq.com/eula
|
||||
w3m -dump -I utf-8 -T text/html < eula > 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 "usr/share/sublime_merge"
|
||||
cp --preserve=mode -r ${wrksrc}/* "${DESTDIR}/usr/share/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 /usr/share/sublime_merge/sublime_merge ${DESTDIR}/usr/bin/subl-merge
|
||||
sed -i 's:Exec=/opt/sublime_merge/sublime_merge:Exec=/usr/share/sublime_merge/sublime_merge:' ${DESTDIR}/usr/share/applications/sublime_merge.desktop
|
||||
vlicense EULA
|
||||
vdoc "${XBPS_SRCPKGDIR}/${pkgname}/INSTALL.msg" README.voidlinux
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
site="https://www.sublimemerge.com/download"
|
||||
pattern='sublime_merge_build_\K[-.\d]+(?=_x64\.tar)'
|
Loading…
Reference in a new issue