python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / lilo / template
blob991729258862d217c7bd193000a4ba867e2eb9f7
1 # Template file for 'lilo'
2 pkgname=lilo
3 version=24.2
4 revision=2
5 only_for_archs="i686 i686-musl x86_64 x86_64-musl"
6 hostmakedepends="bin86"
7 makedepends="device-mapper-devel"
8 short_desc="Standard Linux boot loader"
9 maintainer="Juan RP <xtraeme@voidlinux.eu>"
10 homepage="https://alioth.debian.org/projects/lilo/"
11 license="BSD"
12 distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
13 checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
15 pre_build() {
16         sed -i Makefile src/Makefile \
17                 -e 's|^\tmake|\t$(MAKE)|g' \
18                 -e '/images install/d' \
19                 -e '/images all/d'
21 do_build() {
22         # LILO needs LC_ALL=C
23         LC_ALL=C make CC=${CC} CFLAGS="$CFLAGS $LDFLAGS" ${makejobs} all
26 do_install() {
27         vmkdir usr/bin
28         make DESTDIR=${DESTDIR} install
29         mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
30         mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
32         rm ${DESTDIR}/etc/lilo.conf_example
33         for file in sample/*.conf; do
34                 vsconf ${file}
35         done
37         # Setup kernel hooks
38         rm -rf ${DESTDIR}/etc/initramfs ${DESTDIR}/etc/kernel
39         vinstall ${FILESDIR}/kernel.d/lilo.post-install 750 \
40                 etc/kernel.d/post-install 50-lilo
41         vinstall ${FILESDIR}/kernel.d/lilo.post-remove 750 \
42                 etc/kernel.d/post-remove 50-lilo
44         vlicense COPYING