sublime-merge-bin: EULA: strip non-relevant text
Otherwise, the change in website's header will trigger change in EULA checksum.
This commit is contained in:
parent
0c66df6103
commit
12c7d61823
1 changed files with 6 additions and 2 deletions
|
@ -13,7 +13,7 @@ homepage="https://www.sublimemerge.com"
|
||||||
changelog="https://www.sublimemerge.com/download"
|
changelog="https://www.sublimemerge.com/download"
|
||||||
distfiles="https://download.sublimetext.com/sublime_merge_build_${version}_x64.tar.xz"
|
distfiles="https://download.sublimetext.com/sublime_merge_build_${version}_x64.tar.xz"
|
||||||
checksum=29844c7305b7f192b8b0bea6a32eebb80e7317f00ff9c39b4bfdab4982108720
|
checksum=29844c7305b7f192b8b0bea6a32eebb80e7317f00ff9c39b4bfdab4982108720
|
||||||
_license_checksum=0cf0c605c296198b1b176dcb56343e7eb4f297fdcc7ec64dc347bcabf48fc4e8
|
_license_checksum=33929b71625d13dacf2a0a5853171b9c04058f71e2955ee660b8d0f8dda45ed1
|
||||||
nopie=yes
|
nopie=yes
|
||||||
repository=nonfree
|
repository=nonfree
|
||||||
restricted=yes
|
restricted=yes
|
||||||
|
@ -21,7 +21,11 @@ replaces="sublime-merge>0"
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
$XBPS_FETCH_CMD https://www.sublimehq.com/eula
|
$XBPS_FETCH_CMD https://www.sublimehq.com/eula
|
||||||
w3m -dump -I utf-8 -T text/html < eula > 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)"
|
filesum="$(xbps-digest EULA)"
|
||||||
if [ "$filesum" != "$_license_checksum" ]; then
|
if [ "$filesum" != "$_license_checksum" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue