summaryrefslogtreecommitdiff
path: root/user/lolcat
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-15 20:29:40 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-15 20:29:40 +0000
commit3486b27fc3a1fd80d8ccd8d6309cff19a60fb2d8 (patch)
treedf0cf883ca2400b1cc68dbd3920e2eddb1ef075b /user/lolcat
parentdeab6eb23676f370581a6e2c40dfec388f9dfc67 (diff)
downloadpackages-3486b27fc3a1fd80d8ccd8d6309cff19a60fb2d8.tar.gz
packages-3486b27fc3a1fd80d8ccd8d6309cff19a60fb2d8.tar.bz2
packages-3486b27fc3a1fd80d8ccd8d6309cff19a60fb2d8.tar.xz
packages-3486b27fc3a1fd80d8ccd8d6309cff19a60fb2d8.zip
user/lolcat: new requested package
Diffstat (limited to 'user/lolcat')
-rw-r--r--user/lolcat/APKBUILD28
-rw-r--r--user/lolcat/https.patch24
2 files changed, 52 insertions, 0 deletions
diff --git a/user/lolcat/APKBUILD b/user/lolcat/APKBUILD
new file mode 100644
index 000000000..cd6bfc984
--- /dev/null
+++ b/user/lolcat/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=lolcat
+pkgver=1.0
+pkgrel=0
+pkgdesc="Taste the rainbow on your terminal"
+url=" "
+arch="all"
+options="!check" # No test suite.
+license="WTFPL"
+depends=""
+makedepends=""
+subpackages=""
+source="lolcat-$pkgver.tar.gz::https://github.com/jaseg/lolcat/archive/v$pkgver.tar.gz
+ https.patch
+ "
+
+build() {
+ make
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/bin
+ make DESTDIR="$pkgdir/usr/bin" install
+}
+
+sha512sums="5f668706c2415273140047040a9e6d02d80a1572a834503480688f46466e2750f3cf5372f364039921f6461f2dbec7fa2dbe8a5600abdf3390c2caf56d1595bf lolcat-1.0.tar.gz
+e27aa207a990ce291c139d4b6d30468bd42a2f1ab17114f3b9354ebbf426542ab825de6cc6391dd356eb108ddd3554cddf84f4a8f2e34599fa6dfe2e10812c73 https.patch"
diff --git a/user/lolcat/https.patch b/user/lolcat/https.patch
new file mode 100644
index 000000000..630154df1
--- /dev/null
+++ b/user/lolcat/https.patch
@@ -0,0 +1,24 @@
+--- lolcat-1.0/lolcat.c.old 2018-12-02 04:37:59.000000000 +0000
++++ lolcat-1.0/lolcat.c 2019-06-15 20:28:03.295298585 +0000
+@@ -45,9 +45,9 @@
+ " lolcat Copy standard input to standard output.\n"
+ " fortune | lolcat Display a rainbow cookie.\n"
+ "\n"
+- "Report lolcat bugs to <http://www.github.org/jaseg/lolcat/issues>\n"
+- "lolcat home page: <http://www.github.org/jaseg/lolcat/>\n"
+- "Original idea: <http://www.github.org/busyloop/lolcat/>\n";
++ "Report lolcat bugs to <https://github.com/jaseg/lolcat/issues>\n"
++ "lolcat home page: <https://github.com/jaseg/lolcat/>\n"
++ "Original idea: <https://github.com/busyloop/lolcat/>\n";
+
+ #define ARRAY_SIZE(foo) (sizeof(foo) / sizeof(foo[0]))
+ const unsigned char codes[] = { 39, 38, 44, 43, 49, 48, 84, 83, 119, 118, 154, 148, 184, 178, 214, 208, 209, 203, 204, 198, 199, 163, 164, 128, 129, 93, 99, 63, 69, 33 };
+@@ -72,7 +72,7 @@
+
+ static void version(void)
+ {
+- wprintf(L"lolcat version 0.1, (c) 2014 jaseg\n");
++ wprintf(L"lolcat version 1.0, (c) 2014-2018 jaseg\n");
+ exit(0);
+ }
+