mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
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:
1
www-misc/waldl/Manifest
Normal file
1
www-misc/waldl/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST waldl-0.0.1_pre20211112.tar.gz 14334 BLAKE2B 37da96396ecf69686b0782899f5f641cdf0057d76a4544d07204e810565d167a0d44b3fd1a77b635f57a31adcdde1199d5ad2eb7ee6e735321418b6b33db5089 SHA512 1c89a389db39310f7b5bb76373ef42cf02dbfcf9e52a4f86237403f6cc558ec2be5384ed2858c67d2925560632381dfb4f4747851f9f45ad2c8d8fbd90a761a6
|
||||
14
www-misc/waldl/files/waldl-0.0.1-customize.patch
Normal file
14
www-misc/waldl/files/waldl-0.0.1-customize.patch
Normal 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:"
|
||||
21
www-misc/waldl/files/waldlrc.example
Normal file
21
www-misc/waldl/files/waldlrc.example
Normal 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
|
||||
11
www-misc/waldl/metadata.xml
Normal file
11
www-misc/waldl/metadata.xml
Normal 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>
|
||||
36
www-misc/waldl/waldl-0.0.1_pre20211112.ebuild
Normal file
36
www-misc/waldl/waldl-0.0.1_pre20211112.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user