blob: d4671f1fffefe8354b8df460dfe362fe25dde11f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: taotieren <admin@taotieren.com>
_pkgname=SerialTool
pkgname=serialtool
pkgver=1.5.7
pkgrel=1
pkgdesc="A practical Serial-Port/TCP/UDP debugging tool."
arch=('any')
url="https://github.com/HoGC/SerialTool"
license=('GPL3')
provides=(${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=()
options=('!strip')
install=${pkgname}.install
source=("${_pkgname}-${pkgver}.zip::${url}/archive/refs/tags/v${pkgver}.zip"
"${pkgname}")
sha256sums=('e4847511b9837a394d7609038bcb52fc6cc5a7953dc60ef2c8066515cfe601b0'
'b93065b98d21ce9054da53004edf703d7801fe7657583f4f594eb04f25df672c')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/
qmake
make
}
package() {
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}/"
cd pkg/
cp --preserve=mode -r icons "${pkgdir}/usr/share/"
#ln -sf "/usr/share/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/pkg/io.github.skiars.${pkgname}.desktop" "${pkgdir}/usr/share/applications/io.github.skiars.${pkgname}.desktop"
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/pkg/20-usb-serial.rules" "${pkgdir}/etc/udev/rules.d/20-usb-serial.rules"
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/pkg/io.github.skiars.${pkgname}.metainfo.xml" "${pkgdir}/usr/share/metainfo/io.github.skiars.${pkgname}.metainfo.xml"
}
|