Commit 707bdcd4 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[New Package] hollywood (#5500)

* apg

* bmon

* jp2a

* libmrss

* libstfl

* libnxml

* psutil

* speedometer

* libgc

* ticker

* newsboat

* zzuf

* w3m

* wallstreet

* hollywood

* Remove libexec changes

* touch ups

* bump bmon version

* share/man => man_prefix

* description on one line

* share/man => man_prefix 2

* escape

* use debian's versions

* fix versions

* ftp.debian.org => httpredir.debian.org

* http => https

* move if lib64
parent 79135718
require 'package'
class Apg < Package
description 'APG (Automated Password Generator) is a toolset for random password generation.'
homepage 'http://www.adel.nursat.kz/apg/'
version '2.2.3.dfsg.1'
license 'BSD-3'
compatibility 'all'
source_url "https://httpredir.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1.orig.tar.gz"
source_sha256 'c7e3c556426e2d5d2f599873a71100c5f6d14fa8784e0b1d879916784de801df'
def self.patch
system "curl -#LO https://httpredir.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1-5.debian.tar.xz"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("apg_2.2.3.dfsg.1-5.debian.tar.xz") ) == '8305fdb424d934f4d217b7910e0b971cff205b28857b9dc9df95e38bd1aaa9a0'
system "tar xf apg_2.2.3.dfsg.1-5.debian.tar.xz"
FileUtils.rm "debian/patches/series"
system "sed -i '10,16d' debian/patches/Makefile"
system "for i in debian/patches/*; do patch -Np1 -i \"\${i}\"; done"
system "sed -i 's:INSTALL_PREFIX = /usr/local:INSTALL_PREFIX = #{CREW_DEST_PREFIX}:' Makefile"
system "sed -i 's:FLAGS = -Wall:FLAGS = -Wall -O2 -pipe -flto=auto:' Makefile"
system "sed -i 's:root:$(whoami):g' Makefile"
end
def self.build
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Bmon < Package
description 'bandwidth monitor and rate estimator'
homepage 'https://github.com/tgraf/bmon/'
version '4.0'
description 'bmon is a commandline bandwidth monitor and rate estimator.'
homepage 'https://www.infradead.org/~tgr/bmon/'
version '4.0-1'
license 'BSD-2 and MIT'
compatibility 'all'
source_url 'https://github.com/tgraf/bmon/releases/download/v4.0/bmon-4.0.tar.gz'
source_url "https://github.com/tgraf/bmon/releases/download/v4.0/bmon-4.0.tar.gz"
source_sha256 '02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/bmon-4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/bmon-4.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/bmon-4.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/bmon-4.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '1152f984aae1b54b4162a34460a8b3ced0be7e3c8a0887ac02fbd9d283cbd5aa',
armv7l: '1152f984aae1b54b4162a34460a8b3ced0be7e3c8a0887ac02fbd9d283cbd5aa',
i686: '5507412038511d2f5315478d3f527e54be02b3b9d69381aa1fbdf5a36621a5e0',
x86_64: 'e12f42c3d028678a37bf083ca9884ab4ad453de414f57a63eedec43c08705146',
})
depends_on 'libconfuse'
depends_on 'libnl3'
depends_on 'ncurses'
depends 'libnl3'
def self.build
system "./configure --prefix=#{CREW_PREFIX}"
system 'make'
system "autoreconf -fiv"
system "./configure #{CREW_OPTIONS} \
--without-ncurses \
--with-ncursesw"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
......@@ -6,7 +6,7 @@ class Chrpath < Package
version '0.16'
license 'GPL-2+'
compatibility 'all'
source_url 'http://ftp.debian.org/debian/pool/main/c/chrpath/chrpath_0.16.orig.tar.gz'
source_url 'https://httpredir.debian.org/debian/pool/main/c/chrpath/chrpath_0.16.orig.tar.gz'
source_sha256 'bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b'
binary_url ({
......@@ -23,7 +23,7 @@ class Chrpath < Package
})
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "./configure #{CREW_OPTIONS}"
system 'make'
end
......
......@@ -6,7 +6,7 @@ class Fakeroot < Package
version '1.23'
license 'GPL-3'
compatibility 'all'
source_url 'http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz'
source_url 'https://httpredir.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz'
source_sha256 '009cd6696a931562cf1c212bb57ca441a4a2d45cd32c3190a35c7ae98506f4f6'
binary_url ({
......
require 'package'
class Hollywood < Package
description 'Fill your console with Hollywood melodrama technobabble.'
homepage 'https://a.hollywood.computer/'
version '1.21'
license 'Apache-2.0'
compatibility 'all'
source_url "https://httpredir.debian.org/debian/pool/main/h/hollywood/hollywood_1.21.orig.tar.gz"
source_sha256 '793ef1f022b376e131c75e05ff1b55a010c0f4193225bb79018855cb9ab89acb'
# Hollywood doesn't need binaries
depends_on 'byobu'
depends_on 'apg'
depends_on 'bmon'
depends_on 'cmatrix'
depends_on 'htop'
depends_on 'jp2a'
depends_on 'mlocate'
depends_on 'moreutils'
depends_on 'speedometer'
depends_on 'tree'
depends_on 'util_linux'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/lib"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1"
FileUtils.cp "./bin/hollywood", "#{CREW_DEST_PREFIX}/bin/"
FileUtils.cp_r "./lib/hollywood/", "#{CREW_DEST_PREFIX}/lib/"
FileUtils.cp_r "./share/hollywood/", "#{CREW_DEST_PREFIX}/share/"
FileUtils.cp "./share/man/man1/hollywood.1", "#{CREW_DEST_MAN_PREFIX}/man1/"
end
end
require 'package'
class Jp2a < Package
description 'jp2a is a simple JPEG/PNG to ASCII converter.'
homepage 'https://github.com/Talinx/jp2a'
version '1.1.0'
license 'GPL-2'
compatibility 'all'
source_url "https://github.com/Talinx/jp2a/releases/download/v1.1.0/jp2a-1.1.0.tar.bz2"
source_sha256 '6017b83f10bae352c7786868a977a02080a4e84fb99e6fbad18086fcfedffdf4'
depends_on 'libjpeg'
depends_on 'libpng'
depends_on 'termcap'
def self.build
system "./configure #{CREW_OPTIONS} \
--enable-curl"
system "make"
end
def self.check
system "make check || true"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Libgc < Package
description 'libgc is a library for garbage collection in Rust.'
homepage 'https://github.com/softdevteam/libgc'
version '8.0.4'
license 'Apache-2.0'
compatibility 'all'
source_url 'https://httpredir.debian.org/debian/pool/main/libg/libgc/libgc_8.0.4.orig.tar.gz'
source_sha256 '436a0ddc67b1ac0b0405b61a9675bca9e075c8156f4debd1d06f3a56c7cd289d'
def self.build
system "./configure #{CREW_OPTIONS} \
--enable-static \
--enable-shared \
--enable-docs"
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Libmrss < Package
description 'libmRSS is a C library for parsing, writing and creating RSS files or streams.'
homepage 'https://www.autistici.org/bakunin/libmrss/doc/'
version '0.19.2-7'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://salsa.debian.org/debian/libmrss/-/archive/debian/0.19.2-7/libmrss-debian-0.19.2-7.tar.bz2'
source_sha256 'cc3b466fa376d9fa54644268957437ce525fc336926180fda4e831af019767a6'
depends_on 'libnxml'
def self.patch
system "for i in \$(cat debian/patches/series); do patch -Np1 -i debian/patches/\"\${i}\"; done"
end
def self.build
system "./configure #{CREW_OPTIONS}"
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Libnxml < Package
description 'libnXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or streams.'
homepage 'https://www.autistici.org/bakunin/libnxml/doc/'
version '0.18.3-8'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://salsa.debian.org/debian/libnxml/-/archive/debian/0.18.3-8/libnxml-debian-0.18.3-8.tar.bz2'
source_sha256 '2c3e910b591d8f2a4dde53874339ddf831cfcce4cfece429217b5a5b9f850a9d'
def self.patch
system "for i in \$(cat debian/patches/series); do patch -Np1 -i debian/patches/\"\${i}\"; done"
end
def self.prebuild
system "chmod +x ./configure"
end
def self.build
system "./configure #{CREW_OPTIONS}"
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
......@@ -6,7 +6,7 @@ class Libpaper < Package
version '1.1.28'
license 'GPL-2'
compatibility 'all'
source_url 'http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.28.tar.gz'
source_url 'https://httpredir.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.28.tar.gz'
source_sha256 'c8bb946ec93d3c2c72bbb1d7257e90172a22a44a07a07fb6b802a5bb2c95fddc'
binary_url ({
......@@ -23,7 +23,7 @@ class Libpaper < Package
})
def self.build
system 'autoreconf -fi'
system 'autoreconf -fvi'
system "./configure #{CREW_OPTIONS}"
system 'make'
end
......
require 'package'
class Libstfl < Package
description 'libSTFL is a library that implements a curses-based widget set for text terminals.'
homepage 'http://www.clifford.at/stfl/'
version '0.23'
license 'GPL-3'
compatibility 'all'
source_url 'http://www.clifford.at/stfl/stfl-0.23.tar.gz'
source_sha256 'e75ed8427905ad50faf43ed5fefd0cf7b16ee0c1ca87e15d33e360bb92aedfde'
def self.patch
@ruby_extconf = <<~EOF
--- a/ruby/extconf.rb
+++ b/ruby/extconf.rb
@@ -1,2 +1,5 @@
require 'mkmf'
+`swig -ruby stfl.i`
+$LIBS << " ../libstfl.a -lncursesw"
+$CFLAGS << " -I.. -fPIC"
create_makefile('stfl')
EOF
IO.write("ruby_extconf.patch", @ruby_extconf)
system "patch -Np1 -i ruby_extconf.patch"
system "sed -i 's,all: libstfl.so.$(VERSION) libstfl.a example,all: libstfl.so.$(VERSION) libstfl.a,' Makefile"
end
def self.build
system "make libstfl.a"
system "make libstfl.so.0.23"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
Dir.chdir "#{CREW_DEST_PREFIX}" do
FileUtils.mv 'lib', "#{CREW_DEST_LIB_PREFIX}" if "#{CREW_LIB_SUFFIX}" == '64'
end
Dir.chdir "#{CREW_DEST_LIB_PREFIX}" do
FileUtils.symlink 'libstfl.so.0.23', 'libstfl.so.0'
end
end
end
require 'package'
class Newsboat < Package
description 'Newsboat is an RSS/Atom feed reader for the text console.'
homepage 'https://newsboat.org/'
version '2.23'
license 'MIT'
compatibility 'all'
source_url 'https://newsboat.org/releases/2.23/newsboat-2.23.tar.xz'
source_sha256 'b997b139d41db2cc5f54346f27c448bee47d6c6228a12ce9cb91c3ffaec7dadc'
depends_on 'sqlite'
depends_on 'gettext'
depends_on 'libxml2'
depends_on 'libstfl'
depends_on 'jsonc'
depends_on 'openssl'
depends_on 'asciidoctor' => :build
depends_on 'rust' => :build
def self.patch
system "sed -i 's:prefix?=/usr/local:prefix?=#{CREW_PREFIX}:' Makefile"
end
def self.build
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Psutil < Package
description 'psutil (process and system utilities) is a cross-platform library for retrieving information on running processes and system utilization in Python.'
homepage 'https://github.com/giampaolo/psutil'
version '5.8.0'
license 'BSD-3'
compatibility 'all'
source_url 'https://github.com/giampaolo/psutil/archive/refs/tags/release-5.8.0.tar.gz'
source_sha256 'c015248da36109ffaa15f46fce8c0003f678cfaa408090f466c80318885e7abf'
def self.install
system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I psutil==#{version} --no-warn-script-location"
end
end
require 'package'
class Speedometer < Package
description 'Measure and display the rate of data across a network connection or data being stored in a file.'
homepage 'https://excess.org/speedometer/'
version '2.8-3'
license 'GPL-2'
compatibility 'all'
source_url 'https://httpredir.debian.org/debian/pool/main/s/speedometer/speedometer_2.8-3_all.deb'
source_sha256 '63e676c96a9df953b4f7f631f1c1d21fedd71d23d159b53e60662c6bb4c19437'
depends_on 'psutil'
depends_on 'six'
depends_on 'nuitka' => :build
def self.patch
system "sed -i 's:#!/usr/bin/python3:#!#{CREW_PREFIX}/bin/python3:' bin/speedometer"
end
def self.build
FileUtils.mv "bin/speedometer", "bin/speedometer.py"
system "python3 -m nuitka --show-progress \
--show-scons \
--follow-imports \
--prefer-source-code \
bin/speedometer.py \
-o bin/speedometer"
system "gunzip share/man/man1/speedometer.1.gz"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin/"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1/"
FileUtils.cp "bin/speedometer", "#{CREW_DEST_PREFIX}/bin/"
FileUtils.cp "share/man/man1/speedometer.1", "#{CREW_DEST_MAN_PREFIX}/man1/"
end
end
require 'package'
class Ticker < Package
description 'Ticker is a simple little program that scrolls a message across the top or bottom line of your screen like a stock ticker.'
homepage 'https://joeyh.name/code/ticker/'
version '1.13'
license 'GPL-2'
compatibility 'all'
source_url 'https://httpredir.debian.org/debian/pool/main/t/ticker/ticker_1.13.tar.xz'
source_sha256 '5d80787d4c27b3dc4f8ebec2868d52bcf365c1ef928e63dc6c3ac541efe40e98'
depends_on 'slang'
def self.patch
system "sed -i '12d' ticker.c"
system "sed -i 's:#!/usr/bin/perl -w:#!#{CREW_PREFIX}/bin/perl -w:' sysinfo-ticker"
end
def self.build
system "./configure #{CREW_OPTIONS} || true" # Configure will fail
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class W3m < Package
description 'w3m is a text-based browser, pager and HTML typesetter'
homepage 'http://w3m.sourceforge.net/'
version '0.5.3-38'
license 'MIT'
compatibility 'all'
source_url 'https://salsa.debian.org/debian/w3m/-/archive/debian/0.5.3-38/w3m-debian-0.5.3-38.tar.bz2'
source_sha256 '183d4a1821654fa2779d2dfd4bad1eef21237114c76b6dfbe806057ec086546b'
depends_on 'openssl'
depends_on 'gdk_pixbuf'
depends_on 'imlib2'
depends_on 'mailutils'
def self.patch
system "for i in \$(cat debian/patches/series); do patch -Np1 -i debian/patches/\"\${i}\"; done"
end
def self.build
system "./configure #{CREW_OPTIONS} \
--with-imagelib='gdk-pixbuf imlib2' \
--with-editor=$(which vi) \
--with-mailer=$(which mail) \
--without-browser \
--with-ssl \
--with-termlib='ncurses termcap'"
system "make"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Wallstreet < Package
description 'Fill your console with Wall Street-like news and stats.'
homepage 'https://a.hollywood.computer/'
version '1.21'
license 'Apache-2.0'
compatibility 'all'
source_url "https://httpredir.debian.org/debian/pool/main/h/hollywood/hollywood_1.21.orig.tar.gz"
source_sha256 '793ef1f022b376e131c75e05ff1b55a010c0f4193225bb79018855cb9ab89acb'
# Wallstreet doesn't need binaries
depends_on 'byobu'
depends_on 'libcaca'
depends_on 'newsboat'
depends_on 'ticker'
depends_on 'wget'
depends_on 'w3m'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/lib"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1"
FileUtils.cp "./bin/wallstreet", "#{CREW_DEST_PREFIX}/bin/"
FileUtils.cp_r "./lib/wallstreet/", "#{CREW_DEST_PREFIX}/lib/"
FileUtils.cp_r "./share/wallstreet/", "#{CREW_DEST_PREFIX}/share/"
FileUtils.cp "./share/man/man1/wallstreet.1", "#{CREW_DEST_MAN_PREFIX}/man1/"
end
end
require 'package'
class Zzuf < Package
description 'zzuf is a transparent application input fuzzer.'
homepage 'http://caca.zoy.org/wiki/zzuf'
version '0.15'
license 'WTFPL'
compatibility 'all'
source_url 'https://github.com/samhocevar/zzuf/releases/download/v0.15/zzuf-0.15.tar.bz2'
source_sha256 '04353d94c68391b3945199f100ab47fc5ff7815db1e92581a600d4175e3a6872'
def self.build
system "./configure #{CREW_OPTIONS}"
system "make"
end
def self.check
system "make check"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
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