summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-10-26 14:18:20 +0800
committermaz-12015-10-26 14:18:20 +0800
commitc46baf8d8325f76a587d234f03899be914682d9e (patch)
tree5c79ea904f4e52472297ed474295437dd15a09f3
parent5766d303b490c5fd360b073433c64a62dd6374e0 (diff)
downloadaur-c46baf8d8325f76a587d234f03899be914682d9e.tar.gz
fix
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
-rw-r--r--fix_grub_install.patch12
3 files changed, 18 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 42c01261a23..12837f45a29 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -21,6 +21,7 @@ pkgbase = ucloner
source = ucloner.png
source = modify_path.patch
source = fix_package_querying.patch
+ source = fix_grub_install.patch
md5sums = b7bf49a5516cb9e00943e06e3e73adf2
md5sums = 3dac4b28900e7be1068b502b7b848028
md5sums = 15efc60875b77125f8d5399797306955
@@ -28,6 +29,7 @@ pkgbase = ucloner
md5sums = 1f913fe9ca34481134bc36e1045e9a20
md5sums = 4966de605892a3a5c52d7fdd4b768f0d
md5sums = c84c4aaba3bf5c7fbb6126190cb341ca
+ md5sums = 1ce4d37e5531797196104c08825db0f7
pkgname = ucloner
diff --git a/PKGBUILD b/PKGBUILD
index 9f0fef0634a..1c9b7cce5dc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,7 @@ source=(
'ucloner.png'
'modify_path.patch'
'fix_package_querying.patch'
+ 'fix_grub_install.patch'
)
md5sums=('b7bf49a5516cb9e00943e06e3e73adf2'
@@ -24,13 +25,15 @@ md5sums=('b7bf49a5516cb9e00943e06e3e73adf2'
'32a9a04b595890e50fa10fe51823469a'
'1f913fe9ca34481134bc36e1045e9a20'
'4966de605892a3a5c52d7fdd4b768f0d'
- 'c84c4aaba3bf5c7fbb6126190cb341ca')
+ 'c84c4aaba3bf5c7fbb6126190cb341ca'
+ '1ce4d37e5531797196104c08825db0f7')
prepare() {
cd "${srcdir}/UCloner-$pkgver-$rev"
patch -p1 < "${srcdir}/modify_path.patch"
patch -p1 < "${srcdir}/fix_package_querying.patch"
+ patch -p1 < "${srcdir}/fix_grub_install.patch"
cd program
rm *.pyc
find -name '*.py' | xargs sed -i 's|#!/usr/bin/python$|#!/usr/bin/env python2|'
diff --git a/fix_grub_install.patch b/fix_grub_install.patch
new file mode 100644
index 00000000000..1d5a9efa321
--- /dev/null
+++ b/fix_grub_install.patch
@@ -0,0 +1,12 @@
+diff -Naur a/program/sh/install_grub.sh b/program/sh/install_grub.sh
+--- a/program/sh/install_grub.sh 2010-07-14 12:53:44.000000000 +0800
++++ b/program/sh/install_grub.sh 2015-10-26 14:15:50.935032106 +0800
+@@ -79,7 +79,7 @@
+
+
+ echo "Generating grub.cfg ..."
+-target_cmd "$target_dir" update-grub
++target_cmd "$target_dir" grub-mkconfig -o /boot/grub/grub.cfg
+
+
+ if [ $? -eq 0 ] ; then