1 # Maintainer: Daniel YC Lin <dlin.tw (at) gmail.com>
2 # Contributor: Daniel YC Lin <dlin.tw (at) gmail.com>
4 # I've tried to build from source, but it failed in my x86_64 machine.
5 # So, this script only grab binary from exist zip format file.
13 #pkgver=${_pkgver}_${_pkgdate//-/} # this method will failed on aur webpage
15 # the following line will let aur php page failed
16 #_pkgver=${pkgver/_*} # right trim of _...
17 #_date=${pkgver/*_} # left trim of ..._
18 #_pkgdate=${_date:0:4}-${_date:4:2}-${_date:6:2}
20 pkgdesc="A GRUB boot loader support menu on windows(fat,ntfs)/linux(ext2,3,4)"
21 arch=(any) # (x86 x86_64) # both are same content
23 # namcap known warning
24 # grub4dos E: ELF file ('usr/sbin/bootlace.com') found in an 'any' package.
25 # grub4dos W: File (grub) exists in a non-standard directory.
27 url="http://code.google.com/p/grub4dos-chenall"
29 backup=(etc/grub4dos.conf grub/menu.lst)
30 install=grub4dos.install
32 # http://grubutils.googlecode.com/files/unifont-2011-05-10.zip
33 # http://grub4dos-chenall.googlecode.com/files/arialuni_U16.zip
35 http://grub4dos-chenall.googlecode.com/files/$pkgname-$_pkgver-$_pkgdate.7z
36 http://grub4dos-chenall.googlecode.com/files/unifont.hex.gz
41 #noextract=( http://grub4dos-chenall.googlecode.com/files/unifont.hex.gz )
42 noextract=(unifont.hex.gz)
45 7z x -y $pkgname-$_pkgver-$_pkgdate.7z
47 mkdir -p $startdir/pkg/usr/sbin
48 cp $startdir/src/$pkgname-$_pkgver/bootlace.com $startdir/pkg/usr/sbin
50 mkdir -p $startdir/pkg/etc
51 cp $startdir/src/grub4dos.conf $startdir/pkg/etc
53 mkdir -p $startdir/pkg/grub
54 for n in grldr grub.exe default ; do
55 cp $startdir/src/$pkgname-$_pkgver/$n $startdir/pkg/grub
57 for n in menu.lst unifont.hex.gz ; do
58 cp $startdir/src/$n $startdir/pkg/grub
61 mkdir -p $startdir/pkg/usr/share/doc/$pkgname
62 for n in README_GRUB4DOS.txt ChangeLog_*.txt ; do
63 cp $startdir/src/$pkgname-$_pkgver/$n $startdir/pkg/usr/share/doc/$pkgname
65 cp $startdir/README_arch.txt $startdir/pkg/usr/share/doc/$pkgname
68 md5sums=('31f088ac842fcbc90e23f7a7b1bcbc2a'
69 '9afd47aaf5bcc56ab733facdc0ef30db'
70 '3e992d127c1c5a066762f3e7f4c20075'
71 '283a3e55667f7ce0d6333106b333376d'
72 '10fc09e2c4957435ee30e4a9f9e20aea')
73 # vim:set ts=2 sw=2 et: