summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb7e2d0e9f409f7cfe4d1cf72ce84836dcb7552c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>

pkgname=rofimoji-git
pkgver=4.3.0.r6.g0614fe8
pkgrel=1
pkgdesc='Character picker for rofi'
arch=('any')
url=https://github.com/fdw/rofimoji
license=('MIT')
depends=('emoji-font' 'python-configargparse' 'python-xdg' 'rofi')
makedepends=('git' 'python-pip' 'python-setuptools' 'python-wheel')
optdepends=('wl-copy: for the Wayland clipboarder'
            'wtype: for the Wayland typer'
            'xclip: for one of the X.Org clipboarders'
            'xsel: for one of the X.Org clipboarders'
            'xdotool: for the X.Org typer')
provides=('rofimoji')
conflicts=('rofimoji')
install=$pkgname.install
source=("git+$url.git")
b2sums=('SKIP')

pkgver() {
  cd rofimoji
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd rofimoji
  python setup.py bdist_wheel
}

package() {
  cd rofimoji
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
}

# vim:set ts=2 sw=2 et: