makedeb


rofi 1.7.5-3


A window switcher, run dialog and dmenu replacement

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for rofi.

# Maintainer: only_vip <onlyme_vip@protonmail.com>
pkgname=rofi
pkgver=1.7.5
pkgrel=3
pkgdesc='A window switcher, run dialog and dmenu replacement'
arch=('amd64')
url='https://github.com/DaveDavenport/rofi'
license=('MIT')
depends=('freetype2-demos' 'libjpeg-dev' 'librsvg2-dev' 'libx11-dev' 'libxcb1-dev' 'libxdg-basedir-dev' 'libxft-dev' 'libxkbcommon-dev' 'libxkbcommon-x11-dev' 'libpango1.0-dev' 'libstartup-notification0-dev' 'libglib2.0-dev' 'libcairo2-dev' 'libpango1.0-dev' 'libxkbcommon-dev' 'libgdk-pixbuf2.0-dev' 'libxcb-util0-dev' 'libxcb-xkb-dev' 'libxkbcommon-x11-dev' 'libxcb-ewmh-dev' 'libxcb-icccm4-dev' 'libxcb-cursor-dev' 'libstartup-notification0-dev' 'libxcb-xrm-dev' 'libxcb-randr0-dev' 'libxcb-randr0-dev' 'libxcb-xinerama0-dev' 'libgif-dev')
makedepends=('git' 'meson' 'flex' 'bison' 'ninja-build' 'ronn' 'doxygen' 'uncrustify' 'cppcheck' 'ohcount' 'autoconf' 'automake')
checkdepends=('check')
provides=("${pkgname}")
conflicts=("${pkgname}")
# replaces=("${pkgname}")

source=("$url/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha512sums=('84cbb8ccef14fdb5d68062b17245fbcb0e9bab46534eb6c7ce532750b86fb33ce6e43ed24cf3c65e553d15b23a201c9168d97d257da4dddeddb0a7c44dd59cc0')

build() {
  # install -d "${srcdir}/${pkgname}-${pkgver}/build"
  cd "${srcdir}/${pkgname}-${pkgver}"
  autoreconf -i
  ./configure --prefix='/usr/local' --sysconfdir='/etc'
  make
  #meson setup build
  #ninja -C build
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  #ninja -C build test
  LC_ALL=C make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make  install install-man  DESTDIR=${pkgdir}
  #DESTDIR="${pkgdir}" ninja -C build install
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/rofi/COPYING"
  install -Dm755 "Examples/i3_empty_workspace.sh" -t "${pkgdir}/usr/share/doc/rofi/examples"
  install -Dm755 "Examples/i3_switch_workspaces.sh" -t "${pkgdir}/usr/share/doc/rofi/examples"
  install -Dm755 "Examples/rofi-file-browser.sh" -t "${pkgdir}/usr/share/doc/rofi/examples"
  install -Dm755 "Examples/test_script_mode.sh" -t "${pkgdir}/usr/share/doc/rofi/examples"
}