aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux/APKBUILD
blob: d4d8ca00029ed4fee1b9fbc7d2b0b4ed9ec41640 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=syslinux
pkgver=3.86
pkgrel=1
pkgdesc="a boot loader for the Linux operating system which operates off an MS-DOS/Windows FAT filesystem."
url="http://syslinux.org"
license="GPL"
makedepends="nasm perl"
depends="mtools"
source="http://www.kernel.org/pub/linux/utils/boot/syslinux/3.xx/$pkgname-$pkgver.tar.bz2
	$pkgname-3.86-nopie.patch
	"
subpackages="$pkgname-doc"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	patch -p1 < ../$pkgname-3.86-nopie.patch || return 1
}

build() {
	cd "$_builddir"
	unset LDFLAGS
	make installer || return 1
}

package() {
	cd "$_builddir"
	make INSTALLROOT="$pkgdir" MANDIR=/usr/share/man local-install
}

md5sums="d6fb0231e82190b4932b2aa20274911a  syslinux-3.86.tar.bz2
5852d62ba0772cf967156a75451e6066  syslinux-3.86-nopie.patch"