commit:     33045e3fdd51ef8efbffc8fb296f10a4a8b54f7b
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sat Mar 16 17:15:55 2024 +0000
Commit:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Sat Mar 16 17:15:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33045e3f

net-misc/commons-downloader: add

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 .../commons-downloader-9999.ebuild                 | 29 ++++++++++++++++++++++
 net-misc/commons-downloader/metadata.xml           | 14 +++++++++++
 2 files changed, 43 insertions(+)

diff --git a/net-misc/commons-downloader/commons-downloader-9999.ebuild 
b/net-misc/commons-downloader/commons-downloader-9999.ebuild
new file mode 100644
index 0000000000..513bfbc241
--- /dev/null
+++ b/net-misc/commons-downloader/commons-downloader-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker git-r3
+
+DESCRIPTION="A shell script to bulk download files from Wikimedia Commons, by 
category"
+HOMEPAGE="https://git.sr.ht/~nytpu/commons-downloader";
+EGIT_REPO_URI="https://git.sr.ht/~nytpu/commons-downloader";
+
+LICENSE="CC0-1.0"
+SLOT=0
+QA_PREBUILT="*"
+
+RDEPEND="
+       net-misc/curl
+       net-misc/wget
+       app-misc/jq
+"
+
+src_install() {
+       dobin ${PN}
+}
+
+pkg_postinst() {
+       einfo "See documentation at https://git.sr.ht/~nytpu/commons-downloader";
+       einfo "Example how to download a category to the current folder: 
commons-downloader -c 'My category name'"
+}

diff --git a/net-misc/commons-downloader/metadata.xml 
b/net-misc/commons-downloader/metadata.xml
new file mode 100644
index 0000000000..e5525790d7
--- /dev/null
+++ b/net-misc/commons-downloader/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+       <maintainer type='person'>
+               <name>Vitaly Zdanevich</name>
+               <email>zdanevich.vit...@ya.ru</email>
+       </maintainer>
+       <upstream>
+               
<changelog>https://sr.ht/~nytpu/commons-downloader/feed</changelog>
+               <doc>https://sr.ht/~nytpu/commons-downloader</doc>
+               <bugs-to>https://lists.sr.ht/~nytpu/public-inbox</bugs-to>
+               <remote-id 
type='sourcehut'>~nytpu/commons-downloader</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to