summaryrefslogtreecommitdiff
path: root/pkgs-root/APKBUILD
blob: c7309f7233bdc448164db030864cf5459450871c (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
# Contributor: Karel Kočí <cynerd@email.cz>
# Maintainer: Karel Kočí <cynerd@email.cz>
pkgname=pkgs-root
pkgver=0.2
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

		chrony
		openssh
		sudo
		iptables ip6tables

		shellrc-zsh bash
		coreutils grep
		rsync curl file tree
		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
	"
	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 kodi-openrc
	"
	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
		py2-virtualenv python2 python2-dev
		yaml-dev
	"
	mkdir -p "$pkgdir-host-print"
}