Commit 3e18f596 authored by Jan Baudisch's avatar Jan Baudisch Committed by GitHub

Merge branch 'master' into patch-16

parents f522f382 e587561b
......@@ -475,8 +475,8 @@ def install_package (pkgdir)
strip_find_files "find . -type f -name 'lib*.a' -print", "-S"
strip_find_files "find . -type f -name 'lib*.so*' -print", "-S"
# Strip binaries
strip_find_files "find . -type f -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
# Strip binaries but not compressed archives
strip_find_files "find . -type f ! -iname '*\.bz2' ! -iname '*\.gz' ! -iname '*\.lha' ! -iname '*\.rar' ! -iname '*\.tar' ! -iname '*\.tgz' ! -iname '*\.xz' ! -iname '*\.zip' -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
system "tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
......
......@@ -3,7 +3,7 @@ require 'package'
class Aircrack_ng < Package
description 'Key cracker for the 802.11 WEP and WPA-PSK protocols.'
homepage 'https://www.aircrack-ng.org'
version '1.2-rc4'
version '1.2-rc4-1'
source_url 'http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz'
source_sha256 'd93ac16aade5b4d37ab8cdf6ce4b855835096ccf83deb65ffdeff6d666eaff36'
......@@ -16,9 +16,8 @@ class Aircrack_ng < Package
depends_on "rfkill"
def self.build
system "make",
"sqlite=true",
"experimental=true"
# Need to specify TMPDIR to run automatic configuration tool correctly
system "TMPDIR=/usr/local/tmp make sqlite=true experimental=true"
end
def self.install
......
......@@ -7,7 +7,7 @@ class Aws < Package
source_url 'https://github.com/aws/aws-cli/archive/1.11.121.tar.gz'
source_sha256 'c667e77880a093d5ef3d635f19e7eab3cb0b7527f648d74e571fca8d170474a8'
depends_on 'python' unless File.exists? '/usr/local/bin/python'
depends_on 'python27' unless File.exists? '/usr/local/bin/python'
depends_on 'unzip'
def self.install
......
require 'package'
class Bash_completion < Package
description 'Programmable completion functions for bash'
homepage 'https://github.com/scop/bash-completion'
version '2.7-1'
source_url 'https://github.com/scop/bash-completion/archive/2.7.tar.gz'
source_sha256 'dba2b88c363178622b61258f35d82df64dc8d279359f599e3b93eac0375a416c'
depends_on 'autoconf'
depends_on 'automake'
def self.build
system "autoreconf -i"
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts
puts "To complete installation, execute the following:".lightblue
puts "echo '# bash completion' >> ~/.bashrc".lightblue
puts "echo '[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion ]] && \\' >> ~/.bashrc".lightblue
puts "echo '. /usr/local/share/bash-completion/bash_completion' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
end
end
......@@ -8,8 +8,9 @@ class Bc < Package
source_sha256 '62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a'
depends_on 'readline'
depends_on 'flex' => :build
depends_on 'flex'
depends_on 'ed' => :build
depends_on 'texinfo' => :build
def self.build
system "./configure", "--with-readline"
......
......@@ -7,9 +7,10 @@ class Cairo < Package
source_url 'https://www.cairographics.org/releases/cairo-1.14.10.tar.xz'
source_sha256 '7e87878658f2c9951a14fc64114d4958c0e65ac47530b8ac3078b2ce41b66a09'
depends_on 'fontconfig'
depends_on 'libpng'
depends_on 'pixman'
depends_on 'freetype' # pango requires cairo with freetype
depends_on 'fontconfig' # pango requires cairo with fontconfig
def self.build
system "./configure --disable-xlib"
......
......@@ -3,11 +3,18 @@ require 'package'
class Clamav < Package
description 'ClamAV is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats.'
homepage 'https://www.clamav.net/'
version '0.99.2'
version '0.99.2-1'
source_url 'https://www.clamav.net/downloads/production/clamav-0.99.2.tar.gz'
source_sha256 '167bd6a13e05ece326b968fdb539b05c2ffcfef6018a274a10aeda85c2c0027a'
depends_on 'patch'
depends_on 'autoconf'
def self.build
# Apply patch available at https://bugzilla.clamav.net/show_bug.cgi?id=11711.
# This will be fixed in next release.
system "curl -L 'https://bugzilla.clamav.net/attachment.cgi?id=7207' | patch -p0"
system "autoconf"
system "./configure"
system "make"
end
......
......@@ -3,7 +3,7 @@ require 'package'
class Cmatrix < Package
description "CMatrix is a program to see the cool scrolling lines from 'The Matrix' movie."
homepage 'http://www.asty.org/cmatrix/'
version '1.2a'
version '1.2a-1'
source_url 'http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz'
source_sha256 '1fa6e6caea254b6fe70a492efddc1b40ad7ccb950a5adfd80df75b640577064c'
......@@ -11,7 +11,7 @@ class Cmatrix < Package
depends_on 'ncurses'
def self.build
system './configure --prefix=/usr/local CPPFLAGS="-I/usr/local/include/ncurses"'
system "CPPFLAGS=-I#{CREW_PREFIX}/include/ncurses ./configure --prefix=#{CREW_PREFIX}"
system "make"
end
......
......@@ -3,11 +3,11 @@ require 'package'
class Diskscan < Package
description 'diskscan is intended to find sectors of a storage medium (hard disk, flash drive or pendrive, etc.) which are bad or in the process of going bad.'
homepage 'http://blog.disksurvey.org/proj/diskscan/'
version '0.19'
version '0.19-1'
source_url 'https://github.com/baruch/diskscan/archive/0.19.tar.gz'
source_sha256 '92a7298af99043e1e584e4343040b6574b9229f44c122e1cbcb90ba478d928d1'
depends_on 'cmake'
depends_on 'cmake' => :build
depends_on 'termcap'
def self.build
......@@ -18,8 +18,4 @@ class Diskscan < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make", "check"
end
end
require 'package'
# from LFS: http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook.html
class Docbook_xml < Package
description 'document type definitions for verification of XML data files against the DocBook rule set'
homepage 'http://www.docbook.org'
version '4.3'
source_url 'http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip'
source_sha256 '23068a94ea6fd484b004c5a73ec36a66aa47ea8f0d6b62cc1695931f5c143464'
depends_on 'unzip'
depends_on 'libxml2'
depends_on 'docbook'
def self.build
end
def self.install
system "install -v -d -m755 #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xml-dtd-4.3"
system "install -v -d -m755 #{CREW_DEST_DIR}/usr/local/etc/xml"
system "cp -v -af docbook.cat *.dtd ent/ *.mod #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xml-dtd-4.3"
system "if [ ! -e #{CREW_DEST_DIR}/usr/local/etc/xml/docbook ]; then
xmlcatalog --noout --create #{CREW_DEST_DIR}/usr/local/etc/xml/docbook
fi &&
xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V4.3//EN' \
'http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/calstblx.dtd' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//DTD XML Exchange Table Model 19990315//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/soextblx.dtd' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbpoolx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbhierx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/htmltblx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBook XML Notations V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbnotnx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbcentx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbgenent.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'rewriteSystem' \
'http://www.oasis-open.org/docbook/xml/4.3' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'rewriteURI' \
'http://www.oasis-open.org/docbook/xml/4.3' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook"
system "if [ ! -e #{CREW_DEST_DIR}/usr/local/etc/xml/catalog ]; then
xmlcatalog --noout --create #{CREW_DEST_DIR}/usr/local/etc/xml/catalog
fi &&
xmlcatalog --noout --add 'delegatePublic' \
'-//OASIS//ENTITIES DocBook XML' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'delegatePublic' \
'-//OASIS//DTD DocBook XML' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'delegateSystem' \
'http://www.oasis-open.org/docbook/' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'delegateURI' \
'http://www.oasis-open.org/docbook/' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog"
end
end
require 'package'
# from LFS: http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
class Docbook_xsl < Package
description 'The DocBook XSL Stylesheets package contains XSL stylesheets. These are useful for performing transformations on XML DocBook files.'
homepage 'https://github.com/docbook/xslt10-stylesheets'
version '1.79.1'
source_url 'http://downloads.sourceforge.net/docbook/docbook-xsl-1.79.1.tar.bz2'
source_sha256 '725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968'
depends_on 'unzip'
depends_on 'libxml2'
depends_on 'libxslt'
depends_on 'docbook_xml'
depends_on 'docbook'
def self.build
end
def self.install
system "install -v -m755 -d #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1 &&
cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \
highlighting html htmlhelp images javahelp lib manpages params \
profiling roundtrip slides template tests tools webhelp website \
xhtml xhtml-1_1 xhtml5 \
#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1 &&
ln -s VERSION #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1/VERSION.xsl &&
install -v -m644 -D README \
#{CREW_DEST_DIR}/usr/local/share/doc/docbook-xsl-1.79.1/README.txt &&
install -v -m644 RELEASE-NOTES* NEWS* \
#{CREW_DEST_DIR}/usr/local/share/doc/docbook-xsl-1.79.1"
system "xmlcatalog --noout --add 'rewriteSystem' \
'http://docbook.sourceforge.net/release/xsl/1.79.1' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'rewriteURI' \
'http://docbook.sourceforge.net/release/xsl/1.79.1' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'rewriteSystem' \
'http://docbook.sourceforge.net/release/xsl/current' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'rewriteURI' \
'http://docbook.sourceforge.net/release/xsl/current' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog"
end
end
require 'package'
class Dropbox < Package
description 'Dropbox simplifies the way you create, share and collaborate. Bring your photos, docs, and videos anywhere and keep your files safe.'
description 'Dropbox simplifies the way you create, share and collaborate. Bring your photos, docs, and videos anywhere and keep your files safe.'
homepage 'https://www.dropbox.com/'
version '30.4.22'
version '32.4.23-1'
case ARCH
when 'i686'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-30.4.22.tar.gz'
source_sha256 '4b41ab4fae4b02a0428cbafccb45ecde82b2b3b774127826f1945f660e0ed47f'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-32.4.23.tar.gz'
source_sha256 'd7e130f2872fb2d141f8d2f892f7a2c29b95ccd3620398c21ea53dee878dc075'
when 'x86_64'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-30.4.22.tar.gz'
source_sha256 '1928e49d91a5c039f4903c5bc12be032eb499fcc8352b6eb2a33b40b8d4c8961'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-32.4.23.tar.gz'
source_sha256 'a18dca750e72e0604b9798bfe5e0b9b7a2b5ed43116ab96166a298ae3c1b5086'
else
puts 'Unable to install dropboxd. Supported architectures include x86 and x86_64 only.'.lightred
puts 'Unable to install dropboxd. Supported architectures include i686 and x86_64 only.'.lightred
end
depends_on 'python' unless File.exists? '/usr/local/bin/python'
depends_on 'python27' unless File.exists? '/usr/local/bin/python'
def self.install
def self.build
system "wget https://linux.dropbox.com/packages/dropbox.py"
system "sed -i 's,~/.dropbox-dist,/usr/local/bin,g' dropbox.py"
system "sed -i 's,~/.dropbox-dist,#{CREW_LIB_PREFIX}/dropbox,g' dropbox.py"
system "echo '#!/bin/bash' > dropbox"
system "echo 'python /usr/local/bin/dropbox.py \$1' >> dropbox"
system "echo 'python #{CREW_PREFIX}/bin/dropbox.py \"\$@\"' >> dropbox"
system "chmod +x dropbox"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp -r .dropbox-dist/. #{CREW_DEST_DIR}/usr/local/bin"
system "cp dropbox.py #{CREW_DEST_DIR}/usr/local/bin"
system "cp dropbox #{CREW_DEST_DIR}/usr/local/bin"
end
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_LIB_PREFIX}/dropbox"
system "cp -r .dropbox-dist/* #{CREW_DEST_LIB_PREFIX}/dropbox"
system "cp dropbox.py #{CREW_DEST_PREFIX}/bin"
system "cp dropbox #{CREW_DEST_PREFIX}/bin"
end
end
......@@ -7,6 +7,8 @@ class Erlang < Package
source_url 'http://erlang.org/download/otp_src_20.0.tar.gz'
source_sha256 'fe80e1e14a2772901be717694bb30ac4e9a07eee0cc7a28988724cbd21476811'
depends_on 'flex' => :build
def self.build
system 'export ERL_OTP=`pwd`'
system './configure --prefix=/usr/local'
......
......@@ -7,6 +7,8 @@ class Freetype < Package
source_url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.8.tar.bz2'
source_sha256 'a3c603ed84c3c2495f9c9331fe6bba3bb0ee65e06ec331e0a0fb52158291b40b'
depends_on 'expat'
def self.build
system "./configure CFLAGS=\" -fPIC\""
system "make"
......
......@@ -3,9 +3,9 @@ require 'package'
class Git < Package
description 'Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.'
homepage 'https://git-scm.com/'
version '2.13.3'
source_url 'https://github.com/git/git/archive/v2.13.3.tar.gz'
source_sha256 '6b50ef5a0f886e41d0f969e68274bacfe8ade8bc22954143f7f6f1aab3b62b82'
version '2.14.1'
source_url 'https://github.com/git/git/archive/v2.14.1.tar.gz'
source_sha256 'ccc366d5d674fb755fd98d219c23f2b4e5da8a49d8582a6314813b280d75536b'
# use system zlibpkg, openssl, curl, expat
depends_on 'zlibpkg' => :build
......@@ -26,6 +26,19 @@ class Git < Package
def self.install
system "#{@make_cmd} DESTDIR=#{CREW_DEST_DIR} install"
system "mkdir -p #{CREW_DEST_PREFIX}/share/git-completion"
system "cp -r contrib/completion/* #{CREW_DEST_PREFIX}/share/git-completion"
puts
puts "Git completion support is available for the following shells:"
system "ls contrib/completion"
puts
puts "To add git completion for bash, execute the following:".lightblue
puts "echo '# git completion' >> ~/.bashrc".lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/share/git-completion/git-completion.bash ]; then' >> ~/.bashrc".lightblue
puts "echo ' source #{CREW_PREFIX}/share/git-completion/git-completion.bash' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
end
def self.check
......
require 'package'
class Git_lfs < Package
description 'Git extension for versioning large files'
homepage 'https://git-lfs.github.com/'
version '2.2.1'
source_url 'https://github.com/git-lfs/git-lfs/archive/v2.2.1.tar.gz'
source_sha256 'fede2b31b0539fd4a580f831867caac1b5d5dc4405e938c4ee0bfeacfb78ad7a'
depends_on 'go'
def self.build
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp"
system 'script/bootstrap'
end
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "cp -r bin/ #{CREW_DEST_PREFIX}"
end
end
......@@ -10,6 +10,8 @@ class Glib < Package
depends_on 'libffi'
depends_on 'gettext'
depends_on 'util_linux'
depends_on 'zlibpkg'
depends_on 'python27'
def self.build
system "./configure --with-pcre"
......
require 'package'
class Glide < Package
description 'Package Management for Golang'
homepage 'https://glide.sh/'
version '0.12.3'
case ARCH
when 'aarch64', 'armv7l'
source_url 'https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-armv7.tar.gz'
source_sha256 'cce4242c11d084f99087caaa0a42c8476a81db0cbcc83932f5821e1f29b7edb2'
when 'i686'
source_url 'https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-386.tar.gz'
source_sha256 '1f6fbcd84213c7c11a778ecd36d326d012f1a0555e6c0d6bf572dac7b80e8622'
when 'x86_64'
source_url 'https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz'
source_sha256 '0e2be5e863464610ebc420443ccfab15cdfdf1c4ab63b5eb25d1216900a75109'
end
depends_on 'go'
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "cp glide #{CREW_DEST_PREFIX}/bin"
end
end
......@@ -3,15 +3,15 @@ require 'package'
class Go < Package
description 'Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.'
homepage 'https://golang.org/'
version '1.8.3'
version '1.8.3-1'
source_url 'https://storage.googleapis.com/golang/go1.8.3.src.tar.gz'
source_sha256 '5f5dea2447e7dcfdc50fa6b94c512e58bfba5673c039259fd843f68829d99fa6'
# Tests requires perl
depends_on 'perl'
depends_on 'perl' => :build
# go is required to build versions of go > 1.4
unless File.exist? "#{CREW_PREFIX}/lib/go/bin/go"
depends_on 'go_bootstrap'
depends_on 'go_bootstrap' => :build
end
def self.build
......@@ -20,10 +20,13 @@ class Go < Package
unless File.exist? "#{CREW_PREFIX}/lib/go/bin/go"
system "GOROOT_BOOTSTRAP=#{CREW_PREFIX}/lib/go_bootstrap/go \
TMPDIR=#{CREW_PREFIX}/tmp \
GOROOT_FINAL=#{CREW_PREFIX}/lib/go \
./make.bash"
else
system "GOROOT_BOOTSTRAP=#{CREW_PREFIX}/lib/go \
TMPDIR=#{CREW_PREFIX}/tmp ./make.bash"
TMPDIR=#{CREW_PREFIX}/tmp \
GOROOT_FINAL=#{CREW_PREFIX}/lib/go \
./make.bash"
end
end
end
......@@ -33,30 +36,28 @@ class Go < Package
system "mkdir", "-p", dest
FileUtils.cp_r Dir.pwd, dest
# make a symbolic link for /usr/local/bin/{go,gofmt}
system "mkdir", "-p", "#{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln", "-s", "#{CREW_PREFIX}/lib/go/bin/go", "#{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln", "-s", "#{CREW_PREFIX}/lib/go/bin/gofmt", "#{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
puts "--------"
puts "Installed Go for #{ARCH} in #{CREW_PREFIX}/lib/go"
puts ""
puts "Make sure to set go environment variables."
puts ""
puts "Minimal:"
puts "\texport GOROOT=#{CREW_PREFIX}/lib/go"
puts "\texport PATH=$PATH:$GOROOT/bin"
puts ""
puts "To use `go run`:"
puts "\texport TMPDIR=#{CREW_PREFIX}/tmp"
puts ""
puts "To add environment variables, execute the following:".lightblue
puts ""
puts "echo 'export GOROOT=/usr/local/lib/go' >> ~/.bashrc".lightblue
puts "echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.bashrc".lightblue
puts "echo 'export TMPDIR=/usr/local/tmp' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts "To develop with `go`:"
puts "\tmkdir -p /usr/local/work/go"
puts "\tln -s /usr/local/work/go $HOME/go"
puts "\texport PATH=\"$HOME/go/bin:$PATH\""
puts "\texport TMPDIR=#{CREW_PREFIX}/tmp"
puts ""
end
def self.check
FileUtils.cd('src') do
system "PATH=\"#{Dir.pwd}/../bin:$PATH\" TMPDIR=\"#{CREW_PREFIX}/tmp\" go tool dist test"
system "PATH=\"#{Dir.pwd}/../bin:$PATH\" GOROOT=\"#{Dir.pwd}/..\" TMPDIR=\"#{CREW_PREFIX}/tmp\" go tool dist test"
end
end
end
require 'package'
class Gtk_doc < Package
description 'GTK-Doc is a project which was started to generate API documentation from comments added to C code.'
homepage 'https://www.gtk.org/gtk-doc'
version '1.26'
source_url 'https://github.com/GNOME/gtk-doc/archive/GTK_DOC_1_26.tar.gz'
source_sha256 'f0bcb1ff8268136fdbf426d7862f4f092e70b24a73632cfe0a3d31ed0d924b5c'
depends_on 'python3'
depends_on 'python27'
depends_on 'autoconf'
depends_on 'automake'
depends_on 'libxml2'
depends_on 'libxslt'
depends_on 'docbook'
depends_on 'docbook_xml'
depends_on 'docbook_xsl'
def self.build
system 'pip3 install six'
system 'pip install six'
system './autogen.sh --with-xml-catalog=/usr/local/etc/xml/catalog'
system './configure --with-xml-catalog=/usr/local/etc/xml/catalog'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,13 @@ require 'package'
class Harfbuzz < Package
description 'HarfBuzz is an OpenType text shaping engine.'
homepage 'https://www.freedesktop.org/wiki/Software/HarfBuzz/'
version '1.4.7'
source_url 'https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.7.tar.bz2'
source_sha256 'b85f6627425d54f32118308e053b939c63a388de9bf455b3830f68cad406bc6d'
version '1.4.8'
source_url 'https://github.com/behdad/harfbuzz/releases/download/1.4.8/harfbuzz-1.4.8.tar.bz2'
source_sha256 'ccec4930ff0bb2d0c40aee203075447954b64a8c2695202413cc5e428c907131'
depends_on 'glib'
depends_on 'icu4c'
depends_on 'freetype'
def self.build
system "./configure"
......
......@@ -11,6 +11,7 @@ class Httpd < Package
depends_on 'aprutil'
depends_on 'libtool'
depends_on 'pcre'
depends_on 'expat'
def self.build
system './configure'
......
......@@ -3,11 +3,11 @@ require 'package'
class Imagemagick < Package
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
homepage 'http://www.imagemagick.org/script/index.php'
version '7.0.6-4'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-7.0.6-4.tar.xz'
source_sha256 '5fe1ce7d78befb5c8aa7f8ae69710d0f78063d2e3a35c656521a3ce468ea733b'
version '7.0.6-7'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-7.0.6-7.tar.xz'
source_sha256 '732332a76cb62f067d680a90d85dd05a2f2592e0017af83becb639d05681106d'
depends_on 'pkgconfig'
depends_on 'buildessential' => :build
def self.build
system "./configure CFLAGS=\" -fPIC\" --without-python"
......
......@@ -3,9 +3,9 @@ require 'package'
class Imagemagick6 < Package
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
homepage 'http://www.imagemagick.org/script/index.php'
version '6.9.9-5'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-6.9.9-5.tar.xz'
source_sha256 'aa6444ece8d29b87fb4f25e997cd0b4fb48774206cea9490c6028babdee7d056'
version '6.9.9-7'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-6.9.9-7.tar.xz'
source_sha256 '8467a4c86e368323dd789053c9557dd32be2b3866273f5ee6dcf538656fa9ad3'
depends_on 'pkgconfig'
depends_on "libjpeg"
......
......@@ -10,6 +10,7 @@ class Libarchive < Package
depends_on 'acl'
depends_on 'attr'
depends_on 'lz4'
depends_on 'xzutils' => :build
def self.build
system "./configure --prefix=/usr/local --disable-static"
......
require 'package'
class Libbsd < Package
description 'This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.'
homepage 'https://libbsd.freedesktop.org/wiki'
version '0.8.6'
source_url 'https://libbsd.freedesktop.org/releases/libbsd-0.8.6.tar.xz'
source_sha256 '467fbf9df1f49af11f7f686691057c8c0a7613ae5a870577bef9155de39f9687'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,11 +3,17 @@ require 'package'
class Libcap < Package
description 'Libcap implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels.'
homepage 'https://directory.fsf.org/wiki/Libcap'
version '2.25'
version '2.25-1'
source_url 'https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.25.tar.xz'
source_sha256 '693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162'
depends_on 'gperf' => :build
depends_on 'perl' => :build
def self.build
# add includes option to make it work with gperf-3.1
system 'sed -e "/gperf --/s/gperf --/gperf --includes --/" -e "/gperf --/s/cap_lookup_name(/cap_dummy(/" -i libcap/Makefile'
# change the path to ld
system 'sed -i "s,/usr/bin/ld,/usr/local/bin/ld,g" Make.Rules'
# change prefix
......@@ -16,12 +22,10 @@ class Libcap < Package
system 'sed -i "s,^exec_prefix=,exec_prefix=\$(prefix)," Make.Rules'
# http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch
system 'sed -i "s,^\#ifdef VFS_CAP_U32,\#if defined (VFS_CAP_U32) \&\& defined (XATTR_NAME_CAPS),g" libcap/cap_file.c'
# only root user can setcap
system 'sed -i "s,\$(FAKEROOT)\$(SBINDIR)/setcap,sudo \$(FAKEROOT)\$(SBINDIR)/setcap," progs/Makefile'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "RAISE_SETFCAP=no", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libcheck < Package
description 'A unit testing framework for C'
homepage 'https://github.com/libcheck/check'
version '0.11.0'
source_url 'https://github.com/libcheck/check/releases/download/0.11.0/check-0.11.0.tar.gz'
source_sha256 '24f7a48aae6b74755bcbe964ce8bc7240f6ced2141f8d9cf480bc3b3de0d5616'
depends_on 'libtool'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,12 +3,14 @@ require 'package'
class Libxml2 < Package
description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/'
version '2.9.4'
version '2.9.4-1'
source_url 'ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz'
source_sha256 'ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c'
def self.build
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic", "--without-python"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}",
"--enable-shared", "--disable-static", "--with-pic", "--without-python",
"--without-lzma", "--without-zlib"
system "make"
end
......
require 'package'
class Mtdev < Package
description 'The mtdev is a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol.'
homepage 'http://bitmath.org/code/mtdev'
version '1.1.5'
source_url 'http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.bz2'
source_sha256 '6677d5708a7948840de734d8b4675d5980d4561171c5a8e89e54adf7a13eba7f'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Ninja < Package
description 'a small build system with a focus on speed'
homepage 'https://ninja-build.org'
version '1.7.2'
source_url 'https://github.com/ninja-build/ninja/archive/v1.7.2.tar.gz'
source_sha256 '2edda0a5421ace3cf428309211270772dd35a91af60c96f93f90df6bc41b16d9'
depends_on 'python3'
depends_on 'unzip'
def self.build
system "python3 configure.py --bootstrap"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp ninja #{CREW_DEST_DIR}/usr/local/bin/"
end
end
require 'package'
class Nodebrew < Package
description 'Node.js version manager'
homepage 'https://github.com/hokaccha/nodebrew'
version 'v0.9.7'
source_url 'https://github.com/hokaccha/nodebrew/archive/v0.9.7.tar.gz'
source_sha256 '3aa8b0cf30024d105f1ac6921aadf0440bc95bcae43df9d6ec58fc9de8cd352e'
depends_on 'perl'
def self.install
system "mkdir -p #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/nodebrew"
system "NODEBREW_ROOT=#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/nodebrew perl nodebrew setup > /dev/null"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/nodebrew #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/current/bin/node #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/current/bin/npm #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/current/bin/npx #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew $HOME/.nodebrew"
puts ""
puts "Please set PATH environment variable."
puts "\texport PATH=$HOME/.nodebrew/current/bin:$PATH"
puts ""
puts "To install the latest node, please execute:"
puts "\tnodebrew install-binary latest"
puts "\tnodebrew use latest"
puts ""
end
end
require 'package'
# @todo: provide vpnc-script (standalone), instructions for manual install:
#
# sudo su -
# mkdir /usr/local/etc/vpnc
# cd /usr/local/etc/vpnc
# wget http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script
# chmod a+x vpnc-script
# exit
# @todo: provide start-vpn script, instructions for manual connect:
# Usage (as root - run 'sudo su -'):
#
# Create 'tun0' tunnel interface:
#
# > ip tuntap add mode tun tun0
#
# Run openconnect on tun0 interface
#
# > openconnect -i tun0 vpn.example.com
# (Press Ctrl+C to exit)
#
# Shut down tun0 interface
#
# > ip tuntap del mode tun tun0
class Openconnect < Package
version '7.06-1'
version '7.08'
description 'OpenConnect is an SSL VPN client initially created to support Cisco\'s AnyConnect SSL VPN.'
homepage 'http://www.infradead.org/openconnect/'
source_url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-7.06.tar.gz'
source_sha256 'facf695368dc4537a6a30e2147be90b1d77ee3cb2d269eaef070b6d9ddab70f2'
source_url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-7.08.tar.gz'
source_sha256 '1c44ec1f37a6a025d1ca726b9555649417f1d31a46f747922b84099ace628a03'
depends_on 'buildessential'
depends_on 'libxml2'
depends_on 'gnutls'
depends_on 'vpnc'
def self.build
system "./configure CFLAGS=\" -fPIC\" --with-vpnc-script=/usr/local/etc/vpnc/vpnc-script"
system "./configure CFLAGS=' -fPIC' --with-vpnc-script=#{CREW_PREFIX}/etc/vpnc/vpnc-script"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_DIR}#{CREW_PREFIX}/bin") do
system "echo '#!/bin/bash' > vpnc-start"
system "echo 'if test \$1; then' >> vpnc-start"
system "echo ' sudo ip tuntap add mode tun tun0' >> vpnc-start"
system "echo ' read -p \"VPN Username: \" USER' >> vpnc-start"
system "echo ' read -s -p \"VPN Password: \" PASS' >> vpnc-start"
system "echo ' echo \"\$PASS\" | openconnect --user=\$USER --interface=tun0 -b \$1' >> vpnc-start"
system "echo 'else' >> vpnc-start"
system "echo ' echo \"Usage: vpnc-start vpn.example.com\"' >> vpnc-start"
system "echo 'fi' >> vpnc-start"
system "chmod +x vpnc-start"
system "echo '#!/bin/bash' > vpnc-stop"
system "echo 'killall openconnect' >> vpnc-stop"
system "echo 'sudo ip tuntap del mode tun tun0' >> vpnc-stop"
system "chmod +x vpnc-stop"
end
puts
puts "Added the following bash scripts:".lightblue
puts "vpnc-start - start vpn".lightblue
puts "vpnc-stop - stop vpn".lightblue
puts
end
end
......@@ -3,28 +3,36 @@ require 'package'
class Openssl < Package
description 'OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.'
homepage 'https://www.openssl.org/'
version '1.0.2l'
version '1.0.2l-1'
source_url 'https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz'
source_sha256 'a3d3a7c03c90ba370405b2d12791598addfcafb1a77ef483c02a317a56c08485'
binary_url ({
aarch64: 'https://github.com/jam7/chromebrew/releases/download/binaries/openssl-1.0.2l-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chromebrew/releases/download/binaries/openssl-1.0.2l-chromeos-armv7l.tar.xz',
})
binary_sha256 ({
aarch64: '4af16174aa6a9f565a5895fedea89daf0c8fb66b8f26b0c8416f5456aa440ea5',
armv7l: '4af16174aa6a9f565a5895fedea89daf0c8fb66b8f26b0c8416f5456aa440ea5',
})
depends_on 'perl' => :build
depends_on 'bc' => :build # required for `make test`
depends_on 'diffutils' => :build # required for `make test`
depends_on 'zlibpkg' => :build
def self.build
options="shared zlib-dynamic"
if `uname -m`.strip == 'aarch64'
options = options + " no-asm"
# Change default optimization level for armv7l from -O3 to -O2 because
# gcc-4.9.4 -O3 for armv7l cause `evp_test` problem like below.
#
# Testing cipher CAMELLIA-256-OFB(decrypt)
# Key
# 0000 60 3d eb 10 15 ca 71 be 2b 73 ae f0 85 7Decrypt failed
# d 77 81
# 0010 1f 35 2c 07 3b 61 08 d7 2d 98 10 a3 09 14 df f4
#
system "sed -e '/linux-armv4/s/-O3/-O2/' -i Configure"
# Specify armv7 for aarch64 since Chrome OS aarch64 uses armv7 binaries as its userland.
case `uname -m`.strip
when "aarch64"
system "./Configure --prefix=/usr/local --openssldir=/etc/ssl #{options} linux-armv4 -march=armv7-a"
else
system "./config --prefix=/usr/local --openssldir=/etc/ssl #{options}"
end
system "./config --prefix=/usr/local --openssldir=/etc/ssl #{options}"
system "make"
end
......@@ -35,7 +43,7 @@ class Openssl < Package
# move man to /usr/local/man
system "mv", "#{CREW_DEST_DIR}/etc/ssl/man", "#{CREW_DEST_DIR}/usr/local/man"
# remove all files pretended to install /etc/ssl (use system's /etc/ssl as is)
# remove all files under /etc/ssl (use system's /etc/ssl as is)
system "rm", "-rf", "#{CREW_DEST_DIR}/etc"
end
......
......@@ -3,14 +3,13 @@ require 'package'
class Pango < Package
description 'Pango is a library for laying out and rendering of text, with an emphasis on internationalization.'
homepage 'http://www.pango.org/'
version '1.40.0'
source_url 'https://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.0.tar.xz'
source_sha256 'da17985df314cb07d066ab5424f59c21ce973ece05b7de4df04d798ec8511c8b'
version '1.40.9'
source_url 'https://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.9.tar.xz'
source_sha256 '9faea6535312fe4436b93047cf7a04af544eb52a079179bd3a33821aacce7e16'
depends_on 'freetype'
depends_on 'fontconfig'
depends_on 'harfbuzz'
depends_on 'cairo'
depends_on 'glib'
def self.build
system "./configure"
......
......@@ -3,7 +3,7 @@ require 'package'
class Protobuf < Package
description 'Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.'
homepage 'https://developers.google.com/protocol-buffers/'
version '3.3.0'
version '3.3.0-1'
source_url 'https://github.com/google/protobuf/archive/v3.3.0.tar.gz'
source_sha256 '94c414775f275d876e5e0e4a276527d155ab2d0da45eed6b7734301c330be36e'
......@@ -12,12 +12,15 @@ class Protobuf < Package
def self.build
system './autogen.sh'
system './configure --prefix=/usr/local'
system "./configure --prefix=/usr/local --libdir=#{CREW_LIB_PREFIX}"
system 'make'
system 'make check'
end
def self.install
system 'make install'
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
def self.check
system 'make check'
end
end
require 'package'
class Python < Package
description 'Python is a programming language that lets you work quickly and integrate systems more effectively.'
homepage 'https://www.python.org/'
version '3.3.2'
binary_url ({
aarch64: 'https://dl.dropboxusercontent.com/s/xsu18iggr51ewqh/python-3.3.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/xsu18iggr51ewqh/python-3.3.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/mxgfmq992hhiawk/python-3.3.2-chromeos-i686.tar.gz',
x86_64: 'https://dl.dropboxusercontent.com/s/r1zvmza51hrr87q/python-3.3.2-chromeos-x86_64.tar.gz',
})
binary_sha256 ({
aarch64: '0a89003a282daeea2a9232d98135582dbe3a620b600036cdc2ce71409f18fbe3',
armv7l: '0a89003a282daeea2a9232d98135582dbe3a620b600036cdc2ce71409f18fbe3',
i686: 'dff30c6671aa3f378424f75eb704c6ef0fb806155a6e205246a06c9d347932df',
x86_64: '2a6f2786a82e1600abf795387ff80eb7407be9c2db94a10e58f59060b832388d',
})
end
......@@ -9,7 +9,7 @@ class Ranger < Package # the name of the package
depends_on 'less'
depends_on 'ncurses'
depends_on 'python'
depends_on 'python27'
def self.build
system "make"
......
......@@ -3,7 +3,7 @@ require 'package'
class Serf < Package
description 'The serf library is a high performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.'
homepage 'https://serf.apache.org/'
version '1.3.9-1'
version '1.3.9-2'
source_url 'https://www.apache.org/dist/serf/serf-1.3.9.tar.bz2'
source_sha256 '549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc'
......@@ -11,8 +11,11 @@ class Serf < Package
depends_on 'aprutil'
depends_on 'openssl'
def self.build
system "scons APR=#{CREW_PREFIX} APU=#{CREW_PREFIX} OPENSSL=#{CREW_PREFIX}/include/openssl PREFIX=#{CREW_PREFIX} LIBDIR=#{CREW_LIB_PREFIX}"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local"
system "scons APR=/usr/local APU=/usr/local OPENSSL=/usr/local/include/openssl PREFIX=#{CREW_DEST_DIR}/usr/local install"
system "scons install --install-sandbox=#{CREW_DEST_DIR}"
end
end
......@@ -3,14 +3,14 @@ require 'package'
class Stunnel < Package
description "Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code."
homepage 'https://www.stunnel.org/index.html'
version '5.41'
source_url 'https://www.stunnel.org/downloads/stunnel-5.41.tar.gz'
source_sha256 'f05c6321ee1f6ddebacc234ccf20825971941e831b5beea6d0ce0b8e1668148f'
version '5.42'
source_url 'https://www.stunnel.org/downloads/stunnel-5.42.tar.gz'
source_sha256 '1b6a7aea5ca223990bc8bd621fb0846baa4278e1b3e00ff6eee279cb8e540fab'
depends_on 'openssl'
def self.build
system "./configure"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......
......@@ -3,21 +3,19 @@ require 'package'
class Subversion < Package
description 'Subversion is an open source version control system.'
homepage 'https://subversion.apache.org/'
version '1.9.6-1'
source_url 'http://apache.mirrors.ionfish.org/subversion/subversion-1.9.6.tar.bz2'
source_sha256 'dbcbc51fb634082f009121f2cb64350ce32146612787ffb0f7ced351aacaae19'
version '1.9.7'
source_url 'http://www-us.apache.org/dist/subversion/subversion-1.9.7.tar.bz2'
source_sha256 'c3b118333ce12e501d509e66bb0a47bcc34d053990acab45559431ac3e491623'
depends_on 'aprutil'
depends_on 'autoconf'
depends_on 'libtool'
depends_on 'serf'
depends_on 'sqlite'
depends_on 'zlibpkg'
def self.build
system "sed -i 's,<serf.h>,</usr/local/include/serf-1/serf.h>,' subversion/libsvn_ra_serf/*"
system "sed -i 's,<serf_bucket_util.h>,</usr/local/include/serf-1/serf_bucket_util.h>,' subversion/libsvn_ra_serf/*.c"
system "sed -i 's,<serf_bucket_types.h>,</usr/local/include/serf-1/serf_bucket_types.h>,' subversion/libsvn_ra_serf/*.c"
system './configure'
system './configure', '--disable-static', "--libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
......
require 'package'
class Vpnc < Package
description 'client for cisco vpn concentrator'
homepage 'https://www.unix-ag.uni-kl.de/~massar/vpnc/'
version '0.5.3'
source_url 'https://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.3.tar.gz'
source_sha256 '46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884'
depends_on 'libgcrypt'
depends_on 'openssl'
depends_on 'perl'
def self.build
system "sed -i 's,\./makeman.pl,perl makeman.pl,' Makefile"
system "sed -i 's,ETCDIR=/etc/vpnc,ETCDIR=#{CREW_PREFIX}/etc/vpnc,' Makefile"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
require 'json'
require 'fileutils'
class Wine < Package
description 'Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD.'
homepage 'https://www.winehq.org/'
version '2.10'
version '2.10-1'
source_url 'https://dl.winehq.org/wine/source/2.x/wine-2.10.tar.xz'
source_sha256 '488df7ffd2e81da455bf428fc9eb784bb4273a890334500895665711bd52f179'
......@@ -15,7 +14,7 @@ class Wine < Package
def self.build
case ARCH
when "i686" || "armv7l" || "aarch64"
when "i686", "armv7l", "aarch64"
system "./configure --without-x"
when "x86_64"
system "./configure --without-x --enable-win64"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment