mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
Ports: Add cowsay
This commit is contained in:
parent
ecef13338e
commit
6ba38494c5
2 changed files with 26 additions and 0 deletions
|
@ -43,6 +43,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
|
||||||
| [`cmatrix`](cmatrix/) | cmatrix | 3112b12 | https://github.com/abishekvashok/cmatrix |
|
| [`cmatrix`](cmatrix/) | cmatrix | 3112b12 | https://github.com/abishekvashok/cmatrix |
|
||||||
| [`composer`](composer/) | Composer | 2.4.3 | https://getcomposer.org/ |
|
| [`composer`](composer/) | Composer | 2.4.3 | https://getcomposer.org/ |
|
||||||
| [`coreutils`](coreutils/) | GNU core utilities | 9.1 | https://www.gnu.org/software/coreutils/ |
|
| [`coreutils`](coreutils/) | GNU core utilities | 9.1 | https://www.gnu.org/software/coreutils/ |
|
||||||
|
| [`cowsay`](cowsay/) | cowsay | 3.04 | https://github.com/tnalpgge/rank-amateur-cowsay |
|
||||||
| [`cpio`](cpio/) | GNU cpio archive utility | 2.13 | https://www.gnu.org/software/cpio/ |
|
| [`cpio`](cpio/) | GNU cpio archive utility | 2.13 | https://www.gnu.org/software/cpio/ |
|
||||||
| [`curl`](curl/) | curl | 8.2.0 | https://curl.se/ |
|
| [`curl`](curl/) | curl | 8.2.0 | https://curl.se/ |
|
||||||
| [`dash`](dash/) | DASH | 0.5.10.2 | http://gondor.apana.org.au/~herbert/dash |
|
| [`dash`](dash/) | DASH | 0.5.10.2 | http://gondor.apana.org.au/~herbert/dash |
|
||||||
|
|
25
Ports/cowsay/package.sh
Executable file
25
Ports/cowsay/package.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/usr/bin/env -S bash ../.port_include.sh
|
||||||
|
port='cowsay'
|
||||||
|
version='3.04'
|
||||||
|
depends=('perl5')
|
||||||
|
useconfigure='false'
|
||||||
|
files="https://github.com/tnalpgge/rank-amateur-cowsay/archive/refs/tags/cowsay-${version}.tar.gz cowsay-${version}.tar.gz d8b871332cfc1f0b6c16832ecca413ca0ac14d58626491a6733829e3d655878b"
|
||||||
|
workdir="rank-amateur-cowsay-cowsay-${version}/"
|
||||||
|
|
||||||
|
prefix='/usr/local'
|
||||||
|
bin_path="${prefix}/bin"
|
||||||
|
cow_path_prefix="${prefix}/share"
|
||||||
|
perl_executable="${bin_path}/perl"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
run_replace_in_file "s#%PREFIX%#${prefix}#" cowsay
|
||||||
|
run_replace_in_file "s#%BANGPERL%#!${perl_executable}#" cowsay
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
run_nocd mkdir -p "${SERENITY_INSTALL_ROOT}/${bin_path}/"
|
||||||
|
run cp cowsay "${SERENITY_INSTALL_ROOT}/${bin_path}/"
|
||||||
|
run_nocd mkdir -p "${SERENITY_INSTALL_ROOT}/${cow_path_prefix}/"
|
||||||
|
run cp -r cows/ "${SERENITY_INSTALL_ROOT}/${cow_path_prefix}/"
|
||||||
|
run_nocd ln -sf "${bin_path}/cowsay" "${SERENITY_INSTALL_ROOT}/${bin_path}/cowthink"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue