summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryesuu2015-10-31 15:14:04 +0800
committeryesuu2015-10-31 15:20:25 +0800
commit3ba781ed53c805d61b2a401bf4cc2b6a5f24fc57 (patch)
tree3b14e744a4707d85066e0c26b3689694e31f1262
parentfb36928c7cd10f18a6e63d7ba8cd2b9a1aa2293f (diff)
downloadaur-3ba781ed53c805d61b2a401bf4cc2b6a5f24fc57.tar.gz
add youdao-dict.install
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD5
-rw-r--r--youdao-dict.install13
3 files changed, 21 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 16cdd3673daf..e095e11c1f5c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,14 @@
pkgbase = youdao-dict
pkgdesc = YouDao Dictionary
pkgver = 1.0.2
- pkgrel = 1
+ pkgrel = 2
url = http://cidian.youdao.com/index-linux.html
+ install = youdao-dict.install
arch = i686
arch = x86_64
license = GPL3
+ depends = desktop-file-utils
+ depends = hicolor-icon-theme
depends = python
depends = python-pyqt5
depends = python-requests
diff --git a/PKGBUILD b/PKGBUILD
index 69cbce6aff7f..2e6a36e5bb6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,14 @@
pkgname=youdao-dict
pkgver=1.0.2
-pkgrel=1
+pkgrel=2
pkgdesc='YouDao Dictionary'
arch=('i686' 'x86_64')
url='http://cidian.youdao.com/index-linux.html'
license=('GPL3')
depends=(
+ 'desktop-file-utils'
+ 'hicolor-icon-theme'
'python'
'python-pyqt5'
'python-requests'
@@ -21,6 +23,7 @@ depends=(
'python-webob'
'qt5-webkit'
)
+install=youdao-dict.install
source_i686=('http://codown.youdao.com/cidian/linux/youdao-dict_1.0.2~binary_i386.tar.gz')
source_x86_64=('http://codown.youdao.com/cidian/linux/youdao-dict_1.0.2~binary_amd64.tar.gz')
sha256sums_i686=('ecab295766c3d54e71ca48820b56a92c61810c77715dac1fb3883be1ede51130')
diff --git a/youdao-dict.install b/youdao-dict.install
new file mode 100644
index 000000000000..6a34363af250
--- /dev/null
+++ b/youdao-dict.install
@@ -0,0 +1,13 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+