Commit 951925ae authored by Kevin Perkins's avatar Kevin Perkins Committed by GitHub

Trim trailing whitespace in most files (#4946)

Co-authored-by: default avatarEd Reel <edreel@gmail.com>
parent 4add5117
......@@ -17,16 +17,16 @@ The crew build life-cycle consists of the stages as follows:
1. `fetch` - During the fetch phase `crew` uses `curl --ssl` to fetch the package
2. `extract` - Once the the package has been fetched, `crew` extracts the package
3. `self.prebuild` - Ony `sed` commands should be run during this stage - if provided
- During this stage `crew` `cd`'s into the extracted directory, and stays there until the `preinstall` stage
- During this stage `crew` `cd`'s into the extracted directory, and stays there until the `preinstall` stage
3. `self.patch` - Only `patch` commands should be used during this stage - If provided
4. `self.build` - Package is compiled and/or configured
5. `self.check` - Package is then checked - If provided
6. `self.preinstall` - Pre-install checks/edits are done - If provided
6. `self.preinstall` - Pre-install checks/edits are done - If provided
7. `self.install` - Commands to install to `#{CREW_DEST_DIR}` are run
- ONLY required function
- ONLY required function
8. `self.postinstall` - Post-install checks/edits are done - If provided
9. Package
- Only binary packages call this stage
9. Package
- Only binary packages call this stage
- Contents are checked and packaged, then installed to `#{CREW_PREFIX}`
***
## Binary
......@@ -38,7 +38,7 @@ Only the functions `self.preinstall` and `self.postinstall` are run during a bin
- `dlist` a list of directories used/installed to by the package
- `filelist` a list of all files included in the package
***
## Variables
## Variables
The required package variables are as follows: - [Rundown](#rundown)
......@@ -83,7 +83,7 @@ Optional functions are as follows:
- `self.prebuild` - Can be used to define functions<sup>(Or commands)</sup> that should be used to edit various files.
- `def self.patch` - Can be used to define functions<sup>(Or commands)</sup> that should be used to `patch` various files.
- `def self.preinstall` - Can be used to define functions<sup>(Or commands)</sup> that should happen `pre`-install.
- `def self.preinstall` - Can be used to define functions<sup>(Or commands)</sup> that should happen `pre`-install.
- `def self.check` - Can be used to define functions<sup>(Or commands)</sup> that should be used to check the compile binary.
- `def self.postinstall` - Can be used to define functions<sup>(Or commands)</sup> that should happen `post`-install.
- `is_fake` - Cane be used to label package as meta.
......@@ -92,7 +92,7 @@ Optional functions are as follows:
The rundown of what each function and variable are/(can be) used for follows.
A simple example ruby script can be found on the [Wiki](https://github.com/skycocker/chromebrew/wiki/Creating-a-package).
A simple example ruby script can be found on the [Wiki](https://github.com/skycocker/chromebrew/wiki/Creating-a-package).
```ruby
require 'package' # must occour within each `.rb`
# Notice the newline
......@@ -105,7 +105,7 @@ class Template < Package # Notice the capitals, EG: 'I3' - would be used for an
source_sha256 '#' # The `sha256` checksum of the downloaded source package
# Notice the newline
depends_on '#' # Soft where this package depends on
depends_on '#' => :build # Only required when the package
depends_on '#' => :build # Only required when the package
is built from source
# Notice the newline
def self.prebuild # For sed operations, not required
......@@ -114,18 +114,18 @@ class Template < Package # Notice the capitals, EG: 'I3' - would be used for an
def self.patch # For patch operations, not required
system '#' # Replace '#' with a patch operation
end
def self.build # Contains the commands which compile the package, required if package con be compiled
system '#' # Replace '#' with commands to compile the package
system '#' # Replace '#' with commands to compile the package
system '#' # Should contain something like, "./configure --prefix=/usr/local"
system '#' # Use in case additions commands are required
system '#' # Should contain something like, "'make -j$(nproc)'"
end
def self.check # For commands to check the build quality, called by 'crew build'
def self.check # For commands to check the build quality, called by 'crew build'
system '#'
end
def self.preinstall # For pre-install conditions, not required
system '#'
end
......@@ -133,9 +133,9 @@ class Template < Package # Notice the capitals, EG: 'I3' - would be used for an
def self.install # For make install, required if package can be installed
system '#' # Should contain something like, "'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'"
end
def self.postinstall # For post-install messages or operations, not required
system '#'
system '#'
end
end
```
......@@ -146,7 +146,7 @@ end
<a name="Arch">**Arch**</a>: Chromebrew packages for `x86_64`, `i686`, `armv7l`, and `aarch64`.
<a name="More">**More**</a>: Must come from an official source, not a distro's source archive. Should contain the version number<sup>(Which must be equal to the version variable)</sup> `https` is preferred over `http` or `ftp` - When possible.
<a name="More">**More**</a>: Must come from an official source, not a distro's source archive. Should contain the version number<sup>(Which must be equal to the version variable)</sup> `https` is preferred over `http` or `ftp` - When possible.
NOTE: All rules can have exceptions, if ***REQUIRED***, exceptions to the rules should be avoided at all costs.
......
......@@ -72,7 +72,7 @@ CREW_MESON_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmand
CREW_MESON_LTO_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -Dmandir=#{CREW_MAN_PREFIX} -Dbuildtype=release -Dcpp_args='-flto -fuse-ld=gold' -Dcpp_link_args='-flto' -Dc_args='-flto -fuse-ld=gold' -Dc_link_args='-flto'"
# Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
# and also https://bugzilla.redhat.com/show_bug.cgi?id=1425064
# Let's have two CREW_CMAKE_OPTIONS since this avoids the logic in the recipe file.
CREW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_LIBRARY_PATH=#{CREW_LIB_PREFIX} -DCMAKE_BUILD_TYPE=Release --build=#{CREW_BUILD} --host=#{CREW_BUILD} --target=#{CREW_BUILD}"
......
......@@ -23,11 +23,11 @@ class Adwaita_icon_theme < Package
depends_on 'gtk3'
depends_on 'librsvg'
depends_on 'gdk_pixbuf'
depends_on 'gdk_pixbuf'
depends_on 'vala' => :build
depends_on 'llvm' => :build
depends_on 'xdg_base'
def self.build
ENV['CFLAGS'] = "-fuse-ld=lld"
ENV['CXXFLAGS'] = "-fuse-ld=lld"
......@@ -42,7 +42,7 @@ class Adwaita_icon_theme < Package
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
end
def self.postinstall
puts "To add basic settings, execute the following:".lightblue
puts "Note that this will overwrite any existing ~/.config/gtk-3.0/settings.ini file!".lightred
......
......@@ -28,7 +28,7 @@ class Alsa_utils < Package
def self.patch
system "sed -i 's/export CFLAGS=/export CFLAGS+=/g' gitcompile"
end
def self.build
system "CFLAGS='-fuse-ld=lld ' ./gitcompile #{CREW_OPTIONS}"
end
......
......@@ -23,7 +23,7 @@ class Aria2 < Package
})
depends_on 'libgcrypt'
def self.build
system "env CFLAGS='-fuse-ld=gold -flto' CXXFLAGS='-fuse-ld=gold -flto' \
./configure #{CREW_OPTIONS} \
......
......@@ -41,7 +41,7 @@ class Arpack_ng < Package
suffix = '64'
interface = 'ON'
end
# Use the gold linker.
# Use the gold linker.
old_ld = `ld_default g`.chomp
system 'cmake',
'-DCMAKE_BUILD_TYPE=Release',
......
......@@ -20,9 +20,9 @@ class At_spi2_atk < Package
i686: '165854bff7a99fcfaf7a807e41eaa6d889c10998250f0c706dcb9eee3d198aba',
x86_64: '01c66589188a81499b7ac4424f937f3adbe7265bb1c55d8d0d8746df8d302061',
})
depends_on 'automake' => :build
depends_on 'at_spi2_core'
depends_on 'at_spi2_core'
depends_on 'atk'
def self.build
......
......@@ -29,7 +29,7 @@ class At_spi2_core < Package
depends_on 'libxcb'
depends_on 'gtk_doc'
depends_on 'libtool'
def self.build
system "./autogen.sh"
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
......
......@@ -20,7 +20,7 @@ class Atool < Package
i686: '690926e3c631340d2e3f0a91390d4a0c4c8ab1dd9001dc0aaf8eff019eaeb3d7',
x86_64: 'e8e9a3db6efd80ad3b5b18725c4c5c4816e56fc101ca273de072af489f8c0d1e',
})
depends_on 'perl'
def self.build
......@@ -31,5 +31,5 @@ class Atool < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
end
end
......@@ -24,7 +24,7 @@ class Babl < Package
depends_on 'meson' => :build
depends_on 'lcms'
depends_on 'pango'
def self.build
system 'meson',
"--prefix=#{CREW_PREFIX}",
......@@ -32,7 +32,7 @@ class Babl < Package
'_build'
system 'ninja -v -C _build'
end
def self.check
system 'ninja -C _build test'
end
......
......@@ -49,7 +49,7 @@ class Bacula < Package
'--enable-smartalloc',
'--with-mysql',
'--with-x'
system "sed -i 's,/usr/share,#{CREW_PREFIX}/share,g' Makefile"
system "sed -i 's,/usr/share,#{CREW_PREFIX}/share,g' Makefile"
system 'make'
end
......
......@@ -31,7 +31,7 @@ class Bash < Package
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_s "#{CREW_PREFIX}/bin/bash", "#{CREW_DEST_PREFIX}/bin/sh"
end
def self.postinstall
puts
puts "To complete the installation, execute the following:".lightblue
......
......@@ -35,23 +35,23 @@ diff config.mk.orig config.mk -u
@@ -12,8 +12,8 @@
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = /usr/local/include
+X11LIB = /usr/local/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -21,7 +21,7 @@
# freetype
FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = /usr/local/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
@@ -36,7 +36,7 @@
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} ${DEBUG_CPPFLAGS}
......@@ -59,11 +59,11 @@ diff config.mk.orig config.mk -u
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS} $(NAME_DEFINES)
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS}
LDFLAGS = ${LIBS}
# Solaris
@@ -44,4 +44,4 @@
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+#CC = cc
......
......@@ -13,7 +13,7 @@ class Cabal < Package
source_url 'https://downloads.haskell.org/~cabal/cabal-install-2.4.1.0/cabal-install-2.4.1.0-x86_64-unknown-linux.tar.xz'
source_sha256 '6136c189ffccaa39916f9cb5788f757166444a2d0c473b987856a79ecbf0c714'
end
case ARCH
when 'i686', 'x86_64'
depends_on 'ghc'
......
......@@ -22,16 +22,16 @@ class Cbase < Package
})
depends_on 'expat'
def self.build
# fix error on arm architecture
case ARCH
when 'armv7l','aarch64'
Dir.chdir("lib") do
system "sed -i '376c if (&vp == NULL)' strings.c" # change from if(!vp) to if (&vp == NULL), tested on armv7l
system "sed -i '376c if (&vp == NULL)' strings.c" # change from if(!vp) to if (&vp == NULL), tested on armv7l
end
end
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......
......@@ -36,13 +36,13 @@ class Ccache < Package
system "ninja"
end
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
Dir.chdir 'build' do
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/ccache/bin"
system "for _prog in gcc g++ c++; do
ln -s #{CREW_PREFIX}/bin/ccache #{CREW_DEST_LIB_PREFIX}/ccache/bin/$_prog
ln -s #{CREW_PREFIX}/bin/ccache #{CREW_DEST_LIB_PREFIX}/ccache/bin/$_prog
ln -s #{CREW_PREFIX}/bin/ccache #{CREW_DEST_LIB_PREFIX}/ccache/bin/${CHOST}-$_prog
done
for _prog in cc clang clang++; do
......@@ -50,7 +50,7 @@ class Ccache < Package
done"
end
end
def self.postinstall
system "ccache --set-config=sloppiness=file_macro,locale,time_macros"
puts "To compile using ccache you need to add the ccache bin folder to your path".lightblue
......
......@@ -20,7 +20,7 @@ class Clojure < Package
i686: '5a1db6246686b0485d62032530f069aa8f1a201c26aa34e09375395b0a4dffe1',
x86_64: '24966018c4e0d9ab94fe91a6094c03da6e95673de5c9a5a4a0b413a54027332e',
})
depends_on 'jdk8'
depends_on 'rlwrap'
......
......@@ -36,7 +36,7 @@ class Cracklib < Package
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
def self.test
Dir.chdir 'src' do
system 'make test'
......
......@@ -66,7 +66,7 @@ _EOF_'
--disable-webrtc-apm \
--enable-sse42 \
--enable-avx \
--enable-avx2
--enable-avx2
--enable-fma"
else
system "CFLAGS='-fuse-ld=lld' ./configure #{CREW_OPTIONS} \
......
......@@ -39,7 +39,7 @@ class Cvs < Package
"--libdir=#{CREW_LIB_PREFIX}"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -26,7 +26,7 @@ class Dconf < Package
depends_on 'glib' # version 2
depends_on 'meson' => :build
depends_on 'vala' => :build
def self.build
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} builddir"
system "ninja -C builddir"
......@@ -35,5 +35,5 @@ class Dconf < Package
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
......@@ -42,5 +42,5 @@ class Dejagnu < Package
system "install -v -m644 doc/dejagnu.html #{CREW_DEST_PREFIX}/share/doc/dejagnu-1.6.1"
system "install -v -m644 doc/dejagnu.txt #{CREW_DEST_PREFIX}/share/doc/dejagnu-1.6.1"
end
end
......@@ -12,7 +12,7 @@ class Docbook_xml < Package
depends_on 'docbook_xml44'
depends_on 'docbook_xml43'
depends_on 'docbook_xml42'
is_fake
end
......@@ -23,7 +23,7 @@ class Docbook_xml42 < Package
depends_on 'docbook_xml51'
depends_on 'docbook_xsl' # Requires the catalog.xml created within this package
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
......
......@@ -25,7 +25,7 @@ class Docbook_xml43 < Package
depends_on 'xmlcatmgr'
depends_on 'docbook_xml'
depends_on 'docbook_xsl'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
......
......@@ -23,7 +23,7 @@ class Docbook_xml44 < Package
depends_on 'docbook_xml51'
depends_on 'docbook_xsl'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
......
......@@ -23,7 +23,7 @@ class Docbook_xml45 < Package
depends_on 'docbook_xml51'
depends_on 'docbook_xsl'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
......
......@@ -23,7 +23,7 @@ class Docbook_xml50 < Package
depends_on 'docbook_xml51'
depends_on 'docbook_xsl'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
......
......@@ -80,7 +80,7 @@ class Docbook_xml51 < Package
'http://www.oasis-open.org/docbook/xml/#{xml_version}' \
'file://#{CREW_PREFIX}/share/xml/docbook/#{xml_dtd}' \
#{CREW_DEST_PREFIX}/etc/xml/docbook.xml"
system "rm -f #{CREW_PREFIX}/etc/xml/catalog* && \
xmlcatalog --noout --create #{CREW_DEST_PREFIX}/etc/xml/catalog.xml && \
xmlcatalog --noout --add 'delegatePublic' \
......
......@@ -56,4 +56,4 @@ EOF"
end
end
# NOTE:
# NOTE:
......@@ -22,7 +22,7 @@ class Eventstat < Package
})
def self.build
system "CPPFLAGS=-I#{CREW_PREFIX}/include/ncurses make"
system "CPPFLAGS=-I#{CREW_PREFIX}/include/ncurses make"
end
def self.install
......
......@@ -22,7 +22,7 @@ class Fakeroot < Package
})
depends_on 'libcap'
def self.build
system './bootstrap'
system "./configure", "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}"
......
......@@ -22,7 +22,7 @@ class Faultstat < Package
})
def self.build
system "CPPFLAGS=-I#{CREW_PREFIX}/include/ncurses make"
system "CPPFLAGS=-I#{CREW_PREFIX}/include/ncurses make"
end
def self.install
......
......@@ -36,7 +36,7 @@ class Filecmd < Package
def self.check
system "make", "check"
end
def self.install
system "install -Dm755 filefix #{CREW_DEST_PREFIX}/bin/filefix"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
......
......@@ -20,7 +20,7 @@ class Filezilla < Package
depends_on 'wayland_protocols'
depends_on 'mesa'
depends_on 'xcb_util'
def self.patch
system 'filefix'
......
......@@ -21,7 +21,7 @@ class Firejail < Package
i686: 'b5e81766f7cd14ea389ed9b767178d113e4073e021c67b6cf7a2ab26a8dcc00f',
x86_64: 'c6c490e1955926bebba1a01bac60472fc9d1a536ad4339b6ab1c5ac278be2b53',
})
def self.build
system "sed -i 's,-fstack-protector-all,,g' src/common.mk.in"
system "sed -i 's,-fstack-protector-all,,g' src/libtrace/Makefile.in"
......
......@@ -24,7 +24,7 @@ class Font_bh_ttf < Package
depends_on 'bdftopcf'
depends_on 'font_util'
depends_on 'mkfontscale'
def self.build
system "./configure #{CREW_OPTIONS} --with-fontrootdir=#{CREW_PREFIX}/share/fonts"
system 'make'
......
......@@ -24,7 +24,7 @@ class Freetype_sub < Package
depends_on 'expat'
depends_on 'libpng' # freetype needs zlib optionally. zlib is also the dependency of libpng
depends_on 'bz2'
def self.build
system 'pip3 install docwriter'
system "./configure CFLAGS=' -fPIC' #{CREW_OPTIONS} --enable-freetype-config --without-harfbuzz"
......@@ -36,7 +36,7 @@ class Freetype_sub < Package
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
system "find #{CREW_BREW_DIR}/* -name freetype*.tar | xargs rm -rf" # make sure to delete downloaded files
end
......
......@@ -36,7 +36,7 @@ class Gcc10 < Package
depends_on 'isl'
depends_on 'glibc'
depends_on 'zstd'
def self.preinstall
installed_gccver = `gcc -v 2>&1 | tail -1 | cut -d' ' -f3`.chomp
gcc_version = version.split("-")[0]
......@@ -49,9 +49,9 @@ class Gcc10 < Package
system "ccache --set-config=sloppiness=file_macro,locale,time_macros"
# Prefix ccache to path.
ENV['PATH'] = "#{CREW_LIB_PREFIX}/ccache/bin:#{CREW_PREFIX}/bin:/usr/bin:/bin"
gcc_version = version.split("-")[0]
# previous compile issue
# /usr/local/bin/ld: cannot find crti.o: No such file or directory
# /usr/local/bin/ld: cannot find /usr/lib64/libc_nonshared.a
......@@ -177,7 +177,7 @@ class Gcc10 < Package
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gcc-nm-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gcc-nm"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gcc-ranlib-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gcc-ranlib"
FileUtils.ln_s "#{CREW_PREFIX}/bin/#{gcc_arch}-gfortran-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-gfortran"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-ar-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-ar"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-nm-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-nm"
FileUtils.ln_s "#{CREW_PREFIX}/bin/gcc-ranlib-#{gcc_version}", "#{CREW_DEST_PREFIX}/bin/#{gcc_arch}-ranlib"
......
......@@ -48,7 +48,7 @@ class Gegl < Package
'_build'
system 'ninja -v -C _build'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
end
......
......@@ -38,7 +38,7 @@ class Gemacs < Package
--with-gif=yes \
--with-jpeg=yes \
--with-png=yes \
--with-rsvg=yes"
--with-rsvg=yes"
system 'make'
end
......
......@@ -36,7 +36,7 @@ class Get_iplayer < Package
system "make install"
system "make DESTIDR=#{CREW_DEST_DIR} install"
end
system "cpanm JSON::PP --force"
system "cpanm LWP --force"
system "cpanm LWP::Protocol::https --force"
......@@ -51,7 +51,7 @@ class Get_iplayer < Package
system "make install"
system "make DESTIDR=#{CREW_DEST_DIR} install"
end
system "cpanm CGI --force"
end
......
......@@ -22,7 +22,7 @@ class Giblib < Package
})
depends_on 'imlib2'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system 'make'
......
......@@ -33,7 +33,7 @@ class Glade < Package
system "meson configure build"
system "ninja -C build"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
end
......
......@@ -31,7 +31,7 @@ class Glew < Package
system "sed -i 's/endif()/endif ()/g' cmake/CMakeLists.txt"
end
end
def self.build
#ENV['CFLAGS.EXTRA'] = "-fuse-ld=lld"
#ENV['CFLAGS'] = "-fuse-ld=lld"
......
......@@ -7,7 +7,7 @@ class Gn < Package
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gn-dca877f-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gn-dca877f-chromeos-armv7l.tar.xz',
......
......@@ -20,7 +20,7 @@ class Gnome_common < Package
i686: 'c979f4542bb8b87fb4883787005a1ccbec9e752829885cd5e3c66a385336a15c',
x86_64: 'c04053bbe47296b90c22a3d5767d54645f819ef73ee362a60e1e179a8ce836cd',
})
def self.build
system "sh autogen.sh"
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
......
......@@ -30,5 +30,5 @@ class Gpart < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
end
end
......@@ -30,12 +30,12 @@ class Graphene < Package
-Darm_neon=false \
-Dinstalled_tests=false \
-Dtests=false \
_build"
system "meson configure _build"
_build"
system "meson configure _build"
system "ninja -v -C _build"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
end
end
end
......@@ -29,7 +29,7 @@ class Graphite < Package
system "cmake #{CREW_CMAKE_LIBSUFFIX_OPTIONS} .."
end
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
......
......@@ -38,7 +38,7 @@ class Gspell < Package
# Fixes ./configure: /usr/bin/file: No such file or directory
system 'filefix'
end
def self.build
system "CFLAGS=-fuse-ld=lld \
CXXFLAGS=-fuse-ld=lld \
......
......@@ -48,7 +48,7 @@ class Gst_plugins_base < Package
"-Dgst_debug=false",
"-Dexamples=disabled",
"build"
system "ninja -C build"
system "ninja -C build"
end
def self.install
......
......@@ -29,7 +29,7 @@ class Gtest < Package
ARCH_C_FLAGS = ''
ARCH_CXX_FLAGS = ''
end
def self.build
system "sed -E \"s|(GOOGLETEST_VERSION) [0-9\\.]+|\\1 1.10.0|\" -i CMakeLists.txt"
system "env LIBRARY_PATH=#{CREW_LIB_PREFIX} cmake -G Ninja \
......@@ -46,7 +46,7 @@ class Gtest < Package
-Bbuilddir"
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
......
......@@ -20,7 +20,7 @@ class Homebank < Package
i686: 'cecfc9b0b8e6952ab81ab38213c648a4c475843b264f55fa0067163a533108e9',
x86_64: 'c8d1b25d778c7bfbecc9b2704e1e5d166213be5d6fe760c624f1adf86df327de',
})
depends_on 'libofx'
depends_on 'libsoup'
depends_on 'gtk3'
......
......@@ -22,7 +22,7 @@ class Hunspell_base < Package
})
depends_on 'readline'
def self.build
system 'autoreconf -vfi'
system "./configure",
......
......@@ -6,7 +6,7 @@ class I3 < Package
version '4.18.3'
compatibility 'all'
source_url 'https://i3wm.org/downloads/i3-4.18.3.tar.bz2'
source_sha256 '53ae7903fad6eea830d58e949698e4a502c432c0d0a582659a0a59b1b995b10d'
source_sha256 '53ae7903fad6eea830d58e949698e4a502c432c0d0a582659a0a59b1b995b10d'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/i3-4.18.3-chromeos-armv7l.tar.xz',
......@@ -20,7 +20,7 @@ class I3 < Package
i686: '7583a48fa03974296c0c27a25b44ec2b1fe6aebdce42f98918e3a9981fb5f24c',
x86_64: '4af8555c05da78e9c24e81475b411c6397fc3afbca733016d422dc00dfc0402e',
})
depends_on 'libev'
depends_on 'startup_notification'
depends_on 'xcb_util_cursor'
......@@ -30,7 +30,7 @@ class I3 < Package
depends_on 'yajl'
depends_on 'wayland' => :build
depends_on 'sommelier'
def self.build
system "./configure #{CREW_OPTIONS} --disable-builddir --disable-maintainer-mode --enable-mans"
system "make -j#{CREW_NPROC}"
......@@ -49,7 +49,7 @@ class I3 < Package
system "chmod +x starti3"
end
end
def self.postinstall
puts
puts "To use this package, you need to download XServer XSDL from Google Play Store".lightblue
......
......@@ -64,7 +64,7 @@ class Imagemagick7 < Package
'--with-perl',
'--with-rsvg',
'--with-x'
system 'make'
system 'make'
end
def self.install
......
......@@ -25,7 +25,7 @@ class Intltool < Package
depends_on 'perl_xml_parser'
depends_on 'patch' => :build
depends_on 'wget' => :build
def self.patch
system "wget https://raw.githubusercontent.com/Alexpux/MSYS2-packages/master/intltool/perl-5.22-compatibility.patch"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('perl-5.22-compatibility.patch') ) == '9c6527072aada6e3cb9aceb6e07cfdf51d58839a2beb650168da0601a85ebda3'
......
......@@ -26,9 +26,9 @@ class Itstool < Package
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
require 'package'
class Json2xml < Package
description 'json to xml converter'
......
......@@ -34,7 +34,7 @@ class Json_glib < Package
def self.check
system "meson test -C _build"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
end
......
......@@ -21,7 +21,7 @@ class Kakoune < Package
i686: 'd602be65796ba2ec9b13a105910225469e9ba0b73c32459169b1e8ea8784ce13',
x86_64: 'daed7d68e53f1f2751dc6a9a59c3efaab0a89651ff690b2cb5ac8be02e4d95f1',
})
depends_on 'ncurses' => :build
depends_on 'asciidoc' => :build
depends_on 'libxslt' => :build
......
......@@ -24,7 +24,7 @@ class Ld_default < Package
if [[ \"\${type}\" == \"ELF\" ]]; then
current=\$(basename $(find . -inum \$(ls -i ld | cut -d' ' -f1) | fgrep 'ld.'))
elif [[ \"${type}\" == \"symbolic\" ]]; then
elif [[ \"${type}\" == \"symbolic\" ]]; then
current=\$(basename \$(readlink ld))
elif [[ \"${type}\" == \"Bourne-Again\" ]]; then
current=\$(basename \$(tail -1 ld | cut -d' ' -f1))
......
......@@ -35,7 +35,7 @@ class Ldc < Package # The first character of the class name must
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('ldc-0.17.5-src.tar.gz') ) == '7aa540a135f9fa1ee9722cad73100a8f3600a07f9a11d199d8be68887cc90008'
system "tar xzf ldc-0.17.5-src.tar.gz -C build"
system "cmake", "-Bbuild/ldc-0.17.5-src", "-Hbuild/ldc-0.17.5-src"
system "make", "-C", "build/ldc-0.17.5-src", "-j#{CREW_NPROC}"
system "make", "-C", "build/ldc-0.17.5-src", "-j#{CREW_NPROC}"
system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_SKIP_RPATH=ON", "-DBUILD_SHARED_LIBS=BOTH",
"-DLDC_WITH_LLD=OFF", "-DD_COMPILER=build/ldc-0.17.5-src/bin/ldmd2",
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}", "-Bbuild", "-H."
......
......@@ -25,8 +25,8 @@ class Libass < Package
#depends_on 'autoconf' => :build
#depends_on 'libtool' => :build
depends_on 'fribidi'
depends_on 'fontconfig'
depends_on 'fontconfig'
def self.build
system "autoconf"
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
......
......@@ -22,7 +22,7 @@ class Libcap_ng < Package
})
depends_on 'python3'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -22,7 +22,7 @@ class Libconfig < Package
})
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......
......@@ -43,8 +43,8 @@ class Libdrm < Package
"--libdir=#{CREW_LIB_PREFIX}",
"--prefix=#{CREW_PREFIX}",
"builddir/"
system "ninja -C builddir/"
system "ninja -C builddir/"
end
def self.install
......
......@@ -20,7 +20,7 @@ class Libev < Package
i686: 'd079e81b116054cf936fe1d3396582911432b8acc203cbdf3babd1df6e4dac9f',
x86_64: 'dfb18c0c4dbee0bb6b0ca5cdacbb77ba1fb40f8b77e93f02f791b79871e467c2',
})
def self.build
system "./configure #{CREW_OPTIONS}"
system "make -j#{CREW_NPROC}"
......
......@@ -23,7 +23,7 @@ class Libevdev < Package
depends_on 'doxygen' => :build
depends_on 'python27' => :build
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
require 'package'
class Libfilezilla < Package
description 'libfilezilla is a small and modern C++ library, offering some basic functionality to build high-performing, platform-independent programs.'
homepage 'https://lib.filezilla-project.org/'
......
......@@ -13,7 +13,7 @@ class Libgdiplus < Package
depends_on 'graphite'
depends_on 'libexif'
depends_on 'libtiff'
def self.build
system "env NOCONFIGURE=1 ./autogen.sh"
system "./configure #{CREW_OPTIONS} \
......
......@@ -23,7 +23,7 @@ class Libhandy < Package
depends_on 'vala'
def self.prebuild
system "sed -i 's,-fstack-protector-strong,-fno-stack-protector,' meson.build"
end
......
......@@ -25,29 +25,29 @@ class Libinput < Package
depends_on 'libevdev'
depends_on 'libwacom'
depends_on 'libunwind'
depends_on 'libcheck'
depends_on 'libcheck'
depends_on 'valgrind' => :build
depends_on 'meson' => :build
# If debug-gui feature is required, uncomment following lines and remove "-Ddebug-gui=false" to enable it
#depends_on 'graphviz' => :build
#depends_on 'gtk3' => :build
def self.build
system "meson \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
-Ddebug-gui=false \
-Ddocumentation=false \
_build"
system "ninja -v -C _build"
_build"
system "ninja -v -C _build"
end
def self.check
system 'ninja -C _build test'
end
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
end
......
......@@ -35,7 +35,7 @@ class Libjpeg_turbo < Package
def self.check
system "make -j#{CREW_NPROC} test"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -37,5 +37,5 @@ class Libnotify < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
end
end
......@@ -22,7 +22,7 @@ class Libnsgif < Package
})
depends_on 'netsurf_buildsystem' => :build
def self.build
system "make PREFIX=#{CREW_PREFIX} COMPONENT_TYPE=lib-shared"
end
......
......@@ -17,7 +17,7 @@ class Libostree < Package
depends_on 'avahi'
depends_on 'gtk_doc' => :build
depends_on 'libxml2' => :build
def self.build
system "./autogen.sh #{CREW_OPTIONS} \
--with-curl \
......
......@@ -20,9 +20,9 @@ class Libparserutils < Package
i686: 'cf81d606dddc0f9c0667d5b53f656f4e282fcf1aefd7d0e7e75a35d467faf88f',
x86_64: '3f571ae3599d8623b433faf79944f3be1598fc1aaefdfd555cde4882bcc4936c',
})
depends_on 'netsurf_buildsystem' => :build
def self.build
system "make PREFIX=#{CREW_PREFIX} COMPONENT_TYPE=lib-shared"
end
......
......@@ -6,7 +6,7 @@ class Librespot < Package
version '0.1.3'
compatibility 'aarch64,armv7l,x86_64'
source_url 'https://github.com/librespot-org/librespot/archive/v0.1.3.tar.gz'
source_sha256 '2d28a63c6dda08ecbc1245c7cfe34c9b3b29e8c5304f4aa8b65aedb899056b25'
source_sha256 '2d28a63c6dda08ecbc1245c7cfe34c9b3b29e8c5304f4aa8b65aedb899056b25'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/librespot-0.1.3-chromeos-armv7l.tar.xz',
......@@ -18,11 +18,11 @@ class Librespot < Package
armv7l: 'ecfcbfaf8f71b1a4442535a0dc97e2d3db4dd5c67c7200deb040da74db56c099',
x86_64: '0ba9038b2e38df1d684328050885b050959ae10df0028dc390c442da647d4228',
})
depends_on 'rust' => :build
depends_on 'alsa_lib'
depends_on 'alsa_utils'
def self.build
system 'cargo build --release --no-default-features --features "alsa-backend"'
end
......
......@@ -32,7 +32,7 @@ class Librsvg < Package
depends_on 'glib'
depends_on 'vala' => :build
depends_on 'six' => :build
def self.build
# Following rustup modification as per https://github.com/rust-lang/rustup/issues/1167#issuecomment-367061388
system "rustup install stable --profile minimal || (rm -frv ~/.rustup/toolchains/* && rustup install stable --profile minimal)"
......
......@@ -38,7 +38,7 @@ class Libsoxr < Package
end
system "make"
end
def self.check
system "make check"
end
......
......@@ -22,7 +22,7 @@ class Libssh < Package
})
depends_on 'libgcrypt'
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
......
......@@ -23,7 +23,7 @@ class Libwacom < Package
depends_on 'libgudev'
depends_on 'eudev'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -20,7 +20,7 @@ class Libwapcaplet < Package
i686: '3b621c7937f5b69a7875d611ec6cd441c65764432af794d9b8c942b5c250c07a',
x86_64: '44bd2c72b15c9d059b51b4dc598fd5b9044b12a10ca55b0dfc561b1d71e36073',
})
depends_on 'netsurf_buildsystem' => :build
def self.build
......
......@@ -32,7 +32,7 @@ class Libwnck < Package
'_build'
system 'ninja -v -C _build'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
end
......
......@@ -20,9 +20,9 @@ class Libxau < Package
i686: '4343e16f6c9bf01c4234a194e7478b45542c58abb0affa1032c2ae9c5abe802c',
x86_64: '6fe73440b9a5a242617a8a0a4e55a5c2e18fe070e6842852a89b95e23fcd1aa5',
})
depends_on 'xorg_proto'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -24,7 +24,7 @@ class Libxcomposite < Package
depends_on 'libxfixes'
depends_on 'libxext'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -23,7 +23,7 @@ class Libxcursor < Package
depends_on 'libxrender'
depends_on 'libxfixes'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -22,7 +22,7 @@ class Libxext < Package
})
depends_on 'llvm' => ':build'
def self.build
ENV['CFLAGS'] = "-fuse-ld=lld"
ENV['CXXFLAGS'] = "-fuse-ld=lld"
......
......@@ -22,7 +22,7 @@ class Libxfixes < Package
})
depends_on 'libx11'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -23,7 +23,7 @@ class Libxscrnsaver < Package
depends_on 'libx11'
depends_on 'libxext'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -23,7 +23,7 @@ class Libxtst < Package
depends_on 'libxi'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
......
......@@ -22,7 +22,7 @@ class Linux_pam < Package
})
depends_on 'libdb' # libdb needs to be built with "--enable-dbm"
def self.build
system "./configure #{CREW_OPTIONS} --enable-static --disable-nis"
system 'make'
......
......@@ -323,7 +323,7 @@ clang++ -fPIC -rtlib=compiler-rt -stdlib=libc++ -cxx-isystem \${cxx_sys} -I \${
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
#def self.check
# Dir.chdir("builddir") do
# system "make -k -j#{CREW_NPROC} check-llvm"
......
......@@ -35,11 +35,11 @@ class Lua < Package
end
def self.install
system 'make',
'linux',
system 'make',
'linux',
"PREFIX=#{CREW_PREFIX}",
"LIBDIR=#{CREW_LIB_PREFIX}",
"INSTALL_TOP=#{CREW_DEST_PREFIX}",
"INSTALL_TOP=#{CREW_DEST_PREFIX}",
'install'
end
end
......@@ -34,5 +34,5 @@ class Mate_calc < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
end
end
......@@ -20,7 +20,7 @@ class Mate_common < Package
i686: 'f7a9d18c6c0a7f10828d0bc4528dd0b67405e0388287123516b04e6d80361223',
x86_64: 'd04c069aee911be73e5c80675e15a6bdfe3381432fc8bf293d6c29a592412694',
})
depends_on 'gtk_doc'
def self.build
......
......@@ -34,5 +34,5 @@ class Mate_desktop < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -9,10 +9,10 @@ class Metasploit < Package
source_sha256 '69a12a089fcd130a40f3f973a53057a948a7f2b6df6a3a64613ee22aa3d53016'
binary_url ({
})
binary_sha256 ({
})
depends_on 'ruby'
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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