# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
# Contributor: André Silva <emulatorman@lavabit.com>
source PKGBUILD
CARCH=i686
unset build package md5sums source
_repo=core
source=(PKGBUILD
	#http://mirrors.kernel.org/archlinux/${_repo}/os/${CARCH}/${pkgname%}-$pkgver-$pkgrel-$CARCH$PKGEXT
        http://mirrors.kernel.org/archlinux/${_repo}/os/${CARCH}/${pkgname%}-$pkgver-21-$CARCH$PKGEXT
	# files for pkg modifications
  menu.lst
  install-grub
  )
options=(!strip)

build() {
  cd "${srcdir}/"
  #rm PKGBUILD .{INSTALL,PKGINFO} ${pkgname%}-$pkgver-$pkgrel-$CARCH$PKGEXT
   rm PKGBUILD .{INSTALL,PKGINFO} ${pkgname%}-$pkgver-21-$CARCH$PKGEXT
  # put actions for package modifications below this line

  rm -v boot/grub/menu.lst sbin/install-grub
}

package() {
  cd ${srcdir}
  cp -a ./* ${pkgdir}

  install -D -m644 menu.lst $pkgdir/boot/grub/menu.lst
  install -D -m755 install-grub $pkgdir/sbin/install-grub

  rm -v menu.lst install-grub ${pkgdir}/menu.lst ${pkgdir}/install-grub

}


# vim:set ts=2 sw=2 et: