summaryrefslogtreecommitdiff
path: root/user/hyfetch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-12-04 14:24:13 -0600
committerZach van Rijn <me@zv.io>2023-12-04 14:24:16 -0600
commit14543fa46c345c67d99f200ed550f58e916ba21e (patch)
tree904d3a3f341c7a7eefa9fe41db8532c9c6464c96 /user/hyfetch
parent3326954f14ee6105caf4890a37a83d0be7a03b1e (diff)
downloadpackages-14543fa46c345c67d99f200ed550f58e916ba21e.tar.gz
packages-14543fa46c345c67d99f200ed550f58e916ba21e.tar.bz2
packages-14543fa46c345c67d99f200ed550f58e916ba21e.tar.xz
packages-14543fa46c345c67d99f200ed550f58e916ba21e.zip
user/hyfetch: new package.
Closes: #1155
Diffstat (limited to 'user/hyfetch')
-rw-r--r--user/hyfetch/APKBUILD33
-rw-r--r--user/hyfetch/no-typing-extensions.patch21
-rw-r--r--user/hyfetch/python3.patch16
3 files changed, 70 insertions, 0 deletions
diff --git a/user/hyfetch/APKBUILD b/user/hyfetch/APKBUILD
new file mode 100644
index 000000000..5bc1e7b01
--- /dev/null
+++ b/user/hyfetch/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Zach van Rijn <me@zv.io>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=hyfetch
+pkgver=1.4.11
+pkgrel=0
+pkgdesc="Neofetch with LGBTQ+ pride flags!"
+url="https://github.com/hykilpikonna/hyfetch"
+arch="noarch"
+options="!check" # no test suite
+license="MIT"
+depends="bash python3"
+makedepends="make python3"
+provides="neofetch"
+replaces="neofetch"
+subpackages="$pkgname-doc"
+source="neofetch-$pkgver.tar.gz::https://github.com/hykilpikonna/hyfetch/archive/refs/tags/$pkgver.tar.gz
+ python3.patch
+ no-typing-extensions.patch
+ "
+
+build() {
+ # this builds hyfetch; neofetch does not need to be "built"
+ make
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+ make DESTDIR="$pkgdir" install-neofetch install-doc
+}
+
+sha512sums="13c757fed68c9aa1caa503553d6d29c0b68284029090b970b863dec3240dabb28a852ef0ec0f2742c6c268e30a15c48018a651e74ba0e6782b5aa14f2b1d1312 neofetch-1.4.11.tar.gz
+059f8e8293ae82c209e67b059f13e277ce10cc6bf96e6bc1f1459a79f986f733c24ea2b7a5ac1d871432359d5d8154622562de506624be353f8aa7d8561179d7 python3.patch
+4a983329d3bd3165eca86ce8c907945178becba0fd7d4b6381adab64c92938d52225a349325931ff69e7fa87f9c529d6d9758f00170dcbb375ea4e44aeb0e403 no-typing-extensions.patch"
diff --git a/user/hyfetch/no-typing-extensions.patch b/user/hyfetch/no-typing-extensions.patch
new file mode 100644
index 000000000..196a30dba
--- /dev/null
+++ b/user/hyfetch/no-typing-extensions.patch
@@ -0,0 +1,21 @@
+diff -ur a/hyfetch/types.py b/hyfetch/types.py
+--- a/hyfetch/types.py 2023-12-04 14:12:43.498520221 -0600
++++ b/hyfetch/types.py 2023-12-04 14:14:58.530114564 -0600
+@@ -1,4 +1,4 @@
+-from typing_extensions import Literal
++from typing import Literal
+
+ AnsiMode = Literal['default', 'ansi', '8bit', 'rgb']
+ LightDark = Literal['light', 'dark']
+diff -ur a/setup.py b/setup.py
+--- a/setup.py 2023-12-04 14:12:43.498520221 -0600
++++ b/setup.py 2023-12-04 14:13:04.931087575 -0600
+@@ -37,7 +37,7 @@
+ include_package_data=True,
+ install_requires=[
+ # Universal dependencies
+- 'setuptools', 'typing_extensions',
++ 'setuptools',
+
+ # Windows dependencies
+ 'psutil ; platform_system=="Windows"',
diff --git a/user/hyfetch/python3.patch b/user/hyfetch/python3.patch
new file mode 100644
index 000000000..28256fdbe
--- /dev/null
+++ b/user/hyfetch/python3.patch
@@ -0,0 +1,16 @@
+diff -ur a/Makefile b/Makefile
+--- a/Makefile 2023-12-04 13:31:47.347258438 -0600
++++ b/Makefile 2023-12-04 13:31:56.611544557 -0600
+@@ -4,10 +4,10 @@
+ all: build
+
+ build:
+- python setup.py build
++ python3 setup.py build
+
+ install:
+- python setup.py install --prefix=${PREFIX}
++ python3 setup.py install --prefix=${PREFIX}
+
+ install-doc:
+ @mkdir -p $(DESTDIR)$(MANDIR)/man1