# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mactel-boot
pkgver=0.9
pkgrel=0
pkgdesc="Provides hfs-bless utility to boot Apple computers"
url="http://www.codon.org.uk/~mjg59/mactel-boot/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="http://www.codon.org.uk/~mjg59/mactel-boot/mactel-boot-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	make hfs-bless
}

package() {
	mkdir -p "$pkgdir"/usr/sbin
	install -m 755 "$builddir"/hfs-bless "$pkgdir"/usr/sbin/
	mkdir -p "$pkgdir"/usr/share/man/man1
	install -m 644 "$builddir"/bless.1 "$pkgdir"/usr/share/man/man1/hfs-bless.1
}

sha512sums="e120762ea237d6020f6f4cafc540f5cf6dda2d900997a6373f29163c82453d6936ef6005a8a9f5199b43dd55ae317ddc17a109ce80ff8a42eec2df661556881d  mactel-boot-0.9.tar.bz2"