diff --git a/srcpkgs/azote/template b/srcpkgs/azote/template index ed25a74e0969e1..7037192d8e1b0e 100644 --- a/srcpkgs/azote/template +++ b/srcpkgs/azote/template @@ -4,7 +4,7 @@ version=1.16.0 revision=3 build_style=python3-module hostmakedepends="python3-setuptools" -depends="gtk+3 feh libayatana-appindicator python3 python3-cairo python3-gobject +depends="gtk+3 feh libayatana-appindicator-glib python3 python3-cairo python3-gobject python3-Pillow python3-send2trash python3-yaml" short_desc="Wallpaper & color manager for Sway, i3 and other WMs" maintainer="cinerea0 " diff --git a/srcpkgs/nwg-bar/template b/srcpkgs/nwg-bar/template index 9b409abb08a21e..38b42050e8e39c 100644 --- a/srcpkgs/nwg-bar/template +++ b/srcpkgs/nwg-bar/template @@ -1,12 +1,12 @@ # Template file for 'nwg-bar' pkgname=nwg-bar version=0.1.6 -revision=1 +revision=2 build_style=go go_import_path=github.com/nwg-piotr/nwg-bar hostmakedepends="pkg-config" -makedepends="gtk+3-devel gtk-layer-shell-devel" -short_desc="GTK3-based button bar for wlroots-based compositors" +makedepends="python3-gobject-devel gtk+3-devel gtk-layer-shell-devel" +short_desc="GTK based button bar for wlroots-based compositors" maintainer="zenobit " license="MIT" homepage="https://github.com/nwg-piotr/nwg-bar" @@ -15,5 +15,12 @@ distfiles="https://github.com/nwg-piotr/nwg-bar/archive/refs/tags/v${version}.ta checksum=badc232f9eef1a225776c7f0fe2534b49ac0a957f1a81dc24acb8f341b7719d4 post_install() { + for f in images/*; do + vinstall "$f" 644 usr/share/nwg-bar + done + for f in config/*; do + vinstall "$f" 644 usr/share/nwg-bar + done + vdoc README.md vlicense LICENSE } diff --git a/srcpkgs/nwg-clipman/template b/srcpkgs/nwg-clipman/template new file mode 100644 index 00000000000000..dd5c8e052e588a --- /dev/null +++ b/srcpkgs/nwg-clipman/template @@ -0,0 +1,23 @@ +# Template file for 'nwg-clipman' +pkgname=nwg-clipman +version=0.2.8 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools cliphist wl-clipboard python3-wheel" +makedepends="python3-gobject-devel gtk+3-devel gtk-layer-shell-devel" +depends="cliphist gtk-layer-shell gtk+3 python3 python3-gobject xdg-utils wl-clipboard" +short_desc="GTK based GUI for cliphist - nwg-shell clipboard manager" +maintainer="zenobit " +license="MIT" +homepage="https://github.com/nwg-piotr/nwg-clipman" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-clipman/archive/refs/tags/v${version}.tar.gz" +checksum=61d98d605d5125f0dfc9804117908f110e3300b82ed97657cd9556df8b79b315 +make_check=no # No checks provided + +post_install() { + vinstall nwg-clipman.svg 644 usr/share/pixmaps + vinstall nwg-clipman.desktop 644 usr/share/applications + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-displays/template b/srcpkgs/nwg-displays/template new file mode 100644 index 00000000000000..43596690d2fec5 --- /dev/null +++ b/srcpkgs/nwg-displays/template @@ -0,0 +1,26 @@ +# Template file for 'nwg-displays' +pkgname=nwg-displays +version=0.4.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +makedepends="python3-gobject-devel gtk+3-devel gtk-layer-shell-devel" +depends="python3-gobject gtk+3 gtk-layer-shell" +short_desc="Intuitive GUI to manage multiple displays for wayland" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-displays" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-displays/archive/refs/tags/v${version}.tar.gz" +checksum=0cb46556d852fc11e5cb28442afca1fd1a313e3d06f53720cd247dab3aea421e +make_check=no # No checks provided + +post_install() { + for f in nwg_displays/langs/*.json; do + vinstall "$f" 644 usr/share/nwg-displays/langs + done + vinstall nwg-displays.svg 644 usr/share/pixmaps + vinstall nwg-displays.desktop 644 usr/share/applications + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-dock/template b/srcpkgs/nwg-dock/template new file mode 100644 index 00000000000000..8ce14c7376ade6 --- /dev/null +++ b/srcpkgs/nwg-dock/template @@ -0,0 +1,27 @@ +# Template file for 'nwg-dock' +pkgname=nwg-dock +version=0.4.3 +revision=1 +build_style=go +go_import_path="github.com/nwg-piotr/nwg-dock" +hostmakedepends="pkg-config" +makedepends="pkg-config gtk+3-devel gtk-layer-shell-devel" +short_desc="GTK based dock for sway" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-dock" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-dock/archive/refs/tags/v${version}.tar.gz" +checksum=e4c617ae1b4c6ebca623d728a130591d3240750132f3fdfc8e1c0bcc19c572f2 +make_check=no # No checks provided + +post_install() { + for f in images/*; do + vinstall "$f" 644 usr/share/nwg-dock + done + for f in config/*; do + vinstall "$f" 644 usr/share/nwg-dock + done + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-drawer/template b/srcpkgs/nwg-drawer/template new file mode 100644 index 00000000000000..424c07af2d0f34 --- /dev/null +++ b/srcpkgs/nwg-drawer/template @@ -0,0 +1,24 @@ +# Template file for 'nwg-drawer' +pkgname=nwg-drawer +version=0.7.5 +revision=1 +build_style=go +go_import_path=github.com/nwg-piotr/nwg-drawer +hostmakedepends="pkg-config" +makedepends="cairo-devel gdk-pixbuf-devel gtk+3-devel pango-devel + gtk-layer-shell-devel libgirepository-devel libglib-devel" +short_desc="Application drawer for wlroots-based Wayland compositors" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-drawer" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-drawer/archive/refs/tags/v${version}.tar.gz" +checksum=af6bfbee17ab4dec300545c83c89a25e09b5f63e7ce06fa8627e0a04cf11d6e8 + +post_install() { + vinstall drawer.css 644 usr/share/nwg-drawer + vcopy desktop-directories usr/share/nwg-drawer + vcopy img usr/share/nwg-drawer + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-hello/template b/srcpkgs/nwg-hello/template new file mode 100644 index 00000000000000..adce6a3b88bf5a --- /dev/null +++ b/srcpkgs/nwg-hello/template @@ -0,0 +1,29 @@ +# Template file for 'nwg-hello' +pkgname=nwg-hello +version=0.4.5 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools" +depends="greetd gtk+3 gtk-layer-shell gnome-themes-extra python3 python3-gobject" +short_desc="GTK based greeter for greetd written in python" +maintainer="zenobit " +license="MIT" +homepage="https://github.com/nwg-piotr/nwg-hello" +changelog="https://github.com/nwg-piotr/nwg-hello/releases" +distfiles="https://github.com/nwg-piotr/nwg-hello/archive/refs/tags/v${version}.tar.gz" +checksum=9bdebcc58b9536e1238af14a7bc98de635baa811ba1494c98a7dcfa2239e02b5 +make_check=no # No test provided + +post_install() { + for f in img/*.svg; do + vinstall "$f" 644 usr/share/nwg-hello + done + vinstall nwg.jpg 644 usr/share/nwg-hello + vinstall nwg-hello-default.json 644 etc/nwg-hello + vinstall nwg-hello-default.css 644 etc/nwg-hello + vinstall hyprland.conf 644 etc/nwg-hello + vinstall sway-config 644 etc/nwg-hello + vinstall cache.json 664 var/cache/nwg-hello + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-icon-picker/template b/srcpkgs/nwg-icon-picker/template new file mode 100644 index 00000000000000..8a0ad952489735 --- /dev/null +++ b/srcpkgs/nwg-icon-picker/template @@ -0,0 +1,23 @@ +# Template file for 'nwg-icon-picker' +pkgname=nwg-icon-picker +version=0.1.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +makedepends="python3-gobject-devel gtk+3-devel gtk-layer-shell-devel" +depends="gtk+3 python3-gobject" +short_desc="GTK icon chooser with a text search option" +maintainer="zenobit " +license="MIT" +homepage="https://github.com/nwg-piotr/nwg-icon-picker" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-icon-picker/archive/refs/tags/v${version}.tar.gz" +checksum=264df7a4fa3ab8e9bfeecb2505b5ef4c58d3b5f9d1e7d8e1255f95f4bc869ffc +make_check=no # No checks provided + +post_install() { + vinstall nwg-icon-picker.svg 644 usr/share/pixmaps + vinstall nwg-icon-picker.desktop 644 usr/share/applications + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-look/patches/tools.go.patch b/srcpkgs/nwg-look/patches/tools.go.patch deleted file mode 100644 index ba872b74ee70cd..00000000000000 --- a/srcpkgs/nwg-look/patches/tools.go.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- a/tools.go -+++ b/tools.go -@@ -207,7 +207,7 @@ - log.Infof("cursor-size: %v", gsettings.cursorSize) - } - } else { -- log.Warnf("Couldn't read cursorSize, leaving default %s", -+ log.Warnf("Couldn't read cursorSize, leaving default %d", - gsettings.cursorSize) - } - -@@ -264,7 +264,7 @@ - log.Infof("text-scaling-factor: %v", gsettings.textScalingFactor) - } - } else { -- log.Warnf("Couldn't read textScalingFactor, leaving default %s", -+ log.Warnf("Couldn't read textScalingFactor, leaving default %f", - gsettings.textScalingFactor) - } - -@@ -329,7 +329,7 @@ - line := fmt.Sprintf("%s=%s", key, val) - lines = append(lines, line) - } else { -- log.Warnf("Couldn't get gsettings key: $s", key) -+ log.Warnf("Couldn't get gsettings key: %s", key) - } - } - for _, key := range []string{"event-sounds", "input-feedback-sounds"} { -@@ -338,7 +338,7 @@ - line := fmt.Sprintf("%s=%s", key, val) - lines = append(lines, line) - } else { -- log.Warnf("Couldn't get gsettings key: $s", key) -+ log.Warnf("Couldn't get gsettings key: %s", key) - } - } - -@@ -433,7 +433,7 @@ - cmd = exec.Command("gsettings", "set", gnomeSchema, "text-scaling-factor", fmt.Sprintf("%f", gsettings.textScalingFactor)) - err = cmd.Run() - if err != nil { -- log.Warnf("text-scaling-factor: %s %s", gsettings.textScalingFactor, err) -+ log.Warnf("text-scaling-factor: %f %s", gsettings.textScalingFactor, err) - } else { - log.Infof("text-scaling-factor: %v OK", gsettings.textScalingFactor) - } - diff --git a/srcpkgs/nwg-look/template b/srcpkgs/nwg-look/template index e6d01fd8eddc49..c5ae1e10184092 100644 --- a/srcpkgs/nwg-look/template +++ b/srcpkgs/nwg-look/template @@ -1,6 +1,6 @@ # Template file for 'nwg-look' pkgname=nwg-look -version=1.0.6 +version=1.1.1 revision=1 build_style=go go_import_path=github.com/nwg-piotr/nwg-look @@ -8,21 +8,20 @@ hostmakedepends="pkg-config" makedepends="cairo-devel gtk+3-devel libglib-devel pango-devel" depends="xcur2png" short_desc="GTK settings editor adapted to work in the wlroots environment" -maintainer="Orphaned " +maintainer="zenobit " license="MIT" homepage="https://github.com/nwg-piotr/nwg-look" changelog="https://github.com/nwg-piotr/nwg-look/releases" distfiles="https://github.com/nwg-piotr/nwg-look/archive/refs/tags/v${version}.tar.gz" -checksum=ddaba674253fbbf8f3ee7392315e51408af445adb85ed4b0f70e50301801720d +checksum=568c5efe443892d74ffce6cf8ac7db2aea6071be70d97d3ba7c5efd8b351e601 post_install() { - vinstall stuff/main.glade 644 /usr/share/nwg-look - vinstall stuff/nwg-look.desktop 644 /usr/share/applications - vinstall stuff/nwg-look.svg 644 /usr/share/pixmaps - for lang in langs/*.json; do - vinstall ${lang} 644 /usr/share/nwg-look/langs + vinstall ${lang} 644 usr/share/nwg-look/langs done - + vinstall stuff/main.glade 644 usr/share/nwg-look + vinstall stuff/nwg-look.desktop 644 usr/share/applications + vinstall stuff/nwg-look.svg 644 usr/share/pixmaps + vdoc README.md vlicense LICENSE } diff --git a/srcpkgs/nwg-menu/template b/srcpkgs/nwg-menu/template new file mode 100644 index 00000000000000..b8045d07b91371 --- /dev/null +++ b/srcpkgs/nwg-menu/template @@ -0,0 +1,24 @@ +# Template file for 'nwg-menu' +pkgname=nwg-menu +version=0.1.9 +revision=1 +build_style=go +go_import_path=github.com/nwg-piotr/nwg-menu +hostmakedepends="pkg-config" +makedepends="cairo-devel gdk-pixbuf-devel glib-devel gtk+3-devel + gtk-layer-shell-devel pango-devel" +short_desc="MenuStart plugin to nwg-panel, also capable of working standalone" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-menu" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-menu/archive/refs/tags/v${version}.tar.gz" +checksum=ec4f6ffe27c3dc28d6756bda5ae6b852a1e12fbb37b37cff4b682a4726ff2911 + +post_install() { + vinstall menu-start.css 644 usr/share/nwg-menu + vcopy desktop-directories usr/share/nwg-menu + #vbin nwg-menu + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-panel/template b/srcpkgs/nwg-panel/template new file mode 100644 index 00000000000000..17d8d4b9aa8107 --- /dev/null +++ b/srcpkgs/nwg-panel/template @@ -0,0 +1,26 @@ +# Template file for 'nwg-panel' +pkgname=nwg-panel +version=0.10.13 +revision=1 +build_style=python3-pep517 +hostmakedepends="pkg-config python3-setuptools python3-wheel python3-dasbus" +makedepends="cairo-devel python3-cairo-devel" +depends="python3-gobject" +short_desc="GTK based panel for sway and Hyprland Wayland compositors" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-panel" +distfiles="https://github.com/nwg-piotr/nwg-panel/archive/refs/tags/v${version}.tar.gz" +checksum=48dee26723a1db09eb9d4de3637f6f406a7de5319ef0acf17344f095d952daa1 +make_check=no # No checks provided + +post_install() { + for f in *.svg; do + vinstall "$f" 644 usr/share/pixmaps + done + for f in *.desktop; do + vinstall "$f" 644 usr/share/applications + done + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-readme-browser/template b/srcpkgs/nwg-readme-browser/template new file mode 100644 index 00000000000000..f4c170762ae94a --- /dev/null +++ b/srcpkgs/nwg-readme-browser/template @@ -0,0 +1,28 @@ +# Template file for 'nwg-readme-browser' +pkgname=nwg-readme-browser +version=0.1.7 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +depends="gtk-layer-shell gtk+3 python3-docutils python3-gobject + python3-markdown2 libwebkit2gtk41" +#checkdepends="python3-markdown2 python3-gobject gtk+3 libwebkit2gtk41 python3-docutils python3-pytest" +short_desc="WebKitGTK based README file browser" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-readme-browser" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-readme-browser/archive/refs/tags/v${version}.tar.gz" +checksum=d5f3cd29dcd987badae6fe8bb1a1ed79ca4cf221d9f5052d7d9594bdb73c020d +make_check=no # No checks provided + +post_install() { + for f in *.svg; do + vinstall "$f" 644 usr/share/pixmaps + done + for f in *.desktop; do + vinstall "$f" 644 usr/share/applications + done + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-shell-config/files/nwg-system-update b/srcpkgs/nwg-shell-config/files/nwg-system-update new file mode 100644 index 00000000000000..fe0ba93cf9f038 --- /dev/null +++ b/srcpkgs/nwg-shell-config/files/nwg-system-update @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +case "$2" in + "-xbps") sudo xbps-install -Syu ;; +esac +echo "$1"; read -r; diff --git a/srcpkgs/nwg-shell-config/template b/srcpkgs/nwg-shell-config/template new file mode 100644 index 00000000000000..3d4869d341aaa9 --- /dev/null +++ b/srcpkgs/nwg-shell-config/template @@ -0,0 +1,28 @@ +# Template file for 'nwg-shell-config' +pkgname=nwg-shell-config +version=0.5.64 +revision=1 +build_style=python3-pep517 +hostmakedepends="pkg-config python3-setuptools python3-wheel python3-geopy python3-requests" +depends="python3 gtklock noto-fonts-ttf playerctl python3-geopy + python3-gobject python3-i3ipc wlsunset" +short_desc="Graphical user interface for configuring sway and Hyprland" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell/nwg-shell-config" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-shell-config/archive/refs/tags/v${version}.tar.gz" +checksum=93d47e4d6c41973b42a52d602ca7edf76de31b110dcac9370c31b06c1f11c45c +make_check=no # No checks provided + +post_install() { + for f in *.svg; do + vinstall "$f" 644 usr/share/pixmaps + done + for f in *.desktop; do + vinstall "$f" 644 usr/share/applications + done + vbin "${FILESDIR}/nwg-system-update" + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/nwg-shell-wallpapers/template b/srcpkgs/nwg-shell-wallpapers/template new file mode 100644 index 00000000000000..bd675d8205a466 --- /dev/null +++ b/srcpkgs/nwg-shell-wallpapers/template @@ -0,0 +1,23 @@ +# Template file for 'nwg-shell-wallpapers' +pkgname=nwg-shell-wallpapers +version=1.5 +revision=1 +short_desc="Selection of wallpapers contributed to the nwg-shell project" +maintainer="zenobit " +license="CC0-1.0" +homepage="https://github.com/nwg-piotr/nwg-shell-wallpapers" +#changelog="" +distfiles="https://github.com/nwg-piotr/nwg-shell-wallpapers/archive/refs/tags/v${version}.tar.gz" +checksum=8717eabe4fb755885c52507e34a0b6e6eb278b7c31a39b86eee4b29618f72171 + +do_install() { + ./install.sh +} + +post_install() { + for f in wallpapers/*; do + vinstall "$f" 644 usr/share/backgrounds/nwg-shell + done + vinstall logo.svg 644 usr/share/icons nwg-shell.svg + vdoc README.md +} diff --git a/srcpkgs/nwg-shell/template b/srcpkgs/nwg-shell/template new file mode 100644 index 00000000000000..8c2b74a4f09e96 --- /dev/null +++ b/srcpkgs/nwg-shell/template @@ -0,0 +1,63 @@ +# Template file for 'nwg-shell' +pkgname=nwg-shell +version=0.5.50 +revision=1 +build_style=python3-pep517 +hostmakedepends="go python3-setuptools" +makedepends="python3-gobject-devel gtk+3-devel gtk-layer-shell-devel" +depends=" + azote + nwg-bar + nwg-clipman + nwg-displays + nwg-dock + nwg-drawer + nwg-hello + nwg-look + nwg-menu + nwg-panel + nwg-readme-browser + nwg-shell-config + nwg-shell-wallpapers + dejavu-fonts-ttf + gnome-themes-extra + grim + gtklock + ImageMagick + jq + libayatana-appindicator + network-manager-applet + papirus-icon-theme + playerctl + polkit-gnome + python3-geopy + python3-netifaces + python3-requests + python3-yaml + slurp + swappy + swaybg + swayidle + swaylock + SwayNotificationCenter + wl-clipboard + wlsunset + xorg-server-xwayland" +short_desc="GTK based shell for sway and Hyprland Wayland compositors" +maintainer="zenobit " +license="MIT" +homepage="https://nwg-piotr.github.io/nwg-shell" +changelog="https://github.com/nwg-piotr/nwg-shell/discussions/categories/changelog" +distfiles="https://github.com/nwg-piotr/nwg-shell/archive/refs/tags/v${version}.tar.gz" +checksum=a2c561735c3120328db8d0bd14a240980614b1129d64f51e2728f097631e1905 +make_check=no # No checks provided + +post_install() { + for f in scripts/*; do + vbin "$f" + done + vinstall nwg-shell.jpg 644 usr/share/backgrounds + vinstall nwg-readme.desktop 644 usr/share/applications + vdoc README.md + vlicense LICENSE +} diff --git a/srcpkgs/python3-dasbus/template b/srcpkgs/python3-dasbus/template new file mode 100644 index 00000000000000..cd1066ab0cb0ee --- /dev/null +++ b/srcpkgs/python3-dasbus/template @@ -0,0 +1,16 @@ +# Template file for 'python3-dasbus' +pkgname=python3-dasbus +version=1.7 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +makedepends="cairo-devel python3-gobject-devel python3-cairo-devel python3-dbus-devel" +depends="python3-gobject" +checkdepends="python3-pytest" +short_desc="DBus library in Python 3" +maintainer="zenobit " +license="LGPL-2.1-only" +homepage="https://github.com/dasbus-project/dasbus" +#changelog="" +distfiles="https://github.com/dasbus-project/dasbus/archive/refs/tags/v${version}.tar.gz" +checksum=442a8df9330d4f55704c92cbed066cf0918378418be89d6fff67721d3cba5590 diff --git a/srcpkgs/python3-geographiclib/template b/srcpkgs/python3-geographiclib/template new file mode 100644 index 00000000000000..5c89267257df61 --- /dev/null +++ b/srcpkgs/python3-geographiclib/template @@ -0,0 +1,19 @@ +# Template file for 'python3-geographiclib' +pkgname=python3-geographiclib +version=2.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +checkdepends="python3-pytest" +short_desc="Python implementation of the geodesic routines" +maintainer="zenobit " +license="MIT" +homepage="https://geographiclib.sourceforge.io/" +changelog="https://geographiclib.sourceforge.io/Python/doc/_sources/package.rst.txt" +distfiles="https://github.com/geographiclib/geographiclib-python/archive/refs/tags/v${version}.tar.gz" +checksum=a6d32de8fa8fc9d44d6d469e2ec43a8bae532fd7a1d7611e3417500c1768b599 +provides="py3:geographiclib-${version}_${revision}" + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-geopy/template b/srcpkgs/python3-geopy/template new file mode 100644 index 00000000000000..08a73deab7f8c7 --- /dev/null +++ b/srcpkgs/python3-geopy/template @@ -0,0 +1,27 @@ +# Template file for 'python3-geopy' +pkgname=python3-geopy +version=2.4.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="pkg-config python3-setuptools python3-wheel python3-pip + python3-docutils python3-geographiclib" +depends="python3-geographiclib" +checkdepends="python3-aiohttp python3-pytest-asyncio python3-pytest-aiohttp + python3-pytest python3-pytz python3-requests python3-urllib3 geocode-glib" +short_desc="Geocoding library for Python" +maintainer="zenobit " +license="MIT" +homepage="https://github.com/geopy/geopy" +distfiles="https://github.com/geopy/geopy/archive/refs/tags/${version}.tar.gz" +checksum=a231629d166b58b0d557fc453374374d1fe0f3aff205b34bd8196e62ec285c55 + +# Rate-limited requests auto-skip +# Skip flaky tests that depend on volatile upstream OSM data +do_check() { + python3 -m pytest test -v \ + -k "not test_reverse_near_zero and not test_osm_tag" +} + +post_install() { + vlicense LICENSE +}