-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(scribus) Migrated to AU #709
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# [<img src="https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/c60e11994d4e9da90e4e5a974f54e284b8d92823/icons/scribus.svg" height="48" width="48" /> scribus](https://chocolatey.org/packages/scribus) | ||
|
||
Scribus is an Open Source program that brings professional page layout to Linux/UNIX, Mac OS X, OS/2 Warp 4, eComStation, Haiku and Windows desktops with a combination of press-ready output and new approaches to page design. | ||
|
||
Underneath a modern and user-friendly interface, Scribus supports professional publishing features, such as color separations, CMYK and spot colors, ICC color management, and versatile PDF creation. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
The embedded software have been downloaded from their sourceforge mirror <https://sourceforge.net/projects/scribus/files/scribus/1.4.6/> | ||
and can be verified by doing the following: | ||
|
||
1. Download the following: | ||
32-Bit software: <https://sourceforge.net/projects/scribus/files/scribus/1.4.6/scribus-1.4.6-windows.exe/download> | ||
64-Bit software: <https://sourceforge.net/projects/scribus/files/scribus/1.4.6/scribus-1.4.6-windows-x64.exe/download> | ||
2. Get the checksum using one of the following methods: | ||
- Using powershell function 'Get-FileHash' | ||
- Use chocolatey utility 'checksum.exe' | ||
3. The checksums should match the following: | ||
|
||
checksum type: sha256 | ||
checksum32: 7A3C24985D397FC149FB1B4852BB6BB911722C8B2ED44B04E350059A93ED5F4B | ||
checksum64: 267853DADFBF97309F4FE780FC8DA5B2807739A473AE1E58B0C90C5EE6EA2212 | ||
|
||
The file 'LICENSE.txt' has been obtained from <https://sourceforge.net/p/scribus/code/ci/master/tree/Scribus/COPYING> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>{{PackageName}}</id> | ||
<version>{{PackageVersion}}</version> | ||
<title>Scribus</title> | ||
<id>scribus</id> | ||
<version>1.4.6</version> | ||
<packageSourceUrl>https://github.com/Chocolatey/chocolatey-coreteampackages/tree/master/automatic/scribus</packageSourceUrl> | ||
<owners>chocolatey</owners> | ||
<title>Scribus</title> | ||
<authors>The Scribus Team</authors> | ||
<licenseUrl>https://www.gnu.org/licenses/gpl-2.0.html</licenseUrl> | ||
<projectUrl>http://scribus.net/canvas/Scribus</projectUrl> | ||
<projectUrl>https://www.scribus.net/</projectUrl> | ||
<iconUrl>https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/c60e11994d4e9da90e4e5a974f54e284b8d92823/icons/scribus.svg</iconUrl> | ||
<copyright>Copyright 2015-2016 The Scribus Team</copyright> | ||
<licenseUrl>https://sourceforge.net/p/scribus/code/ci/master/tree/Scribus/COPYING</licenseUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description> | ||
Scribus is an Open Source program that brings professional page layout to Linux/UNIX, Mac OS X, OS/2 Warp 4, eComStation, Haiku and Windows desktops with a combination of press-ready output and new approaches to page design. | ||
|
||
Underneath a modern and user-friendly interface, Scribus supports professional publishing features, such as color separations, CMYK and spot colors, ICC color management, and versatile PDF creation. | ||
</description> | ||
<projectSourceUrl>https://sourceforge.net/p/scribus/code/ci/master/tree/</projectSourceUrl> | ||
<tags>scribus desktop publishing admin foss cross-platform</tags> | ||
<summary>Open Source Desktop Publishing</summary> | ||
<releaseNotes></releaseNotes> | ||
<tags>desktop publishing admin</tags> | ||
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file --> | ||
<description>Dummy</description> | ||
<dependencies> | ||
<dependency id="Ghostscript.app" /> | ||
<dependency id="vcredist2008" version="9.0.30729.17" /> | ||
<dependency id="vcredist2012" version="11.0.61031" /> | ||
<dependency id="Ghostscript" version="9.21.0.20170331" /> | ||
<dependency id="chocolatey-core.extension" version="1.3.0" /> | ||
<!--We could set chocolatey to version 0.10.4, but that version was broken so we use 0.10.5--> | ||
<dependency id="chocolatey" version="0.10.5" /> | ||
</dependencies> | ||
<packageSourceUrl>https://github.com/chocolatey/chocolatey-coreteampackages</packageSourceUrl> | ||
</metadata> | ||
<files> | ||
<file src="legal\**" target="legal" /> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
$packageName = 'scribus' | ||
$fileType = 'exe' | ||
$silentArgs = '/S' | ||
# {\{DownloadUrlx64}\} gets “misused” here as 32- and 64-bit link array due to limitations of Ketarin/chocopkgup | ||
$urlArray = {{DownloadUrlx64}} | ||
$url = $urlArray[0] | ||
$url64bit = $urlArray[1] | ||
|
||
Install-ChocolateyPackage $packageName $fileType $silentArgs $url $url64bit | ||
$ErrorActionPreference = 'Stop'; | ||
|
||
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
$packageArgs = @{ | ||
packageName = 'scribus' | ||
fileType = 'exe' | ||
file = "$toolsPath\scribus-1.4.6-windows.exe" | ||
file64 = "$toolsPath\scribus-1.4.6-windows-x64.exe" | ||
softwareName = '' | ||
silentArgs = '/S' | ||
validExitCodes = @(0) | ||
} | ||
|
||
Install-ChocolateyInstallPackage @packageArgs | ||
|
||
Remove-Item -Force -ea 0 "$toolsPath\*.exe","$toolsPath\*.ignore" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Import-Module AU | ||
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1" | ||
|
||
$releases = 'https://sourceforge.net/projects/scribus/files/scribus/' | ||
$softwareName = 'Scribus*' | ||
|
||
function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix -FileNameSkip 1 } | ||
|
||
function global:au_AfterUpdate { Set-DescriptionFromReadme -SkipFirst 1 } | ||
|
||
function global:au_SearchReplace { | ||
@{ | ||
".\legal\VERIFICATION.txt" = @{ | ||
"(?i)(sourceforge *mirror\:?\s*)\<.*\>" = "`${1}<$($Latest.ReleasesUrl)>" | ||
"(?i)(\s*32\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL32)>" | ||
"(?i)(\s*64\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL64)>" | ||
"(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType32)" | ||
"(?i)(^\s*checksum(32)?\:).*" = "`${1} $($Latest.Checksum32)" | ||
"(?i)(^\s*checksum64\:).*" = "`${1} $($Latest.Checksum64)" | ||
} | ||
".\tools\chocolateyInstall.ps1" = @{ | ||
"(?i)(^\s*file\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName32)`"" | ||
"(?i)(^\s*file64\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName64)`"" | ||
} | ||
} | ||
} | ||
function global:au_GetLatest { | ||
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing | ||
|
||
$re = '\/[\d\.]+\/$' | ||
$builder = New-Object System.UriBuilder($releases) | ||
$builder.Path = $download_page.Links | ? href -match $re | select -first 1 -expand href | ||
$releasesUrl = $builder.Uri.ToString() | ||
|
||
$download_page = Invoke-WebRequest -Uri $releasesUrl -UseBasicParsing | ||
$re = '\.exe\/download$' | ||
$urls = $download_page.Links | ? href -match $re | select -expand href | ||
|
||
$url32 = $urls | ? { $_ -notmatch '\-x64' } | select -first 1 | ||
$url64 = $urls | ? { $_ -match '\-x64' } | select -first 1 | ||
|
||
$verRe = '\/' | ||
$version32 = $url32 -split "$verRe" | select -last 1 -skip 2 | ||
|
||
@{ | ||
URL32 = $url32 | ||
URL64 = $url64 | ||
Version = $version32 | ||
ReleasesUrl = $releasesUrl | ||
FileType = 'exe' | ||
} | ||
} | ||
|
||
update -ChecksumFor none |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something to put in here? Or should it be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ops, yeah something is supposed to go there.
I must have just forgotten about it.
That's what I get for working on multiple packages at the same time. XD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdmiringWorm ha ha, not a problem 👍