summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortaotieren2021-03-24 16:53:57 +0800
committertaotieren2021-03-24 16:53:57 +0800
commit34a1cf42c62ab48234a30df1c69116c99ddf1e4e (patch)
tree7b70360cd9657173e9da6f5fc11f3876d4ba9d32
downloadaur-34a1cf42c62ab48234a30df1c69116c99ddf1e4e.tar.gz
Update SerialTool v1.4.0alpha
-rw-r--r--.SRCINFO32
-rw-r--r--.gitignore8
-rw-r--r--20-usb-serial.rules2
-rw-r--r--PKGBUILD40
-rw-r--r--serialtool.desktop11
-rw-r--r--serialtool.install12
6 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..34d384dd036
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = serialtool
+ pkgdesc = A practical Serial-Port/TCP/UDP debugging tool.
+ pkgver = 1.4.0alpha
+ pkgrel = 1
+ url = https://github.com/Skiars/SerialTool
+ install = serialtool.install
+ arch = any
+ license = GPL3
+ makedepends = qscintilla-qt5
+ makedepends = qt5-serialport
+ makedepends = qt5-charts
+ makedepends = qt5-script
+ makedepends = qt5-tools
+ depends = qscintilla-qt5
+ depends = qt5-serialport
+ depends = qt5-charts
+ depends = qt5-script
+ provides = serialtool
+ conflicts = serialtool
+ replaces = serialtool
+ options = !strip
+ source = SerialTool.zip::https://github.com/Skiars/SerialTool/archive/refs/tags/v1.4.0alpha.zip
+ source = serialtool.desktop
+ source = 20-usb-serial.rules
+ source = serialtool.install
+ sha256sums = 95b8780eecc007fae461025d1c3db8b2158905e9379541632ab791c3c5e72455
+ sha256sums = ff5fe40677b49c0061dfbb3781871a759a97f59e4f9cbc7baae0c181ecf90a76
+ sha256sums = bd504256698f7e7b1a74fbc6490276f0c096c2e6b5e7199049766b7ba7c860a7
+ sha256sums = 303f34246c0d341e1093d6e486e2cbfdbbb0d122d751de649f562ebac37777b4
+
+pkgname = serialtool
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..11888c16792
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+src
+pkg
+*.deb
+*.rpm
+*.zip
+*.pkg.tar.xz
+*.pkg.tar.zst
+*.log
diff --git a/20-usb-serial.rules b/20-usb-serial.rules
new file mode 100644
index 00000000000..b2a413a8672
--- /dev/null
+++ b/20-usb-serial.rules
@@ -0,0 +1,2 @@
+KERNEL=="ttyUSB*",MODE="0666"
+KERNEL=="ttyS*",MODE="0666"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef0ccad9e5d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: taotieren <admin@taotieren.com>
+_pkgname=SerialTool
+pkgname=serialtool
+pkgver=1.4.0alpha
+pkgrel=1
+pkgdesc="A practical Serial-Port/TCP/UDP debugging tool."
+arch=('any')
+url="https://github.com/Skiars/SerialTool"
+license=('GPL3')
+provides=(${pkgname})
+conflicts=(${pkgname})
+replaces=(${pkgname})
+depends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script')
+makedepends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script' 'qt5-tools')
+backup=()
+options=('!strip')
+install=${pkgname}.install
+source=("${_pkgname}.zip::https://github.com/Skiars/${_pkgname}/archive/refs/tags/v${pkgver}.zip"
+ "${pkgname}.desktop"
+ "20-usb-serial.rules"
+ "${pkgname}.install")
+sha256sums=('95b8780eecc007fae461025d1c3db8b2158905e9379541632ab791c3c5e72455'
+ 'ff5fe40677b49c0061dfbb3781871a759a97f59e4f9cbc7baae0c181ecf90a76'
+ 'bd504256698f7e7b1a74fbc6490276f0c096c2e6b5e7199049766b7ba7c860a7'
+ '303f34246c0d341e1093d6e486e2cbfdbbb0d122d751de649f562ebac37777b4')
+
+build() {
+ cd ${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/
+ qmake ${_pkgname}.pro
+ make
+}
+
+package() {
+ install -Dm755 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/resource/images/logo.ico" "${pkgdir}/usr/share/pixmaps/${pkgname}.ico"
+#install -Dm644 "${srcdir}/${_pkgname}/${_pkgname}/resource/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${srcdir}/20-usb-serial.rules" "${pkgdir}/etc/udev/rules.d/20-usb-serial.rules"
+}
diff --git a/serialtool.desktop b/serialtool.desktop
new file mode 100644
index 00000000000..95386ccd121
--- /dev/null
+++ b/serialtool.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=SerialTool
+Name[en_US]=serialtool
+Name[zh_CN]=serialtool
+Exec=SerialTool
+Terminal=false
+Type=Application
+Icon=serialtool.ico
+Comment=A practical Serial-Port/TCP/UDP debugging tool.
+Comment[zh_CN]=一个实用的串口/ TCP / UDP 调试工具。
+Categories=Development;Tool;Serial;
diff --git a/serialtool.install b/serialtool.install
new file mode 100644
index 00000000000..66d9139f790
--- /dev/null
+++ b/serialtool.install
@@ -0,0 +1,12 @@
+post_install() {
+ udevadm trigger
+ udevadm control --reload-rules
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}