diff options
author | xgdgsc | 2015-08-29 10:57:29 +0800 |
---|---|---|
committer | xgdgsc | 2015-08-29 10:57:29 +0800 |
commit | 2bb07949b897db0ff6cba861ef1b564df5b0836a (patch) | |
tree | 92ac1fc5bf4201e59c4046093081f8e67a964ce7 | |
parent | e3499266c48148e8170a58a6929bf1a302218d14 (diff) | |
download | aur-tunet.tar.gz |
upg to 2015
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rwxr-xr-x | TUNet.desktop | 4 | ||||
-rw-r--r-- | logo.png | bin | 0 -> 3355 bytes | |||
-rwxr-xr-x | tunet.install | 15 |
5 files changed, 36 insertions, 23 deletions
@@ -1,16 +1,18 @@ pkgbase = tunet pkgdesc = Tsinghua University network authentication client for Linux. - pkgver = 1 + pkgver = 2015 pkgrel = 1 url = http://net.tsinghua.edu.cn + install = tunet.install arch = i686 arch = x86_64 license = Unknown - depends = glib2 - source = http://net.tsinghua.edu.cn/files/TUNet_linux.tar.gz + source = http://net.tsinghua.edu.cn/files/Tunet2015_linux.rar source = TUNet.desktop - md5sums = da737c2edd551cc259378eef3dff343b - md5sums = 55d1a040bc394e096fa4c81f43444458 + source = logo.png + md5sums = c4c286c59a3baf453cc08c3654511ceb + md5sums = 195dd8feecedd85aaef8e7b4a1c2884a + md5sums = e4c03714b61b1d3906865c08672348d9 pkgname = tunet @@ -1,28 +1,24 @@ #Maintainer:xgdgsc pkgname="tunet" -pkgver="1" +pkgver="2015" pkgrel=1 pkgdesc="Tsinghua University network authentication client for Linux." arch=("i686" "x86_64") url="http://net.tsinghua.edu.cn" license=('Unknown') -source=("http://net.tsinghua.edu.cn/files/TUNet_linux.tar.gz" "TUNet.desktop") -md5sums=("da737c2edd551cc259378eef3dff343b" "55d1a040bc394e096fa4c81f43444458") -depends=('glib2') +source=("http://net.tsinghua.edu.cn/files/Tunet2015_linux.rar" "TUNet.desktop" "logo.png") +md5sums=("c4c286c59a3baf453cc08c3654511ceb" "195dd8feecedd85aaef8e7b4a1c2884a" "e4c03714b61b1d3906865c08672348d9") +install='tunet.install' +# makedepends=('unrar') +# depends=('glib2') package() { - cd "${srcdir}/TUNet_linux/" + cd "${srcdir}" + tar -xzvf Tunet2015.$CARCH.tgz mkdir -p "${pkgdir}/opt/TUNet" mkdir -p "${pkgdir}/usr/share/applications/" - cp *.png "${pkgdir}/opt/TUNet" - cp tunet.ui "${pkgdir}/opt/TUNet" - if [[ $CARCH = i686 ]];then - cp TUNet "${pkgdir}/opt/TUNet" - sed -i 's|Exec=/opt/TUNet/TUNet64|Exec=/opt/TUNet/TUNet|' "${srcdir}/TUNet.desktop" - cp "${srcdir}/TUNet.desktop" "${pkgdir}/usr/share/applications/" - else - cp TUNet64 "${pkgdir}/opt/TUNet" - cp "${srcdir}/TUNet.desktop" "${pkgdir}/usr/share/applications/" - fi -}
\ No newline at end of file + cp logo.png "${pkgdir}/opt/TUNet/" + cp bin/Tunet2015* "${pkgdir}/opt/TUNet/" + cp "${srcdir}/TUNet.desktop" "${pkgdir}/usr/share/applications/" +} diff --git a/TUNet.desktop b/TUNet.desktop index ce47e9a4878f..3a4c52fa0714 100755 --- a/TUNet.desktop +++ b/TUNet.desktop @@ -5,6 +5,6 @@ Version=1.0 Name=TUNet Comment=TUNet Type=Application -Exec=/opt/TUNet/TUNet64 -Icon=/opt/TUNet/log.png +Exec=/opt/TUNet/Tunet2015-wui +Icon=/opt/TUNet/logo.png GenericName[en_US.UTF-8]=TUNet diff --git a/logo.png b/logo.png Binary files differnew file mode 100644 index 000000000000..e372fd0c5d6c --- /dev/null +++ b/logo.png diff --git a/tunet.install b/tunet.install new file mode 100755 index 000000000000..24ef9b8ae122 --- /dev/null +++ b/tunet.install @@ -0,0 +1,15 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor + update-desktop-database -q + cat << EOF +==> To enable password saving function, please run: chown -hR YOUR_USERNAME /opt/TUNet/ +EOF +} + +post_upgrade() { + xdg-icon-resource forceupdate --theme hicolor + update-desktop-database -q + cat << EOF +==> To enable password saving function, please run: chown -hR YOUR_USERNAME /opt/TUNet/ +EOF +}
\ No newline at end of file |