[arch-commits] Commit in rofimoji/repos/community-any (4 files)
Daniel M. Capella
polyzen at archlinux.org
Sun Jun 20 02:07:35 UTC 2021
Date: Sunday, June 20, 2021 @ 02:07:35
Author: polyzen
Revision: 965734
archrelease: copy trunk to community-any
Added:
rofimoji/repos/community-any/PKGBUILD
(from rev 965733, rofimoji/trunk/PKGBUILD)
rofimoji/repos/community-any/rofimoji.install
(from rev 965733, rofimoji/trunk/rofimoji.install)
Deleted:
rofimoji/repos/community-any/PKGBUILD
rofimoji/repos/community-any/rofimoji.install
------------------+
PKGBUILD | 100 +++++++++++++++++++++++++++--------------------------
rofimoji.install | 12 +++---
2 files changed, 58 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-20 02:07:04 UTC (rev 965733)
+++ PKGBUILD 2021-06-20 02:07:35 UTC (rev 965734)
@@ -1,48 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-pkgname=rofimoji
-pkgver=5.2.0
-pkgrel=1
-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=('9df9024215ba6998d2a2d396ed7b5da905d43eb5506bd2de3ffd163d727f30c2ac4b7e5fd27d44ea1af0ce54c8ac0a4a06b19bafab1e62d1bd5e4a3cfcf41a9c')
-
-build() {
- cd $pkgname-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-package() {
- cd $pkgname-$pkgver
- export PYTHONHASHSEED=0
- python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
-
- cd "$pkgdir"
- # https://github.com/FFY00/python-install/pull/6
- chmod +x usr/bin/$pkgname
-
- # Symlink license file and move data files where they belong
- local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- install -d usr/share/{licenses/$pkgname,man/man1}
- ln -s $site_packages/${pkgname//-/_}-$pkgver.dist-info/LICENSE \
- usr/share/licenses/$pkgname/LICENSE
- mv {./$site_packages,usr}/share/man/man1/$pkgname.1
- rm -r ./$site_packages/share
-}
-
-# vim:set ts=2 sw=2 et:
Copied: rofimoji/repos/community-any/PKGBUILD (from rev 965733, rofimoji/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-20 02:07:35 UTC (rev 965734)
@@ -0,0 +1,52 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=rofimoji
+pkgver=5.2.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=('9df9024215ba6998d2a2d396ed7b5da905d43eb5506bd2de3ffd163d727f30c2ac4b7e5fd27d44ea1af0ce54c8ac0a4a06b19bafab1e62d1bd5e4a3cfcf41a9c')
+
+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
+ export PYTHONHASHSEED=0
+ 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/$pkgname
+
+ # 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:
Deleted: rofimoji.install
===================================================================
--- rofimoji.install 2021-06-20 02:07:04 UTC (rev 965733)
+++ rofimoji.install 2021-06-20 02:07:35 UTC (rev 965734)
@@ -1,6 +0,0 @@
-post_install() {
- cat << EOF
-rofimoji requires an appropriate "selector", "clipboarder", and "typer" to be
-installed for your display server.
-EOF
-}
Copied: rofimoji/repos/community-any/rofimoji.install (from rev 965733, rofimoji/trunk/rofimoji.install)
===================================================================
--- rofimoji.install (rev 0)
+++ rofimoji.install 2021-06-20 02:07:35 UTC (rev 965734)
@@ -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