mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
xpdf-tools-LSP: Update to version 2023-Dec-05 (Close #5543)
- Update checkver
This commit is contained in:
parent
02fea1717c
commit
f496ce69ea
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"version": "2011-Aug-15",
|
"version": "2023-Dec-05",
|
||||||
"description": "All language support packages for xpdf-tools.",
|
"description": "All language support packages for xpdf-tools",
|
||||||
"homepage": "https://www.xpdfreader.com",
|
"homepage": "https://www.xpdfreader.com/",
|
||||||
"license": {
|
"license": {
|
||||||
"identifier": "GPL-2.0-only|GPL-3.0-only",
|
"identifier": "GPL-2.0-only|GPL-3.0-only",
|
||||||
"url": "https://www.xpdfreader.com/opensource.html"
|
"url": "https://www.xpdfreader.com/opensource.html"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"xpdf-tools": "xpdf-tools"
|
"xpdf-tools": "main/xpdf-tools"
|
||||||
},
|
},
|
||||||
"url": [
|
"url": [
|
||||||
"https://dl.xpdfreader.com/xpdf-arabic.tar.gz",
|
"https://dl.xpdfreader.com/xpdf-arabic.tar.gz",
|
||||||
@ -37,8 +37,15 @@
|
|||||||
],
|
],
|
||||||
"post_install": "Get-ChildItem -Path $dir -Filter 'xpdf-*' | ForEach-Object { Rename-Item -Path $_.FullName -NewName $_.Name.Replace('xpdf-','') }",
|
"post_install": "Get-ChildItem -Path $dir -Filter 'xpdf-*' | ForEach-Object { Rename-Item -Path $_.FullName -NewName $_.Name.Replace('xpdf-','') }",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://www.xpdfreader.com/download.html",
|
"script": [
|
||||||
"regex": "Latin2</a>\\n<small>\\[updated (.+?)]"
|
"$url = 'https://www.xpdfreader.com/download.html'",
|
||||||
|
"$resp = (Invoke-WebRequest -Uri $url).Content",
|
||||||
|
"$updateds = @()",
|
||||||
|
"($resp | Select-String -Pattern '\\[updated (.+?)\\]' -AllMatches).Matches | ForEach-Object { $updateds += $_.Groups[1].Value }",
|
||||||
|
"$sorted = $updateds | Sort-Object @{ Expression = { [datetime]::ParseExact($_, 'yyyy-MMM-dd', $null) } } -Descending",
|
||||||
|
"Write-Output $sorted[0]"
|
||||||
|
],
|
||||||
|
"regex": "(\\d{4}-\\w{3}-\\d{2})"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"url": [
|
"url": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user