summaryrefslogtreecommitdiff
path: root/repo/syslinux/syslinux.xibuild
blob: 19edc66affe7b066906bfcf5ef83e3f86f9426e2 (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
#!/bin/sh

MAKEDEPS="make "
DEPS="util-linux sbase musl"

PKG_VER=6.03
SOURCE=https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/${PKG_VER%.*}.xx/syslinux-$PKG_VER.tar.xz
ADDITIONAL="
	update-extlinux.conf
	update-extlinux
	0018-prevent-pow-optimization.patch
	fix-sysmacros.patch
    "
DESC="Boot loader for the Linux operating system"

prepare () {
    apply_patches
}

build () {
    make efi64 installer
}

package () {
    make -j1 INSTALLROOT="$PKG_DEST" MANDIR=/usr/share/man \
    bios efi64 install

	mkdir -p "$PKG_DEST"/etc/update-extlinux.d
	cp update-extlinux.conf "$PKG_DEST"/etc/
	sed "/^version=/s/=.*/=$PKG_VER/" update-extlinux \
		> "$PKG_DEST"/sbin/update-extlinux
	chmod 755 "$PKG_DEST"/sbin/update-extlinux
}