# $Id: PKGBUILD 97504 2010-10-30 20:11:46Z tpowa $ # Maintainer: Thomas Bächler # Maintainer: Tobias Powalowski pkgname=syslinux pkgver=4.03 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Collection of flexible boot loaders that boot from FAT, ext2/3/4 and btrfs filesystems, from CDs and via PXE" url="http://syslinux.zytor.com/" license=('GPL2') depends=('perl' 'glibc') optdepends=('perl-passwd-md5: For md5pass' 'perl-digest-sha1: For sha1pass' 'mtools: For mkdiskimage and syslinux' ) makedepends=('nasm') source=(http://www.kernel.org/pub/linux/utils/boot/syslinux/$pkgname-${pkgver}.tar.bz2 syslinux-dont-build-dos-windows-targets.patch) build() { # Do not try to build syslinux with our default LDFLAGS, it will fail unset LDFLAGS cd "$srcdir"/$pkgname-${pkgver} # Do not try to build the Windows or DOS installers patch -p1 -i "$srcdir"/syslinux-dont-build-dos-windows-targets.patch # Fix FHS manpage path sed 's|/usr/man|/usr/share/man|g' -i MCONFIG make } package() { cd "$srcdir"/$pkgname-${pkgver} make INSTALLROOT="$pkgdir" AUXDIR=/usr/lib/syslinux install } md5sums=('a7ca38a0a5786b6efae8fb01a1ae8070' '895722a392f3d798a7cc24bc154656f0')