www-misc/waldl: Add new package

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
This commit is contained in:
Viorel Munteanu
2021-11-14 10:37:49 +02:00
parent 816bba387a
commit 717b67bb3f
5 changed files with 83 additions and 0 deletions

1
www-misc/waldl/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST waldl-0.0.1_pre20211112.tar.gz 14334 BLAKE2B 37da96396ecf69686b0782899f5f641cdf0057d76a4544d07204e810565d167a0d44b3fd1a77b635f57a31adcdde1199d5ad2eb7ee6e735321418b6b33db5089 SHA512 1c89a389db39310f7b5bb76373ef42cf02dbfcf9e52a4f86237403f6cc558ec2be5384ed2858c67d2925560632381dfb4f4747851f9f45ad2c8d8fbd90a761a6

View File

@@ -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:"

View File

@@ -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

View File

@@ -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>

View File

@@ -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
}