aboutsummaryrefslogtreecommitdiffstats
path: root/testing/f_scripts/APKBUILD
blob: f068478fdcb7eb1df1498eb20724d65a3204e0ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Maintainer: Bobby Hamblin <hamblingreen@hotmail.com>
# Contributor: Miles Alan <m@milesalan.com>
pkgname=f_scripts
pkgver=0.5
pkgrel=2
pkgdesc="Framebufferphone prompt-driven scripts which are compatible with fbp"
url="http://git.sr.ht/~hamblingreen/f_scripts"
arch="noarch"
license="GPL-3.0-or-later"
depends="oil"
source="$pkgname-$pkgver.tar.gz::http://git.sr.ht/~hamblingreen/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
"