summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortaotieren2021-03-24 22:19:15 +0800
committertaotieren2021-03-24 22:20:02 +0800
commit0c99363cc3511fb4333e329f4805a99947b1ee84 (patch)
treee9c95540403c37d45285667cf9803d3ebc0f35fa
parent049e2f7ae81b88cb4454894dc9a65120688ba109 (diff)
downloadaur-0c99363cc3511fb4333e329f4805a99947b1ee84.tar.gz
Update PKGBUILD
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD17
2 files changed, 13 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef00ef7a1e8..b8954b4a5e4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = serialtool
pkgdesc = A practical Serial-Port/TCP/UDP debugging tool.
pkgver = 1.4.0alpha
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/Skiars/SerialTool
install = serialtool.install
arch = any
@@ -17,7 +17,7 @@ pkgbase = serialtool
depends = qt5-script
provides = serialtool
conflicts = serialtool
- replaces = serialtool
+ conflicts = serialtool-git
options = !strip
source = SerialTool.zip::https://github.com/Skiars/SerialTool/archive/refs/tags/v1.4.0alpha.zip
source = serialtool.desktop
diff --git a/PKGBUILD b/PKGBUILD
index c976684b2bf..b8413d28611 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
_pkgname=SerialTool
pkgname=serialtool
pkgver=1.4.0alpha
-pkgrel=2
+pkgrel=3
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})
+conflicts=(${pkgname} 'serialtool-git')
+#replaces=(${pkgname})
depends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script')
makedepends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script' 'qt5-tools')
backup=()
@@ -26,15 +26,20 @@ sha256sums=('95b8780eecc007fae461025d1c3db8b2158905e9379541632ab791c3c5e72455'
build() {
cd ${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/
- qmake ${_pkgname}.pro
+ qmake
make
}
package() {
- install -Dm755 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ install -dm755 "${pkgdir}/usr/bin/" \
+ "${pkgdir}/usr/share/${pkgname}/"
+
+ cd ${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/
+ cp --preserve=mode -r ${_pkgname} language config themes slave "${pkgdir}/usr/share/${pkgname}/"
+
+ ln -sf "/usr/share/${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"
}