# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=rofi-emoji pkgver=3.2.0 pkgrel=0 pkgdesc="Emoji selector plugin for Rofi" url="https://github.com/Mange/rofi-emoji" arch="all" license="MIT" depends="cmd:rofi" makedepends=" autoconf automake libtool rofi-dev " checkdepends="check-dev" subpackages=" $pkgname-wayland::noarch $pkgname-x11::noarch " source="https://github.com/Mange/rofi-emoji/archive/v$pkgver/rofi-emoji-$pkgver.tar.gz" prepare() { default_prepare autoreconf -i } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ $(want_check && echo '--with-check') make } check() { make check } package() { make DESTDIR="$pkgdir" install cd "$pkgdir" rm usr/share/$pkgname/README.md rm usr/share/$pkgname/LICENSE } wayland() { pkgdesc="$pkgdesc - dependencies for clipboard adapter on Wayland" depends="cmd:wl-copy" install_if="wayland-libs-server $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir" } x11() { pkgdesc="$pkgdesc - dependencies for clipboard adapter on X11" depends="cmd:xsel" install_if="xorg-server $pkgname=$pkgver-r$pkgrel" mkdir -p "$subpkgdir" } sha512sums=" b562cd31e22205ce88cec48fd3732e2f475d70bf66400540e6e0d41f82a808f4dcdcb9fda7aafb5f56656401a869fc616b27968a22afb1c050b051749de63e6a rofi-emoji-3.2.0.tar.gz "