summaryrefslogtreecommitdiff
path: root/data/cowsay
diff options
context:
space:
mode:
Diffstat (limited to 'data/cowsay')
-rw-r--r--data/cowsay/.beer17
-rw-r--r--data/cowsay/_metadata/depends1
-rw-r--r--data/cowsay/_metadata/description1
-rw-r--r--data/cowsay/_metadata/homepage1
-rw-r--r--data/cowsay/_metadata/in.1443.000
l---------data/cowsay/_metadata/maintainer1
-rw-r--r--data/cowsay/_metadata/name1
-rw-r--r--data/cowsay/_metadata/priority1
-rw-r--r--data/cowsay/_metadata/role1
-rw-r--r--data/cowsay/_metadata/section1
-rw-r--r--data/cowsay/_metadata/tags1
-rw-r--r--data/cowsay/_metadata/version1
-rw-r--r--data/cowsay/cowsay-3.04.tar.gzbin0 -> 31961 bytes
-rwxr-xr-xdata/cowsay/download.sh1
-rw-r--r--data/cowsay/install.diff84
-rw-r--r--data/cowsay/make.sh2
16 files changed, 114 insertions, 0 deletions
diff --git a/data/cowsay/.beer b/data/cowsay/.beer
new file mode 100644
index 000000000..c955fa7b6
--- /dev/null
+++ b/data/cowsay/.beer
@@ -0,0 +1,17 @@
+{
+ "name": "Cowsay",
+ "description": "Configurable talking characters in ASCII art",
+ "url": "https://github.com/tnalpgge/rank-amateur-cowsay/archive/cowsay-3.04.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/tnalpgge/rank-amateur-cowsay",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"/bin/sh\", \"install.sh\", prefix",
+ "mv prefix/\"man\", share"
+ ],
+ "version": "3.04",
+ "file": "cowsay.rb"
+} \ No newline at end of file
diff --git a/data/cowsay/_metadata/depends b/data/cowsay/_metadata/depends
new file mode 100644
index 000000000..24475b5c6
--- /dev/null
+++ b/data/cowsay/_metadata/depends
@@ -0,0 +1 @@
+perl
diff --git a/data/cowsay/_metadata/description b/data/cowsay/_metadata/description
new file mode 100644
index 000000000..005444310
--- /dev/null
+++ b/data/cowsay/_metadata/description
@@ -0,0 +1 @@
+Configurable talking characters in ASCII art
diff --git a/data/cowsay/_metadata/homepage b/data/cowsay/_metadata/homepage
new file mode 100644
index 000000000..fad855deb
--- /dev/null
+++ b/data/cowsay/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/tnalpgge/rank-amateur-cowsay
diff --git a/data/cowsay/_metadata/in.1443.00 b/data/cowsay/_metadata/in.1443.00
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/data/cowsay/_metadata/in.1443.00
diff --git a/data/cowsay/_metadata/maintainer b/data/cowsay/_metadata/maintainer
new file mode 120000
index 000000000..0c538aadb
--- /dev/null
+++ b/data/cowsay/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/mac \ No newline at end of file
diff --git a/data/cowsay/_metadata/name b/data/cowsay/_metadata/name
new file mode 100644
index 000000000..fec217581
--- /dev/null
+++ b/data/cowsay/_metadata/name
@@ -0,0 +1 @@
+Cowsay
diff --git a/data/cowsay/_metadata/priority b/data/cowsay/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/cowsay/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/cowsay/_metadata/role b/data/cowsay/_metadata/role
new file mode 100644
index 000000000..52b4d7301
--- /dev/null
+++ b/data/cowsay/_metadata/role
@@ -0,0 +1 @@
+hacker
diff --git a/data/cowsay/_metadata/section b/data/cowsay/_metadata/section
new file mode 100644
index 000000000..19814b684
--- /dev/null
+++ b/data/cowsay/_metadata/section
@@ -0,0 +1 @@
+Utilities
diff --git a/data/cowsay/_metadata/tags b/data/cowsay/_metadata/tags
new file mode 100644
index 000000000..ad5d50831
--- /dev/null
+++ b/data/cowsay/_metadata/tags
@@ -0,0 +1 @@
+purpose::console
diff --git a/data/cowsay/_metadata/version b/data/cowsay/_metadata/version
new file mode 100644
index 000000000..ebc7f2028
--- /dev/null
+++ b/data/cowsay/_metadata/version
@@ -0,0 +1 @@
+3.04
diff --git a/data/cowsay/cowsay-3.04.tar.gz b/data/cowsay/cowsay-3.04.tar.gz
new file mode 100644
index 000000000..b87e98349
--- /dev/null
+++ b/data/cowsay/cowsay-3.04.tar.gz
Binary files differ
diff --git a/data/cowsay/download.sh b/data/cowsay/download.sh
new file mode 100755
index 000000000..b2122daa6
--- /dev/null
+++ b/data/cowsay/download.sh
@@ -0,0 +1 @@
+wget https://github.com/tnalpgge/rank-amateur-cowsay/archive/cowsay-3.04.tar.gz \ No newline at end of file
diff --git a/data/cowsay/install.diff b/data/cowsay/install.diff
new file mode 100644
index 000000000..6e709280a
--- /dev/null
+++ b/data/cowsay/install.diff
@@ -0,0 +1,84 @@
+diff -ur rank-amateur-cowsay-cowsay-3.04/install.sh rank-amateur-cowsay-cowsay-3.04+iPhone/install.sh
+--- rank-amateur-cowsay-cowsay-3.04/install.sh 2016-06-25 02:45:15.000000000 +0000
++++ rank-amateur-cowsay-cowsay-3.04+iPhone/install.sh 2019-05-13 18:42:49.989430244 +0000
+@@ -22,68 +22,32 @@
+ Searching for useful perl executables...
+ DOG
+
+-backdoor=$1
+-
+-pathdirs=`echo $PATH | tr : " "`
+-for p in $pathdirs; do
+- set $p/perl $p/perl5*
+- while [ ! -z "$1" ]; do
+- if [ -x "$1" ]; then
+- echo Found perl in $1
+- perls="$perls $1"
+- fi
+- shift
+- done
+-done
+-for perl in $perls; do
+- if $perl -MText::Wrap -e0 >/dev/null 2>&1; then
+- echo Found a good perl in $perl
+- goodperls="$goodperls $perl"
+- fi
+-done
+-echo The following perl executables will run cowsay:
+-echo $goodperls
+-echo I recommend the latest stable perl you can find.
+-set $goodperls
+-if [ -z "$1" ]; then
+- echo Ack! You do not have Perl 5 installed correctly!
+- echo Get thee to CPAN!
+- exit 1
+-fi
+ usethisperl=$1
+ echo I will be using $1 because I know it will work.
+
+ echo Now I need an installation prefix. I will use /usr/local unless
+-printf "you give me a better idea here: "
+-if [ -n "$backdoor" ]; then
+- prefix=$backdoor
+- printf "%s (specified on command line)\n" $prefix
+-else
+- read prefix
+-fi
+-
+-PREFIX=${prefix:-/usr/local}
++PREFIX=${PREFIX:-/usr/local}
+
+ echo Okay, time to install this puppy.
+
+ echo s,%BANGPERL%,!$usethisperl,\; > install.pl
+ echo s,%PREFIX%,$PREFIX,\; >> install.pl
+ set -x
+-mkdir -p $PREFIX/bin || (mkdir $PREFIX; mkdir $PREFIX/bin)
+-$usethisperl -p install.pl cowsay > $PREFIX/bin/cowsay
+-chmod a+x $PREFIX/bin/cowsay
+-ln -s cowsay $PREFIX/bin/cowthink
+-mkdir -p $PREFIX/man/man1 || ($mkdir $PREFIX; mkdir $PREFIX/man; mkdir $PREFIX/man/man1)
+-$usethisperl -p install.pl cowsay.1 > $PREFIX/man/man1/cowsay.1
+-chmod a+r $PREFIX/man/man1/cowsay.1
+-ln -s cowsay.1 $PREFIX/man/man1/cowthink.1
+-mkdir -p $PREFIX/share/cows || (mkdir $PREFIX; mkdir $PREFIX/share; mkdir $PREFIX/share/cows)
+-tar -cf - $filelist | (cd $PREFIX/share && tar -xvf -)
++mkdir -p ${DESTDIR}$PREFIX/bin || (mkdir ${DESTDIR}$PREFIX; mkdir ${DESTDIR}$PREFIX/bin)
++perl -p install.pl cowsay > ${DESTDIR}$PREFIX/bin/cowsay
++chmod a+x ${DESTDIR}$PREFIX/bin/cowsay
++ln -s cowsay ${DESTDIR}$PREFIX/bin/cowthink
++mkdir -p ${DESTDIR}$PREFIX/man/man1 || ($mkdir ${DESTDIR}$PREFIX; mkdir ${DESTDIR}$PREFIX/man; mkdir ${DESTDIR}$PREFIX/man/man1)
++perl -p install.pl cowsay.1 > ${DESTDIR}$PREFIX/man/man1/cowsay.1
++chmod a+r ${DESTDIR}$PREFIX/man/man1/cowsay.1
++ln -s cowsay.1 ${DESTDIR}$PREFIX/man/man1/cowthink.1
++mkdir -p ${DESTDIR}$PREFIX/share/cows || (mkdir ${DESTDIR}$PREFIX; mkdir ${DESTDIR}$PREFIX/share; mkdir ${DESTDIR}$PREFIX/share/cows)
++tar -cf - $filelist | (cd ${DESTDIR}$PREFIX/share && tar -xvf -)
+ set +x
+
+ echo Okay, let us see if the install actually worked.
+
+-if [ ! -f $PREFIX/share/cows/default.cow ]; then
++if [ ! -f ${DESTDIR}$PREFIX/share/cows/default.cow ]; then
+ echo The default cow file did not make it across!
+ echo Ooops, it failed...sorry!
+ exit 1
diff --git a/data/cowsay/make.sh b/data/cowsay/make.sh
new file mode 100644
index 000000000..ea5dde573
--- /dev/null
+++ b/data/cowsay/make.sh
@@ -0,0 +1,2 @@
+pkg:setup
+DESTDIR="${PKG_DEST}/" PREFIX="${PKG_TAPF}" ./install.sh "${PKG_TAPF}/bin/perl"