summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortaotieren2021-03-24 16:53:57 +0800
committertaotieren2021-03-24 16:53:57 +0800
commit34a1cf42c62ab48234a30df1c69116c99ddf1e4e (patch)
tree7b70360cd9657173e9da6f5fc11f3876d4ba9d32 /PKGBUILD
downloadaur-34a1cf42c62ab48234a30df1c69116c99ddf1e4e.tar.gz
Update SerialTool v1.4.0alpha
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ef0ccad9e5dd
--- /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"
+}