summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane2019-07-03 13:07:10 +0800
committerShane2019-07-03 13:07:10 +0800
commitb3e6c8f0bd17c28316f58b4ffa1ff1345f089f7c (patch)
tree6d7c9fc21bf24fa3c414523dfc3a8472faf66410
parent7b7e077b3a7a6ae80d2a190172d6c653b4013b21 (diff)
downloadaur-b3e6c8f0bd17c28316f58b4ffa1ff1345f089f7c.tar.gz
点击文件可以直接打开了
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD45
-rw-r--r--XMind.desktop12
-rw-r--r--XMind.pngbin0 -> 100695 bytes
-rw-r--r--xmind.xml2
5 files changed, 59 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5159f7bbf86b..039f14948fce 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,25 @@
pkgbase = xmind-zen
- pkgdesc = converted from .rpm package on xmind.cn. please modify the website to xmind.net for non-Chinese users
- pkgver = 20190622
+ pkgdesc = XMind ZEN - The most popular mind mapping software. please modify the website to xmind.net for non-Chinese users
+ pkgver = 20190703
pkgrel = 1
url = https://www.xmind.cn/
arch = x86_64
license = custom
depends = gconf
- source = http://dl2.xmind.cn/XMind-ZEN-for-Linux-64bit.rpm
+ depends = libxss
+ depends = nss
+ depends = libxtst
+ conflicts = xmind
+ source = https://www.xmind.cn/xmind/downloads/XMind-ZEN-for-Linux-64bit.rpm
source = https://www.xmind.cn/terms/index.html
+ source = XMind.desktop
+ source = XMind.png
+ source = xmind.xml
md5sums = fe6357e885b72400a597416ac3d0f314
md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
pkgname = xmind-zen
diff --git a/PKGBUILD b/PKGBUILD
index ef867b062125..a765d71d2bef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,48 @@
# Maintainer: Shane <shanelyx@outlook.com>
pkgname=xmind-zen
-pkgver=20190622
+pkgver=20190703
pkgrel=1
-pkgdesc="converted from .rpm package on xmind.cn. please modify the website to xmind.net for non-Chinese users"
+pkgdesc="XMind ZEN - The most popular mind mapping software. please modify the website to xmind.net for non-Chinese users"
arch=("x86_64")
url="https://www.xmind.cn/"
license=('custom')
-depends=('gconf')
+
+conflicts=('xmind')
+
+depends=('gconf' 'libxss' 'nss' 'libxtst')
+
+_url="www.xmind.cn"
source=(
- "http://dl2.xmind.cn/XMind-ZEN-for-Linux-64bit.rpm"
- "https://www.xmind.cn/terms/index.html"
+ "https://${_url}/xmind/downloads/XMind-ZEN-for-Linux-64bit.rpm"
+ "https://${_url}/terms/index.html"
+ "XMind.desktop"
+ "XMind.png"
+ "xmind.xml"
)
-md5sums=('fe6357e885b72400a597416ac3d0f314'
+md5sums=(
+ 'fe6357e885b72400a597416ac3d0f314'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
'SKIP'
)
-#options=('!strip')
-
package() {
- cd ${srcdir}
- cp -r opt usr ${pkgdir}
- install -Dm644 index.html ${pkgdir}/usr/share/licenses/$pkgname/license.html
+ cd ${srcdir}
+ cp -rf opt usr ${pkgdir}/
+
+ # .desktop
+ install -Dm644 XMind.desktop ${pkgdir}/usr/share/applications/
+
+ # license
+ install -Dm644 index.html ${pkgdir}/usr/share/licenses/$pkgname/license.html
+
+ # icon
+ mkdir -p ${pkgdir}/usr/share/pixmaps
+ install -Dm644 XMind.png ${pkgdir}/usr/share/pixmaps/
+
+ # mimeType
+ mkdir -p ${pkgdir}/usr/share/mime/packages
+ install -Dm644 xmind.xml ${pkgdir}/usr/share/mime/packages/
} \ No newline at end of file
diff --git a/XMind.desktop b/XMind.desktop
new file mode 100644
index 000000000000..c52fecfcf0df
--- /dev/null
+++ b/XMind.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=XMind ZEN
+Comment=XMind - The most popular mind mapping software.
+Exec="/opt/XMind ZEN/XMind" %F
+Terminal=false
+Type=Application
+Icon=XMind
+StartupNotify=true
+StartupWMClass=XMind ZEN
+MimeType=application/xmind;x-scheme-handler/xmind;
+Categories=Office;
+
diff --git a/XMind.png b/XMind.png
new file mode 100644
index 000000000000..5700db2df486
--- /dev/null
+++ b/XMind.png
Binary files differ
diff --git a/xmind.xml b/xmind.xml
index 6c3665d61ce5..084191d14ff8 100644
--- a/xmind.xml
+++ b/xmind.xml
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/xmind">
- <sub-class-of type="application/zip" />
<comment>XMind File</comment>
- <comment xml:lang="zh_CN">XMind 文件</comment>
<glob pattern="*.xmind"/>
<generic-icon name="XMind"/>
</mime-type>