# Maintainer: Shakil Shaikh # Original Maintainer: matoro # Contributor: Christian Rebischke # Contributor: Vlad M. # Contributor: Patrice Peterson # Contributor: Vivien Didelot # Contributor: hashworks pkgname=i3blocks-contrib-git _pkgname=i3blocks-contrib pkgver=2.0.0.r5.g7f601f8 pkgrel=1 pkgdesc='Official repository of community contributed blocklets' arch=('armv7h' 'i686' 'x86_64') groups=('i3') url="https://github.com/vivien/${_pkgname}" license=('GPL3') makedepends=('git') # Please keep those ordered by script-name. Packages for more than 2 scripts go on top optdepends=('coreutils: For some scripts' 'python3: For some scripts' 'perl: For some scripts' 'ttf-font-awesome: For some scripts' 'awk: For some scripts' 'glibc: For some scripts' 'iproute2: For some network scripts' 'openafs: For afs script' 'pacman-contrib: For arch-update script' 'python-requests: For aur-update script' 'libnotify: For aur-update script' 'acpi: For battery scripts' 'yad: For calendar script' 'xdotool: For calendar script' 'sysstat: For cpu_usage & disk-io script' 'docker: For docker script' 'python-keyring: For email script' 'gnome-keyring: For email script' 'wireless_tools: For essid script' 'nvidia-settings: For gpu-load script' 'xorg-setxkbmap: For key_layout script' 'procps-ng: For keyindicator script' 'kubectl: For kubernetes script' 'spotify: For mediaplayer script' 'vlc: For mediaplayer script' 'audacious: For mediaplayer script' 'xmms2: For mediaplayer script' 'mplayer: For mediaplayer script' 'mpc: For mediaplayer script' 'cmus: For mediaplayer script' 'rhythmbox: For mediaplayer script' 'xorg-xrandr: For monitor_manager script' 'arandr: For monitor_manager script' 'networkmanager: For nm-vpn script' 'openvpn: For openvpn script' 'rofi: For rofi-calendar & shutdown_menu script' 'util-linux: For rofi-calendar & usb script' 'zenity: For shutdown_menu script' 'systemd: For shutdown_menu script' 'curl: For tahoe-lafs script' 'jq: For tahoe-lafs script' 'tahoe-lafs: For tahoe-lafs script' 'lm_sensors: For temperature script' 'pulseaudio: For pulseaudio & volume script' 'alsa-utils: For pulseaudio & volume script' 'iw: For wlan-dbm script' 'mpv: For ytdl-mpv script' 'xclip: For ytdl-mpv script' 'youtube-dl: For ytdl-mpv script') provides=("${_pkgname}=${pkgver%%.r*}") conflicts=("${_pkgname}") source=("$pkgname::git+https://github.com/vivien/${_pkgname}") sha512sums=('SKIP') pkgver() { cd "${pkgname}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${pkgname}" for tobuild in $(find . -mindepth 2 -type f -name 'Makefile'); do pushd $(dirname $tobuild) make popd done } package () { cd "${pkgname}" install -d "${pkgdir}"/usr/lib/i3blocks find . -type f -executable -not -path './.git/*' -exec install {} "${pkgdir}"/usr/lib/i3blocks/ \; }