# Maintainer: Benjamin Chrétien # Contributor: Eric Engestrom # Contributor: Rasi # Contributor: Sean Pringle # Contributor: SanskritFritz (gmail) # Contributor: Ruben De Smet pkgname=rofi-wayland-git _gitname=rofi pkgver=1.3.1.r337.gbb56bf3 pkgrel=1 pkgdesc="A window switcher, run dialog and dmenu replacement" arch=('i686' 'x86_64') url="https://davedavenport.github.io/rofi/" license=('MIT') depends=(freetype2 libxdg-basedir pango) optdepends=('sway: use as application runner' 'orbment: use as application runner') makedepends=('git') provides=('rofi') conflicts=('rofi') source=("git+https://github.com/DaveDavenport/rofi#branch=wip/wayland") md5sums=('SKIP') pkgver() { cd "$_gitname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "$srcdir/$_gitname" git submodule update --init autoreconf --install # Default compiler = clang, which can be a problem if using hardening-wrapper CC=gcc ./configure --prefix=/usr --with-display-backend=wayland } build() { cd "$srcdir/$_gitname" make } package() { cd "$srcdir/$_gitname" make install install-man DESTDIR="$pkgdir" install -Dm644 COPYING "$pkgdir/usr/share/licenses/rofi-wayland-git/COPYING" install -dm755 "$pkgdir/usr/share/doc/rofi/examples" install -Dm755 Examples/*.sh "$pkgdir/usr/share/doc/rofi/examples" }