forked from maemo-leste/image-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kawai.blend
54 lines (43 loc) · 1.31 KB
/
kawai.blend
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
#!/usr/bin/env zsh
# See LICENSE file for copyright and license details
vars+=(codename)
codename="kawai" && source "$R/../${codename}.config"
blend_preinst() {
fn blend_preinst
req=()
ckreq || return 1
}
blend_postinst() {
fn blend_postinst
req=(strapdir)
[ -n "$armsdk_version" ] && req+=(device_name)
ckreq || return 1
notice "copying rootfs overlays"
sudo rsync -vraX "$R/../rootfs-overlay/common/" "${strapdir}"
[ -n "$armsdk_version" ] && \
sudo rsync -vraX "$R/../rootfs-overlay/${device_name}/" "${strapdir}"
return 0
}
blend_bootstrap_setup() {
fn blend_bootstrap_setup
req=(repo_key strapdir)
ckreq || return 1
cat <<EOF | sudo tee ${strapdir}/blend-bootstrap-setup >/dev/null
#!/bin/sh
echo " * Adding maemo repository key to apt..."
wget -O- ${repo_key} | apt-key add -
EOF
chroot-script -d blend-bootstrap-setup || zerr
}
conf_print_sourceslist() {
fn conf_print_sourceslist "(override)"
req=(codename)
[ -n "$armsdk_version" ] && req+=(device_name)
ckreq || return 1
cat <<EOF
deb http://pkgmaster.devuan.org/merged ascii main contrib non-free
deb http://pkgmaster.devuan.org/merged ascii-updates main contrib non-free
deb http://pkgmaster.devuan.org/merged ascii-security main contrib non-free
deb http://maedevu.maemo.org/${codename} ${codename} main contrib non-free ${device_name}
EOF
}