1
mirror of https://github.com/jakejarvis/homebrew-brew.git synced 2025-06-27 06:25:40 -04:00

add gpg-suite-no-drm

This commit is contained in:
2019-09-20 13:35:56 -04:00
parent c91baddb70
commit 5fa9a5fc24
3 changed files with 65 additions and 2 deletions

5
Brewfile Normal file
View File

@ -0,0 +1,5 @@
# Tap repo
tap "jakejarvis/brew"
# Casks
cask "gpg-suite-no-drm"

37
Casks/gpg-suite-no-drm.rb Normal file
View File

@ -0,0 +1,37 @@
cask 'gpg-suite-no-drm' do
version '2019.1_83'
sha256 '446f80f96ad57a93a657a66f4dc5ce3833aed94c7bd3d5dc839ac5fada0b5a6d'
url "https://github.com/GpgMailNoActivation/GpgMailNoActivation/releases/download/Ver_#{version}/RemoveGPGMailDRM_#{version}.dmg"
appcast 'https://github.com/GpgMailNoActivation/GpgMailNoActivation/releases.atom'
name 'GPG Suite No DRM'
homepage 'https://github.com/GpgMailNoActivation/GpgMailNoActivation'
depends_on macos: '>= sierra'
depends_on cask: 'gpg-suite'
conflicts_with cask: 'gpg-suite-no-mail'
# move bundles out of DMG and into Application Support
artifact 'GPGMail_13.mailbundle', target: '/Library/Application Support/GPGTools/GPGMail/GPGMail_13.mailbundle'
artifact 'GPGMail_14.mailbundle', target: '/Library/Application Support/GPGTools/GPGMail/GPGMail_14.mailbundle'
# save DRM'ed bundle in case of uninstall
preflight do
system_command '/bin/mv',
args: [
'/Library/Application Support/GPGTools/GPGMail/GPGMail_14.mailbundle',
'/Library/Application Support/GPGTools/GPGMail/GPGMail_14.mailbundle.drm'
],
sudo: true
end
# on uninstall, restore DRM'ed GPGMail_14.mailbundle and delete GPGMail_13.mailbundle
uninstall_postflight do
system_command '/bin/mv',
args: [
'/Library/Application Support/GPGTools/GPGMail/GPGMail_14.mailbundle.drm',
'/Library/Application Support/GPGTools/GPGMail/GPGMail_14.mailbundle'
],
sudo: true
end
end

View File

@ -1,2 +1,23 @@
# homebrew-brew
Personal formulae and casks
# Homebrew Formulae
🚨 Personal formulae and casks, use at your own risk!
## Usage
```bash
brew tap jakejarvis/brew
```
### Casks
[GPG Suite (No DRM on GPGMail)](Casks/gpg-suite-no-drm.rb)
```bash
brew cask install gpg-suite-no-drm
```
## License
This project is distributed under the [MIT license](LICENSE.md).