diff options
author | Philipp Born | 2018-07-06 21:11:14 +0200 |
---|---|---|
committer | Philipp Born | 2018-07-06 21:11:14 +0200 |
commit | faa9489e20a0cde452a833ad91ed766ee66df861 (patch) | |
tree | 83e48cce32e9af89f1dca29788b10eabe22c9f80 /PKGBUILD | |
download | aur-faa9489e20a0cde452a833ad91ed766ee66df861.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f56af6d29099 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Philipp Born <philipp@tamcore.eu> +# Contributor: Max Roder <maxroder@web.de> + +pkgname='grub-imageboot' +pkgver='0.6' +pkgrel='2' +pkgdesc="grub2 script to automatically add boot entries for iso images placed in /boot/images/" +url="https://launchpad.net/ubuntu/+source/grub-imageboot/" +arch=('any') +license=('GPL') +depends=('syslinux' 'grub') +install='grub-imageboot.install' +_commit='529ac5d2bf91e7da8c31b9e15f37702127bddc1c' +source=("https://raw.githubusercontent.com/formorer/grub-imageboot/${_commit}/bin/60_grub-imageboot" + "https://raw.githubusercontent.com/formorer/grub-imageboot/${_commit}/etc/grub-imageboot") +sha256sums=('462a9720ffa13ea9378bc485ecc1a88cbee59534a256627e9ba4ce029ed61b39' + '12602cea7b5d5b434007b891730a5071c3d2a06ed1cc225932e91d8a5d1f6c20') + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # patch file + sed -i 's/\/usr\/lib\/grub/\/usr\/share\/grub/g' bin/60_grub-imageboot + + install -Dm755 bin/60_grub-imageboot ${pkgdir}/etc/grub.d/60_grub-imageboot + install -Dm644 etc/grub-imageboot ${pkgdir}/etc/default/grub-imageboot + install -d ${pkgdir}/boot/images +} + +# vim:set ts=2 sw=2 et: |