updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / refit / PKGBUILD
blob643572750904f8c3d894a9297db43d1499acdfd2
1 # Contributor : Alessio 'mOLOk' Bolognino <themolok at gmail dot com>
3 pkgname=refit
4 pkgver=0.14
5 pkgrel=1
6 pkgdesc="A GUI bootloader for Apple-Intel Macs and other (U)EFI based systems"
7 arch=('i686' 'x86_64')
8 license=('BSD')
9 depends=('glibc' 'gnu-efi')
10 url="http://refit.sourceforge.net"
11 source=(http://downloads.sourceforge.net/refit/refit-src-${pkgver}.tar.gz)
13 md5sums=('16f02fa5b5decdee17eebd5cd863b3f0')
15 build() {
16     
17     cd ${srcdir}/refit-src-${pkgver}/
18     
19     make -C libeg 
20     make -C refit
21     
22     make -C gptsync -f Makefile.unix
23     rm ${srcdir}/refit-src-${pkgver}/gptsync/gptsync.o
24     
25     make -C gptsync -f Makefile
29 package() {
31     cd ${srcdir}/refit-src-${pkgver}/
32     
33     install -D ${srcdir}/refit-src-${pkgver}/gptsync/gptsync ${pkgdir}/sbin/gptsync
34     install -D -m644 ${srcdir}/refit-src-${pkgver}/refit/refit.efi ${pkgdir}/usr/lib/refit/refit/refit.efi
35     install -D -m644 ${srcdir}/refit-src-${pkgver}/gptsync/gptsync.efi ${pkgdir}/usr/lib/refit/tools/gptsync.efi
37     # install the man page
38     install ${srcdir}/refit-src-${pkgver}/gptsync/gptsync.8 ${pkgdir}/usr/share/man/man8/gptsync.8
39         
40     # install the license
41     install -D ${srcdir}/refit-src-${pkgver}/LICENSE.txt ${pkgdir}/usr/share/licenses/refit/LICENSE
42