summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-10-25 22:21:21 +0800
committermaz-12015-10-25 22:21:21 +0800
commit1064a7a5759a5ebd9165bcee1cdcb2d49c8aa4ca (patch)
tree3b08df9e6f86e44d3a06dd339ede13ab451cd7a2
parent9c0854e6f6f6ca62a2d33cac786c90548a37c174 (diff)
downloadaur-1064a7a5759a5ebd9165bcee1cdcb2d49c8aa4ca.tar.gz
update
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
-rw-r--r--ucloner-cmd.sh6
3 files changed, 11 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1c097bbc93e..c3432346a2e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -15,12 +15,14 @@ pkgbase = ucloner
optdepends = xfsprogs
source = https://ucloner.googlecode.com/files/UCloner-10.10.2-beta1.tar.gz
source = ucloner.sh
+ source = ucloner-cmd.sh
source = ucloner.desktop
source = ucloner.png
source = modify_path.patch
source = fix_package_querying.patch
md5sums = b7bf49a5516cb9e00943e06e3e73adf2
md5sums = 3dac4b28900e7be1068b502b7b848028
+ md5sums = 15efc60875b77125f8d5399797306955
md5sums = 32a9a04b595890e50fa10fe51823469a
md5sums = 1f913fe9ca34481134bc36e1045e9a20
md5sums = 4966de605892a3a5c52d7fdd4b768f0d
diff --git a/PKGBUILD b/PKGBUILD
index 11bf8c55075..b35576a6e9b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,6 +11,7 @@ optdepends=('jfsutils' 'reiserfsprogs' 'xfsprogs')
source=(
'https://ucloner.googlecode.com/files/UCloner-10.10.2-beta1.tar.gz'
'ucloner.sh'
+ 'ucloner-cmd.sh'
'ucloner.desktop'
'ucloner.png'
'modify_path.patch'
@@ -19,6 +20,7 @@ source=(
md5sums=('b7bf49a5516cb9e00943e06e3e73adf2'
'3dac4b28900e7be1068b502b7b848028'
+ '15efc60875b77125f8d5399797306955'
'32a9a04b595890e50fa10fe51823469a'
'1f913fe9ca34481134bc36e1045e9a20'
'4966de605892a3a5c52d7fdd4b768f0d'
@@ -40,6 +42,7 @@ package() {
install -dm 755 "$pkgdir/opt"
cp -r "${srcdir}/UCloner-$pkgver-$rev/program" "$pkgdir/opt/ucloner"
install -Dm 755 "${srcdir}/ucloner.sh" "$pkgdir/usr/bin/ucloner"
+ install -Dm 755 "${srcdir}/ucloner-cmd.sh" "$pkgdir/usr/bin/ucloner-cmd"
install -Dm 755 "${srcdir}/ucloner.desktop" "$pkgdir/usr/share/applications/ucloner.desktop"
install -Dm 755 "${srcdir}/ucloner.png" "$pkgdir/usr/share/pixmaps/ucloner.png"
}
diff --git a/ucloner-cmd.sh b/ucloner-cmd.sh
new file mode 100644
index 00000000000..7eb0b85bcf6
--- /dev/null
+++ b/ucloner-cmd.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+export LANGUAGE=`echo $LANG | grep -oP [A-Za-z_]+ | head -1`
+cd /opt/ucloner/
+exec sudo python2 ./ucloner_cmd.py "$@"
+
+