diff options
Diffstat (limited to 'www-misc')
-rw-r--r-- | www-misc/waldl/Manifest | 1 | ||||
-rw-r--r-- | www-misc/waldl/files/waldl-0.0.1-customize.patch | 14 | ||||
-rw-r--r-- | www-misc/waldl/files/waldlrc.example | 21 | ||||
-rw-r--r-- | www-misc/waldl/metadata.xml | 11 | ||||
-rw-r--r-- | www-misc/waldl/waldl-0.0.1_pre20211112.ebuild | 36 |
5 files changed, 83 insertions, 0 deletions
diff --git a/www-misc/waldl/Manifest b/www-misc/waldl/Manifest new file mode 100644 index 000000000..0205ee29f --- /dev/null +++ b/www-misc/waldl/Manifest @@ -0,0 +1 @@ +DIST waldl-0.0.1_pre20211112.tar.gz 14334 BLAKE2B 37da96396ecf69686b0782899f5f641cdf0057d76a4544d07204e810565d167a0d44b3fd1a77b635f57a31adcdde1199d5ad2eb7ee6e735321418b6b33db5089 SHA512 1c89a389db39310f7b5bb76373ef42cf02dbfcf9e52a4f86237403f6cc558ec2be5384ed2858c67d2925560632381dfb4f4747851f9f45ad2c8d8fbd90a761a6 diff --git a/www-misc/waldl/files/waldl-0.0.1-customize.patch b/www-misc/waldl/files/waldl-0.0.1-customize.patch new file mode 100644 index 000000000..c23eb0164 --- /dev/null +++ b/www-misc/waldl/files/waldl-0.0.1-customize.patch @@ -0,0 +1,14 @@ +diff --git a/waldl b/waldl +index e58467a..7df3144 100755 +--- a/waldl ++++ b/waldl +@@ -31,6 +31,9 @@ quality=large + # atleast : least res + atleast=1920x1080 + ++# allow the user to customize the defaults ++[ -e "$HOME/.config/waldlrc" ] && . "$HOME/.config/waldlrc" ++ + # the menu command used when no query is provided + sh_menu () { + : | dmenu -p "search wallhaven:" diff --git a/www-misc/waldl/files/waldlrc.example b/www-misc/waldl/files/waldlrc.example new file mode 100644 index 000000000..61742f25c --- /dev/null +++ b/www-misc/waldl/files/waldlrc.example @@ -0,0 +1,21 @@ +# copy this to ~/.config/waldlrc + +#################### +## User variables ## +#################### + +# the dir where wallpapers are stored +walldir="$HOME/.local/share/wallhaven" +# the dir used to cache thumbnails +cachedir="$HOME/.cache/wallhaven" +# sxiv options +sxiv_otps=" -tfpo -z 200" # o is needed for selection +# number of pages to show in search results, max 9 +# each page contains 24 results +max_pages=9 +# sorting : date_added, relevance, random, views, favorites, toplist +sorting=random +# quality : large original small +quality=large +# atleast : least res +atleast=1920x1080 diff --git a/www-misc/waldl/metadata.xml b/www-misc/waldl/metadata.xml new file mode 100644 index 000000000..93e1d4575 --- /dev/null +++ b/www-misc/waldl/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>ceamac.paragon@gmail.com</email> + <description>Primary maintainer</description> +</maintainer> +<upstream> + <remote-id type="github">pystardust/waldl</remote-id> +</upstream> +</pkgmetadata> diff --git a/www-misc/waldl/waldl-0.0.1_pre20211112.ebuild b/www-misc/waldl/waldl-0.0.1_pre20211112.ebuild new file mode 100644 index 000000000..accd7c887 --- /dev/null +++ b/www-misc/waldl/waldl-0.0.1_pre20211112.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Browse and download wallpapers from wallhaven.cc using sxiv" +HOMEPAGE="https://github.com/pystardust/waldl" +GIT_COMMIT="727640c1583cf627c075db7239e09e7bbdfecf17" +SRC_URI="https://github.com/pystardust/waldl/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + app-misc/jq + media-gfx/sxiv + net-misc/curl + x11-libs/libnotify + x11-misc/dmenu +" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/${PN}-${GIT_COMMIT}/" + +PATCHES=( + "${FILESDIR}/waldl-0.0.1-customize.patch" +) + +DOCS=( README.md "${FILESDIR}/waldlrc.example" ) + +src_install() { + einstalldocs + dobin waldl +} |