summaryrefslogtreecommitdiff
path: root/pkgs-root/APKBUILD
blob: 538fd1ec7acc7989856057da3777db629decbb97 (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Contributor: Karel Kočí <cynerd@email.cz>
# Maintainer: Karel Kočí <cynerd@email.cz>
pkgname=pkgs-root
pkgver=0.3.10
pkgrel=1
pkgdesc="Personal root package"
url="https://git.cynerd.cz/alpine-personal-pkgs/"
arch="noarch"
license="GPL-3.0+"
options="!check"

subpackages="
	$pkgname-base:base
	$pkgname-virtual:virtual
	$pkgname-rpi:rpi
	$pkgname-rpi-wireless:rpi_wireless
	$pkgname-mpd:mpd
	$pkgname-kodi:kodi
	$pkgname-host-public:host_public
	$pkgname-host-mpd-home:host_mpd_home
	$pkgname-host-mpd-prg:host_mpd_prg
	$pkgname-host-print:host_print
"

package() { mkdir -p "$pkgdir"; }

base() {
	depends="
		alpine-base
		personal-repo
		acct-cynerd

		chrony
		openssh
		sudo
		iptables ip6tables

		shellrc-zsh bash
		coreutils grep
		util-linux
		rsync curl file tree findutils
		vim htop ncdu
	"
	mkdir -p "$pkgdir-base"
}

virtual() {
	depends="
		$pkgname-base
		btrfs-progs e2fsprogs
		linux-virt syslinux
	"
	mkdir -p "$pkgdir-virtual"
}

rpi() {
	depends="
		$pkgname-base
		btrfs-progs
		linux-rpi raspberrypi-bootloader mesa-dri-vc4
		raspberrypi
	"
	mkdir -p "$pkgdir-rpi"
}

rpi_wireless() {
	depends="
		$pkgname-rpi
		iw wireless-tools wpa_supplicant wpa_supplicant-openrc
	"
	mkdir -p "$pkgdir-rpi-wireless"
}

mpd() {
	depends="
		$pkgname-base

		mpd mpc alsa-utils
		sshfs gawk
	"
	mkdir -p "$pkgdir-mpd"
}

kodi() {
	depends="
		$pkgname-base
		kodi-x11
		xf86-input-libinput xf86-video-modesetting xorg-server
		eudev libinput
		samba-client
	"
	mkdir -p "$pkgdir-kodi"
}


host_public() {
	depends="
		$pkgname-virtual

		lighttpd certbot

		git git-daemon gitolite cgit

		alpine-sdk py-virtualenv
	"
	mkdir -p "$pkgdir-host-public"
}

host_mpd_home() {
	depends="
		$pkgname-rpi
		$pkgname-mpd
	"
	mkdir -p "$pkgdir-host-mpd-home"
}

host_mpd_prg() {
	depends="
		$pkgname-rpi-wireless
		$pkgname-mpd
		$pkgname-kodi
		mesa-dri-vc4
	"
	mkdir -p "$pkgdir-host-mpd-prg"
}

host_print() {
	depends="
		$pkgname-rpi-wireless
		py3-virtualenv python3
		git build-base linux-headers yaml-dev python3-dev
	"
	mkdir -p "$pkgdir-host-print"
}