forked from helloSystem/helloDesktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·76 lines (58 loc) · 2.11 KB
/
build.sh
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
#!/bin/sh
set -e
build_package()
{
PORT=$1
( cd "${PORT}" && make build-depends-list | cut -c 12- | xargs pkg install -y )
make -C "${PORT}" package
}
mount -t unionfs $(readlink -f .) /usr/ports
HERE="${PWD}"
cd /usr/ports
# emulators/executor2000; not part of helloDesktop
# build_package emulators/executor2000
# launch
pkg install -y kf5-kwindowsystem qt5-qmake # Workaround for packages that are missed by sysutils/hellodesktop-launch
build_package sysutils/hellodesktop-launch
# gmenudbusmenuproxy-standalone
build_package x11/gmenudbusmenuproxy-standalone
# Menu
build_package x11-wm/hellodesktop-menu
# Filer
build_package x11-fm/hellodesktop-filer
# Icons
build_package x11-themes/hellodesktop-icons
# BreezeEnhanced
build_package x11-themes/hellodesktop-breezeenhanced
# Fonts
build_package x11-fonts/hellodesktop-urwfonts-ttf
# QtPlugin
build_package sysutils/hellodesktop-qtplugin
# slim-lite
( cd x11/slim && make build-depends-list | cut -c 12- | xargs pkg install -y )
make -C x11/slim FLAVOR=lite package
# Utilities
# Try to prevent it from compiling python packages...
## pyver=$(cat /usr/ports/Mk/bsd.default-versions.mk | grep ^PYTHON_DEFAULT | cut -d "=" -f 2 | xargs | sed -e 's|\.||g')
#pyver=39 # our ports tree is outdated on Cirrus, hence specifying it by hand
#py=py$pyver
#pkg install -y $py-sqlite3 $py-dateutil $py-pyelftools $py-pytz $py-qt5-pyqt $py-xattr $py-xdg $py-xmltodict $py-psutil $py-beautifulsoup $py-qt5-webengine python$pyver
# THE FOLLOWING WANTS TO BUILD PYHTON FROM SOURCE WHICH WE DO NOT WANT
# build_package sysutils/hellodesktop-utilities
# helloDesktop meta port
build_package x11-wm/hellodesktop
# helloSystem special system files port
build_package sysutils/helloSystem
cd "${HERE}"
umount /usr/ports
# FreeBSD repository
ABI=$(pkg config abi) # E.g., FreeBSD:13:amd64
mkdir -p "${ABI}"
find . -name '*.pkg' -exec mv {} "${ABI}/" \;
pkg repo "${ABI}/"
# index.html for the FreeBSD repository
cd "${ABI}/"
echo "<html><ul>" > index.html
find . -depth 1 -exec echo '<li><a href="{}" download>{}</a></li>' \; | sed -e 's|\./||g' >> index.html
echo "</ul></html>" >> index.html
cd -