updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / burg-emu / PKGBUILD
blob2cdf164514fccdf4f7663e056fe87af39a1eb8be
1 # Maintainer: cruznick <cruznick@archlinux.us>
2 # Maintainer: fsckd <fsckdaemon@gmail.com>
4 pkgname=burg-emu
5 pkgver=1844
6 pkgrel=2
7 pkgdesc="A brand-new boot loader based on GRUB.(emu)"
8 url="https://launchpad.net/burg"
9 license="GPL3"
10 arch=('i686' 'x86_64')
11 depends=('ruby' 'python2' 'gettext' 'freetype2' 'sdl' 'ncurses' 'burg-bzr')
12 makedepends=('bzr')
13 conflicts=(burg-emu-fixed)
14 replaces=(burg-emu-fixed)
15 provides=('burg-emu')
16 install='burg-emu.install'
18 _bzrmod=burg
19 _bzrtrunk=lp:${_bzrmod}
21 build() {
22  cd $srcdir/
24 msg "Connecting to the server...."
25   if [ ! -d ./${_bzrmod} ]; then
26    bzr branch ${_bzrtrunk} -r ${pkgver}
27     else
28    cd ${_bzrmod} && bzr pull -r ${pkgver}
29   fi
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
36 package() {
37 provides=('burg-emu')
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
45 make 
46 make install DESTDIR=$pkgdir 
47 # creating symbolic link to /bin this will be fixed when I finish mapping files
48 mkdir $pkgdir/bin
49 ln -s $pkgdir/opt/burg-emu/bin/burg-emu $pkgdir/bin