Commit 6faee5e5 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

fix beav (#5506)

* fix beav

* Added binaries and compiled with flto

* FileUtils.install

* change mode

* remove stray file

* move file to correct place
Co-authored-by: default avatarsatmandu <satadru@gmail.com>
parent 839680a0
require 'package'
class Nuitka < Package
description 'nuitka is a Python to binary compiler written in Python. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.'
homepage 'https://nuitka.net/'
version '0.6.13.2'
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/Nuitka/Nuitka/archive/refs/tags/0.6.13.2.tar.gz'
source_sha256 'a594d054255688dbef8f8ba5b6cbb0207ad467384f2a6214522781ffbd5d43e5'
def self.install
system "python3 -m pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I nuitka==#{version} --no-warn-script-location"
end
end
......@@ -3,50 +3,48 @@ require 'package'
class Beav < Package
description 'BEAV (Binary Editor And Viewer), is a full featured binary file editor.'
homepage 'https://packages.debian.org/sid/beav'
version '1.40-18-b3'
version '1.40-18-1'
license 'GPL-1+'
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
source_url 'https://httpredir.debian.org/debian/pool/main/b/beav/beav_1.40.orig.tar.gz'
source_sha256 '7ad905e4124bf105ca0e213d8212bed231559825ac11588794b9be7a91399ddc'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-b3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-b3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-b3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-b3-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/beav-1.40-18-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '61938e9152aa32344551454cc276a46241a83ed1e3332b401b0e950e59963f31',
armv7l: '61938e9152aa32344551454cc276a46241a83ed1e3332b401b0e950e59963f31',
i686: '703c90a7dcc8a88d731b3d0133b97110c77b96fb05a972bac71774cfac34cdef',
x86_64: 'f9f3068e5ac536949578aab4e5009e08cb81e1a0da31a2f51fd65eb37761bf62',
binary_sha256({
aarch64: 'fac8efa93e9de76a5911f697643196d5aa02ec1df1865679c1e9eab57bef2aa0',
armv7l: 'fac8efa93e9de76a5911f697643196d5aa02ec1df1865679c1e9eab57bef2aa0',
i686: '37929bc862c17eecb5cbcdffd38c5e14cf46c88f871585ede0990a89b62acc93',
x86_64: 'a206053a68383e261ba61e11fc7aded3f42d2dc1b8a432da4fb9ac479a250511'
})
depends_on 'alien' => :build
depends_on 'libtinfo'
def self.patch
system 'curl -#L https://httpredir.debian.org/debian/pool/main/b/beav/beav_1.40-18.diff.gz | gunzip >> beav_1.40-18.diff'
unless Digest::SHA256.hexdigest(File.read('beav_1.40-18.diff')) == '5139aa0bdc9424b7ad8197070e1902d8225ee78e2091d02a493422cd91fe5973'
abort 'Checksum mismatch. :/ Try again.'.lightred
end
system 'patch -Np1 -i beav_1.40-18.diff'
system "sed -i 's:-lncurses:-ltinfow:g' Makefile"
system "sed -i '12d' basic.c"
system "sed -i '13d' file.c"
system "sed -i '76d' random.c"
system "sed -i '11d' symbol.c"
system "sed -i 's:#include <term.h>:#include <ncursesw/term.h>:' tcap.c"
system "sed -i 's,-g -DUNIX -Wall,-g -DUNIX -Wall -flto,g' Makefile"
end
def self.build
case ARCH
when 'aarch64', 'armv7l'
arch = 'armhf'
sha256 = '98c941bb1b9dc682f582dd1d3986115558d45fc3ff65d5dd4c20c0e0d2dedebd'
when 'i686'
arch = 'i386'
sha256 = '6dd2197b1011470c3e2f13f2b8a8d96d7a01887b84bce53b75b72345a162fd83'
when 'x86_64'
arch = 'amd64'
sha256 = '93b59b1c494048af7fcb01fd6cd058346ff491d36dab1537b7545eb4b5d35a85'
end
package = "beav_#{version}_#{arch}.deb"
system "curl -#LO https://httpredir.debian.org/debian/pool/main/b/beav/#{package}"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read(package) ) == sha256
system "alien -tc #{package}"
system "tar xvf beav-1.40.tgz"
system 'make'
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}"
FileUtils.mv 'usr/bin', "#{CREW_DEST_PREFIX}"
FileUtils.mv 'usr/share', "#{CREW_DEST_PREFIX}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1/"
FileUtils.install 'beav', "#{CREW_DEST_PREFIX}/bin/beav", mode: 0755
FileUtils.install 'beav.1' "#{CREW_DEST_MAN_PREFIX}/man1/beav.1", mode: 0644
end
end
......@@ -3,24 +3,11 @@ require 'package'
class Nuitka < Package
description 'nuitka is a Python to binary compiler written in Python. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.'
homepage 'https://nuitka.net/'
version '0.6.12.3'
version '0.6.13.2'
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/Nuitka/Nuitka/archive/0.6.12.3.tar.gz'
source_sha256 '4f65349b87c3ffc297e19251308d743ee8b5ef09b695c134d6a46ec89d255216'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '34b1e243d748254248e460992194b40cc79813cb9d59bf01a1c940e2c3519725',
armv7l: '34b1e243d748254248e460992194b40cc79813cb9d59bf01a1c940e2c3519725',
i686: '96be8a2d57245d5f9414bd13242f3e6ae5ab5927a8455afbddd43d27a45b83ce',
x86_64: '5ef1b47e0ec8a22c3852c1ba7b11efc5034558db2ef231f2e23bbe7628b558d9',
})
source_url 'https://github.com/Nuitka/Nuitka/archive/refs/tags/0.6.13.2.tar.gz'
source_sha256 'a594d054255688dbef8f8ba5b6cbb0207ad467384f2a6214522781ffbd5d43e5'
def self.install
system "python3 -m pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I nuitka==#{version} --no-warn-script-location"
......
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