summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorariasuni2019-11-18 00:58:16 +0100
committerariasuni2019-11-18 00:58:16 +0100
commit47d0d29a71f47df71527a2bc24d8b00214bc1792 (patch)
tree47f38b5d5e3b8bf7bc2e06f9843d55ecaf7cca99
parent3dd241c8b87803fc1090acc15d1a2fcdf54eff79 (diff)
downloadaur-47d0d29a71f47df71527a2bc24d8b00214bc1792.tar.gz
update to 9.11.10 (save into git /usr/ files from previous .deb)
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD40
-rwxr-xr-xxiaomitool2
-rw-r--r--xiaomitool.appdata.xml25
-rw-r--r--xiaomitool.desktop9
-rw-r--r--xiaomitool.menu6
-rw-r--r--xiaomitool.xml18
8 files changed, 104 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 67d26c4be12..69108f5e513 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,22 @@
pkgbase = xiaomitool-v2
pkgdesc = Modding of Xiaomi devices made easy for everyone
- pkgver = 9.4.10
+ pkgver = 9.11.10
pkgrel = 1
url = https://www.xiaomitool.com/V2/
arch = any
license = custom
- source = https://github.com/francescotescari/XMT/releases/download/v9.4.10/XMT2_Linux_Debian_9.4.10.deb
- sha256sums = 7d329e1043dca0b38d162a3f34906b2cb57ec81a1f8e5ee8adf01a62783e5ba8
+ source = https://github.com/francescotescari/XMT/releases/download/v9.11.10/XMT2_Linux_9.11.10.run
+ source = xiaomitool
+ source = xiaomitool.appdata.xml
+ source = xiaomitool.desktop
+ source = xiaomitool.menu
+ source = xiaomitool.xml
+ sha256sums = ca3a7b1344733ba9b91e8c4a73bfb3dbf761d3fb721019c5683e25906551cf23
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
pkgname = xiaomitool-v2
diff --git a/.gitignore b/.gitignore
index c6d4c6feb3e..bc59a5639ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
pkg
src
-*.deb
+*.run
*.pkg.* \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index a06afc463bf..25dc81438ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,42 @@
# Mélanie Chauvel (ariasuni) <perso@hack-libre.org>
pkgname=xiaomitool-v2
-pkgver=9.4.10
+pkgver=9.11.10
pkgrel=1
pkgdesc='Modding of Xiaomi devices made easy for everyone'
arch=(any)
license=(custom)
url=https://www.xiaomitool.com/V2/
-source=(https://github.com/francescotescari/XMT/releases/download/v$pkgver/XMT2_Linux_Debian_$pkgver.deb)
-sha256sums=('7d329e1043dca0b38d162a3f34906b2cb57ec81a1f8e5ee8adf01a62783e5ba8')
-
-build() {
- cd $srcdir
- ar x $(basename $source)
- tar xf data.tar.xz
-}
+source=(
+ "https://github.com/francescotescari/XMT/releases/download/v$pkgver/XMT2_Linux_$pkgver.run"
+ 'xiaomitool'
+ 'xiaomitool.appdata.xml'
+ 'xiaomitool.desktop'
+ 'xiaomitool.menu'
+ 'xiaomitool.xml')
+sha256sums=(
+ 'ca3a7b1344733ba9b91e8c4a73bfb3dbf761d3fb721019c5683e25906551cf23'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
package() {
cd $srcdir
- cp -r opt res usr $pkgdir
+ sh "XMT2_Linux_$pkgver.run" --noexec
+
+ mkdir "$pkgdir/opt"
+ mv XiaoMiTool-V2 "$pkgdir/opt"
+
+ mkdir -p "$pkgdir/usr/bin"
+ install -m755 xiaomitool "$pkgdir/usr/bin"
+ mkdir -p "$pkgdir/usr/share/appdata"
+ install -m644 xiaomitool.appdata.xml "$pkgdir/usr/share/appdata"
+ mkdir "$pkgdir/usr/share/applications"
+ install -m644 xiaomitool.desktop "$pkgdir/usr/share/applications"
+ mkdir -p "$pkgdir/usr/share/gnome-control-center/default-apps"
+ install -m644 xiaomitool.xml "$pkgdir/usr/share/gnome-control-center/default-apps"
+ mkdir -p "$pkgdir/usr/share/menu"
+ install -m644 xiaomitool.menu "$pkgdir/usr/share/menu"
}
diff --git a/xiaomitool b/xiaomitool
new file mode 100755
index 00000000000..2056940d3b4
--- /dev/null
+++ b/xiaomitool
@@ -0,0 +1,2 @@
+#!/bin/sh
+(cd /opt/XiaoMiTool-V2/ && exec ./bin/java -jar ./XiaoMiTool.jar & )
diff --git a/xiaomitool.appdata.xml b/xiaomitool.appdata.xml
new file mode 100644
index 00000000000..2ae641e9e0b
--- /dev/null
+++ b/xiaomitool.appdata.xml
@@ -0,0 +1,25 @@
+<!-- Copyright 2017 The Chromium Authors -->
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>xiaomitool.desktop</id>
+ <update_contact>dev@xiaomitool.com</update_contact>
+ <project_license>Freeware under XiaoMiTool V2 Terms of Service</project_license>
+ <name>XiaoMiTool V2</name>
+ <summary>Xiaomi modding made easy</summary>
+ <description>
+ <p>
+ XiaoMiTool V2 is a tool used to simplify modding proceudures for Xiaomi devices
+ </p>
+ </description>
+ <url type="homepage">https://www.xiaomitool.com/V2</url>
+ <screenshots>
+ <screenshot type="default">
+ <image>https://www.xiaomitool.com/V2/img/xmt2.png</image>
+ <caption/>
+ </screenshot>
+ </screenshots>
+ <translation/>
+ <developer_name>Francesco Tescari</developer_name>
+ <url type="bugtracker">https://www.xiaomitool.com/V2#feedback</url>
+ <url type="help">https://www.xiaomitool.com/V2#feedback</url>
+</component>
diff --git a/xiaomitool.desktop b/xiaomitool.desktop
new file mode 100644
index 00000000000..fc5ed2bdf82
--- /dev/null
+++ b/xiaomitool.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=XiaoMiTool V2
+Exec=/usr/bin/xiaomitool %U
+StartupNotify=true
+Terminal=false
+Icon=xiaomitool
+Type=Application
+Categories=Development;Utility; \ No newline at end of file
diff --git a/xiaomitool.menu b/xiaomitool.menu
new file mode 100644
index 00000000000..2a0fad1932b
--- /dev/null
+++ b/xiaomitool.menu
@@ -0,0 +1,6 @@
+?package(xiaomitool):needs="x11" \
+ section="Applications/Network/Web Browsing" \
+ hints="XiaoMiTool" \
+ title="XiaoMiTool V2" \
+ icon="/opt/xiaomitool/product_logo_32.xpm" \
+ command="/opt/xiaomitool/xiaomitool"
diff --git a/xiaomitool.xml b/xiaomitool.xml
new file mode 100644
index 00000000000..85b072a4bc9
--- /dev/null
+++ b/xiaomitool.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
+<!-- This file should be put in /usr/share/gnome-control-center/default-apps,
+ or, if that directory does not exist, its web-browser tag patched into
+ /usr/share/gnome-control-center/default-apps/gnome-default-applications.xml
+ -->
+<default-apps>
+ <web-browsers>
+ <web-browser>
+ <name>XiaoMiTool V2</name>
+ <executable>/opt/xiaomitool/xiaomitool</executable>
+ <command>/opt/xiaomitool/xiaomitool %s</command>
+ <icon-name>xiaomitool</icon-name>
+ <run-in-terminal>false</run-in-terminal>
+ <netscape-remote>true</netscape-remote>
+ </web-browser>
+ </web-browsers>
+</default-apps>