diff options
author | maz-1 | 2015-10-13 06:36:06 +0000 |
---|---|---|
committer | maz-1 | 2015-10-13 06:36:06 +0000 |
commit | dbc3a6a0a6ed19d3f059fe4ed2527c0d1f82399d (patch) | |
tree | 25a1231529cc36ec4a75daf18137b19a4cff4a78 | |
download | aur-dbc3a6a0a6ed19d3f059fe4ed2527c0d1f82399d.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | modify_path.patch | 26 | ||||
-rw-r--r-- | ucloner.desktop | 9 | ||||
-rw-r--r-- | ucloner.png | bin | 0 -> 131381 bytes | |||
-rw-r--r-- | ucloner.sh | 10 |
6 files changed, 111 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..466efa19acdb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = ucloner + pkgdesc = Ucloner + pkgver = 10.10.2 + pkgrel = 1 + url = https://code.google.com/p/ucloner + arch = any + license = GPL + depends = python2 + depends = vte + depends = squashfs-tools + depends = zenity + depends = gksu + source = https://ucloner.googlecode.com/files/UCloner-10.10.2-beta1.tar.gz + source = ucloner.sh + source = ucloner.desktop + source = ucloner.png + source = modify_path.patch + md5sums = b7bf49a5516cb9e00943e06e3e73adf2 + md5sums = cf31f3c5e5c594c49cf49a0a8ef3f39c + md5sums = be5a6ad80d91f2125fe753fa466d00aa + md5sums = 1f913fe9ca34481134bc36e1045e9a20 + md5sums = a7251a42473bb6827b3b39c3591c2e14 + +pkgname = ucloner + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8915233d0b2e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=ucloner +pkgver=10.10.2 +rev=beta1 +pkgrel=1 +pkgdesc="Ucloner" +arch=('any') +url="https://code.google.com/p/ucloner" +license=('GPL') +depends=('python2' 'vte' 'squashfs-tools' 'zenity' 'gksu') +source=( + 'https://ucloner.googlecode.com/files/UCloner-10.10.2-beta1.tar.gz' + 'ucloner.sh' + 'ucloner.desktop' + 'ucloner.png' + 'modify_path.patch' +) + +md5sums=('b7bf49a5516cb9e00943e06e3e73adf2' + 'cf31f3c5e5c594c49cf49a0a8ef3f39c' + 'be5a6ad80d91f2125fe753fa466d00aa' + '1f913fe9ca34481134bc36e1045e9a20' + 'a7251a42473bb6827b3b39c3591c2e14') + + +prepare() { + cd "${srcdir}/UCloner-$pkgver-$rev" + patch -p1 < "${srcdir}/modify_path.patch" + cd program + rm *.pyc + python2 -m compileall . +} + + +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.desktop" "$pkgdir/usr/share/applications/ucloner.desktop" + install -Dm 755 "${srcdir}/ucloner.png" "$pkgdir/usr/share/icons/ucloner.png" +} + diff --git a/modify_path.patch b/modify_path.patch new file mode 100644 index 000000000000..b7b0c6ed2095 --- /dev/null +++ b/modify_path.patch @@ -0,0 +1,26 @@ +diff -Naur a/program/functions.py b/program/functions.py +--- a/program/functions.py 2010-12-04 17:18:57.000000000 +0000 ++++ b/program/functions.py 2015-10-13 06:12:42.062145855 +0000 +@@ -490,16 +490,16 @@ + defaultExcludes.append( '/lib/modules/' + kernelVersion + '/volatile/' + each ) + + # /var/cache/apt/archives/*.deb +- contents = commands.getoutput( 'ls /var/cache/apt/archives | grep ".deb" ' ) ++ contents = commands.getoutput( 'ls /var/cache/pacman/pkg ' ) + if contents: + for each in contents.split('\n'): +- defaultExcludes.append( '/var/cache/apt/archives/' + each ) ++ defaultExcludes.append( '/var/cache/pacman/pkg' + each ) + + # /var/cache/apt/archives/partial/* +- contents = commands.getoutput( 'ls /var/cache/apt/archives/partial/' ) +- if contents: +- for each in contents.split('\n'): +- defaultExcludes.append( '/var/cache/apt/archives/partial/' + each ) ++ #contents = commands.getoutput( 'ls /var/cache/apt/archives/partial/' ) ++ #if contents: ++ # for each in contents.split('\n'): ++ # defaultExcludes.append( '/var/cache/apt/archives/partial/' + each ) + + return defaultExcludes + diff --git a/ucloner.desktop b/ucloner.desktop new file mode 100644 index 000000000000..25eca5d6b6fb --- /dev/null +++ b/ucloner.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=UCloner +Comment=Linux System Backup Utility +Comment[zh_CN]=Linux系统备份工具 +Exec=ucloner +Icon=ucloner.png +Type=Application +Categories=Game; +Terminal=false diff --git a/ucloner.png b/ucloner.png Binary files differnew file mode 100644 index 000000000000..98ea8d85181b --- /dev/null +++ b/ucloner.png diff --git a/ucloner.sh b/ucloner.sh new file mode 100644 index 000000000000..ad149fed7c0c --- /dev/null +++ b/ucloner.sh @@ -0,0 +1,10 @@ +#!/bin/sh +export LANGUAGE=`echo $LANG | grep -oP [A-Za-z_]+ | head -1` + +if [ "$( ps -A | grep ucloner_gui)" ] ; then + zenity --title="Error" --error --text="Another uclone instance is running!" + exit 1 +fi + +cd /opt/ucloner/ +exec gksu python2 ./ucloner_gui.py &> /dev/null
\ No newline at end of file |