[arch-commits] Commit in rofimoji/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Dec 3 00:46:18 UTC 2021
Date: Friday, December 3, 2021 @ 00:46:17
Author: felixonmars
Revision: 1064044
archrelease: copy trunk to community-staging-any
Added:
rofimoji/repos/community-staging-any/
rofimoji/repos/community-staging-any/PKGBUILD
(from rev 1064040, rofimoji/trunk/PKGBUILD)
rofimoji/repos/community-staging-any/rofimoji.install
(from rev 1064041, rofimoji/trunk/rofimoji.install)
------------------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
rofimoji.install | 6 ++++++
2 files changed, 57 insertions(+)
Copied: rofimoji/repos/community-staging-any/PKGBUILD (from rev 1064040, rofimoji/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-03 00:46:17 UTC (rev 1064044)
@@ -0,0 +1,51 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=rofimoji
+pkgver=5.3.0
+pkgrel=2
+pkgdesc='Character picker for rofi'
+arch=('any')
+url=https://github.com/fdw/rofimoji
+license=('MIT')
+depends=('python-configargparse')
+makedepends=('python-build' 'python-install' 'python-setuptools' 'python-wheel')
+optdepends=('emoji-font: for the emojis character file'
+ 'nerd-fonts: for the nerd_font character file'
+ 'rofi: for the X.Org selector'
+ 'xclip: for one of the X.Org clipboarders'
+ 'xsel: for one of the X.Org clipboarders'
+ 'xdotool: for the X.Org typer'
+ 'wofi: for the Wayland selector'
+ 'wl-clipboard: for the Wayland clipboarder'
+ 'wtype: for the Wayland typer')
+install=$pkgname.install
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+b2sums=('da4868abb2f403ba72792eb345a832af5f4b1514649d799a00ea46971de01dd77b53283f2cd6f263210923383f66f1f12b5fcf2e25ffebfa739ab56150d5d68e')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # Remove data_files section https://github.com/pypa/wheel/issues/92
+ sed -i '/\[options.data_files\]/,/^$/d' setup.cfg
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+ install -Dm644 -t "$pkgdir"/usr/share/man/man1 src/picker/docs/$pkgname.1
+
+ # https://github.com/FFY00/python-install/pull/6
+ chmod +x "$pkgdir"/usr/bin/*
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$pkgname-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
Copied: rofimoji/repos/community-staging-any/rofimoji.install (from rev 1064041, rofimoji/trunk/rofimoji.install)
===================================================================
--- community-staging-any/rofimoji.install (rev 0)
+++ community-staging-any/rofimoji.install 2021-12-03 00:46:17 UTC (rev 1064044)
@@ -0,0 +1,6 @@
+post_install() {
+ cat << EOF
+rofimoji requires an appropriate "selector", "clipboarder", and "typer" to be
+installed for your display server.
+EOF
+}
More information about the arch-commits
mailing list