Skip to content

Instantly share code, notes, and snippets.

@sowbug
Created January 15, 2018 22:41
Show Gist options
  • Save sowbug/8c4032d03761f4285df54fa0af2e3bf5 to your computer and use it in GitHub Desktop.
Save sowbug/8c4032d03761f4285df54fa0af2e3bf5 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import subprocess
SOURCES = [
('npth', 'npth-1.5'),
('ntbtls', 'ntbtls-0.1.2'),
('libgpg-error', 'libgpg-error-1.27'),
('libassuan', 'libassuan-2.5.1'),
('libgcrypt', 'libgcrypt-1.8.2'),
('libksba', 'libksba-1.3.5'),
('gnupg', 'gnupg-2.2.4'),
]
for s in SOURCES:
cmd = 'wget https://gnupg.org/ftp/gcrypt/%s/%s.tar.bz2' % (s[0], s[1])
process = subprocess.Popen(cmd)
process = subprocess.Popen('tar xf %s.tar.bz2' % s[1])
print "Everything is downloaded and extracted. Now execute these commands.\n"
for s in SOURCES:
print 'pushd %s; ./configure && make && sudo make install; popd' % s[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment