# Maintainer: Miles Alan # Contributor: Miles Alan pkgname=f_scripts pkgver=0.5 pkgrel=1 pkgdesc="Framebufferphone prompt-driven scripts which are compatible with fbp" url="http://git.sr.ht/~mil/f_scripts" arch="noarch" license="GPL-3.0-or-later" depends="oil" source="$pkgname-$pkgver.tar.gz::http://git.sr.ht/~mil/f_scripts/archive/$pkgver.tar.gz" options="!check" # Has no tests subpackages=" $pkgname-f_audio $pkgname-f_files $pkgname-f_game $pkgname-f_maps $pkgname-f_networks $pkgname-f_phone $pkgname-f_rss $pkgname-f_theme $pkgname-f_timer $pkgname-f_web $pkgname-f_youtube " package() { mkdir -p "$pkgdir/usr/bin" } f_audio() { pkgdesc="$pkgname - f_audio script, Adjust audio output devices and volume" depends="$depends alsa-utils" install -Dm755 "$builddir"/scripts/f_audio "$subpkgdir/usr/bin/f_audio" } f_files() { pkgdesc="$pkgname - f_files script, Browse files on your filesystem" depends="$depends vim mpv fbida-fbi fbida-fbgs" install -Dm755 "$builddir"/scripts/f_files "$subpkgdir/usr/bin/f_files" } f_game() { pkgdesc="$pkgname - f_game script, Play classic console games" depends="$depends moon-buggy" install -Dm755 "$builddir"/scripts/f_game "$subpkgdir/usr/bin/f_game" } f_maps() { pkgdesc="$pkgname - f_maps script, Browse OSM maps using mepo (via SDL directfb)." depends="$depends mepo tslib directfb mesa-gl kbd vis" install -Dm755 "$builddir"/scripts/f_maps "$subpkgdir/usr/bin/f_maps" } f_networks() { pkgdesc="$pkgname - f_networks script, Allows managing gsm/wpa connections via underlying nmcli calls" depends="$depends networkmanager dnsmasq networkmanager networkmanager-cli networkmanager-openrc networkmanager-tui networkmanager-wifi networkmanager-wwan" install -Dm755 "$builddir"/scripts/f_networks "$subpkgdir/usr/bin/f_networks" } f_phone() { pkgdesc="$pkgname - f_phone script, Manages phone calls / text messages using modemmanager" depends="$depends polkit modemmanager linuxconsoletools pn" install -Dm755 "$builddir"/scripts/f_phone "$subpkgdir/usr/bin/f_phone" } f_rss() { pkgdesc="$pkgname - f_rss script, Fetches data from RSS via sfeed and allows you to view via sfeed_curses" depends="$depends sfeed w3m" install -Dm755 "$builddir"/scripts/f_rss "$subpkgdir/usr/bin/f_rss" } f_theme() { pkgdesc="$pkgname - f_theme script, Change the framebuffer theme (font & colors)" depends="$depends terminus-font util-linux-misc" install -Dm755 "$builddir"/scripts/f_theme "$subpkgdir/usr/bin/f_theme" } f_timer() { pkgdesc="$pkgname - f_timer script, Set a countdown timer to be alerted" depends="$depends linuxconsoletools util-linux-misc" install -Dm755 "$builddir"/scripts/f_timer "$subpkgdir/usr/bin/f_timer" } f_web() { pkgdesc="$pkgname - f_web script, Select a website and browse via w3m or netsurf" depends="$depends w3m netsurf-framebuffer tslib" install -Dm755 "$builddir"/scripts/f_web "$subpkgdir/usr/bin/f_web" } f_youtube() { pkgdesc="$pkgname - f_youtube script, Listen or view youtube videos via mpv" depends="$depends codemadness-frontends mpv youtube-dl" install -Dm755 "$builddir"/scripts/f_youtube "$subpkgdir/usr/bin/f_youtube" } sha512sums=" 2e07ccf037835bdfc7f6528cb73a270098e94a81dab9cec2efc8641aa9a398d26a6d010f3ecdb0a4948b2865627e846315d50f0c27e836b526ff130394b69c0f f_scripts-0.5.tar.gz "