1 # Maintainer: cruznick <cruznick@archlinux.us>
2 # Maintainer: fsckd <fsckdaemon@gmail.com>
7 pkgdesc="A brand-new boot loader based on GRUB.(emu)"
8 url="https://launchpad.net/burg"
10 arch=('i686' 'x86_64')
11 depends=('ruby' 'python2' 'gettext' 'freetype2' 'sdl' 'ncurses' 'burg-bzr')
13 conflicts=(burg-emu-fixed)
14 replaces=(burg-emu-fixed)
16 install='burg-emu.install'
19 _bzrtrunk=lp:${_bzrmod}
24 msg "Connecting to the server...."
25 if [ ! -d ./${_bzrmod} ]; then
26 bzr branch ${_bzrtrunk} -r ${pkgver}
28 cd ${_bzrmod} && bzr pull -r ${pkgver}
30 msg "BZR checkout done or server timeout"
31 cd "${srcdir}/${_bzrmod}"
32 ## Archlinux changed default /usr/bin/python to 3.1.2, need to use /usr/bin/python2 instead
33 sed -i 's|python|python2|' ${srcdir}/${_bzrmod}/autogen.sh
34 ./autogen.sh || return 1
38 install='burg-emu.install'
39 msg "Removing old build directory..."
40 rm -rf $srcdir/$_bzrmod-emu-build
41 msg "Creating build directory..."
42 mkdir $srcdir/$_bzrmod-emu-build
43 cd $srcdir/$_bzrmod-emu-build
44 $srcdir/$_bzrmod/configure --with-platform=emu --disable-grub-emu-usb --prefix=/opt/burg-emu --disable-werror || return 1
46 make install DESTDIR=$pkgdir
47 # creating symbolic link to /bin this will be fixed when I finish mapping files
49 ln -s $pkgdir/opt/burg-emu/bin/burg-emu $pkgdir/bin