mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 18:14:54 +08:00
08895fc72d
This reverts commit 57618a09cf
.
49 lines
1.3 KiB
Bash
Executable File
49 lines
1.3 KiB
Bash
Executable File
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dot]org
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe[at]gmail[dot]com>
|
|
pkgname=burg-emu
|
|
pkgver=1844
|
|
pkgrel=2
|
|
pkgdesc="A brand-new boot loader based on GRUB (emulator)"
|
|
url="https://launchpad.net/burg"
|
|
license="GPL3"
|
|
arch=('i686' 'x86_64')
|
|
depends=('ruby' 'python2' 'gettext' 'freetype2' 'sdl' 'ncurses' 'burg-bzr')
|
|
makedepends=('bzr')
|
|
conflicts=(burg-emu-fixed)
|
|
replaces=(burg-emu-fixed)
|
|
provides=('burg-emu')
|
|
install='burg-emu.install'
|
|
|
|
_bzrmod=burg
|
|
_bzrtrunk=lp:${_bzrmod}
|
|
|
|
build() {
|
|
cd $srcdir/
|
|
|
|
msg "Connecting to the server...."
|
|
if [ ! -d ./${_bzrmod} ]; then
|
|
bzr branch ${_bzrtrunk} -r ${pkgver}
|
|
else
|
|
cd ${_bzrmod} && bzr pull -r ${pkgver}
|
|
fi
|
|
msg "BZR checkout done or server timeout"
|
|
cd "${srcdir}/${_bzrmod}"
|
|
sed -i 's|python|python2|' ${srcdir}/${_bzrmod}/autogen.sh
|
|
./autogen.sh || return 1
|
|
}
|
|
package() {
|
|
provides=('burg-emu')
|
|
install='burg-emu.install'
|
|
msg "Removing old build directory..."
|
|
rm -rf $srcdir/$_bzrmod-emu-build
|
|
msg "Creating build directory..."
|
|
mkdir $srcdir/$_bzrmod-emu-build
|
|
cd $srcdir/$_bzrmod-emu-build
|
|
$srcdir/$_bzrmod/configure --with-platform=emu --disable-grub-emu-usb --prefix=/opt/burg-emu || return 1
|
|
make || return 1
|
|
make install DESTDIR=$pkgdir || return 11
|
|
}
|