summaryrefslogtreecommitdiffstats
path: root/main/syslinux/APKBUILD
blob: df9cef11ade38fca21a5236c217872448d12b65a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=syslinux
pkgver=4.04
pkgrel=1
pkgdesc="a boot loader for the Linux operating system which operates off an MS-DOS/Windows FAT filesystem."
url="http://syslinux.org"
arch="x86 x86_64"
license="GPL"
makedepends="nasm perl"
depends="mtools blkid"
triggers="syslinux.trigger:/boot"
source="http://www.kernel.org/pub/linux/utils/boot/syslinux/${pkgver%%.*}.xx/$pkgname-$pkgver.tar.bz2
	extlinux.conf
	update-extlinux
	"
subpackages="$pkgname-doc"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
}

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

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

	mkdir -p "$pkgdir"/etc
	cp "$srcdir"/extlinux.conf "$pkgdir"/etc/
	cp "$srcdir"/update-extlinux "$pkgdir"/sbin/
}

md5sums="a3936208767eb7ced65320abe2e33a10  syslinux-4.04.tar.bz2
b7506dbbe9f05bed6d9e78f222b1e0ce  extlinux.conf
2c1016e63c12d4e8ca49aab374f2389e  update-extlinux"