summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortaotieren2021-03-25 11:15:00 +0800
committertaotieren2021-03-25 11:15:25 +0800
commit7bd234a4011a74ee8e792fdf8145a4913651eda7 (patch)
tree334d44a57152b0a3a7959bb751f29ccfba1e3e58
parent0c99363cc3511fb4333e329f4805a99947b1ee84 (diff)
downloadaur-7bd234a4011a74ee8e792fdf8145a4913651eda7.tar.gz
Update icon
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD20
3 files changed, 19 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b8954b4a5e4..d689d48040e 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 = 3
+ pkgrel = 4
url = https://github.com/Skiars/SerialTool
install = serialtool.install
arch = any
@@ -15,6 +15,7 @@ pkgbase = serialtool
depends = qt5-serialport
depends = qt5-charts
depends = qt5-script
+ depends = icoutils
provides = serialtool
conflicts = serialtool
conflicts = serialtool-git
diff --git a/.gitignore b/.gitignore
index 11888c16792..a72519b3a6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ pkg
*.pkg.tar.xz
*.pkg.tar.zst
*.log
+*.png
diff --git a/PKGBUILD b/PKGBUILD
index b8413d28611..abb349dad7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=SerialTool
pkgname=serialtool
pkgver=1.4.0alpha
-pkgrel=3
+pkgrel=4
pkgdesc="A practical Serial-Port/TCP/UDP debugging tool."
arch=('any')
url="https://github.com/Skiars/SerialTool"
@@ -10,7 +10,7 @@ license=('GPL3')
provides=(${pkgname})
conflicts=(${pkgname} 'serialtool-git')
#replaces=(${pkgname})
-depends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script')
+depends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script' 'icoutils')
makedepends=('qscintilla-qt5' 'qt5-serialport' 'qt5-charts' 'qt5-script' 'qt5-tools')
backup=()
options=('!strip')
@@ -25,6 +25,10 @@ sha256sums=('95b8780eecc007fae461025d1c3db8b2158905e9379541632ab791c3c5e72455'
'303f34246c0d341e1093d6e486e2cbfdbbb0d122d751de649f562ebac37777b4')
build() {
+ cp -r "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/resource/images/logo.ico" "${srcdir}/${_pkgname}-${pkgver}/${pkgname}.ico"
+#icotool -x "${srcdir}/${_pkgname}-${pkgver}/${pkgname}.ico"
+ cd "${srcdir}/${_pkgname}-${pkgver}/"
+ icotool -x "${pkgname}.ico"
cd ${srcdir}/${_pkgname}-${pkgver}/${_pkgname}/
qmake
make
@@ -32,14 +36,22 @@ build() {
package() {
install -dm755 "${pkgdir}/usr/bin/" \
- "${pkgdir}/usr/share/${pkgname}/"
+ "${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}-${pkgver}/${_pkgname}/resource/images/logo.ico" "${pkgdir}/usr/share/pixmaps/${pkgname}.ico"
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"
+
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_7_16x16x32.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_6_20x20x32.png" "${pkgdir}/usr/share/icons/hicolor/20x20/apps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_5_24x24x32.png" "${pkgdir}/usr/share/icons/hicolor/24x24/apps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_4_32x32x32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_3_64x64x32.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_2_128x128x32.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/${pkgname}_1_256x256x32.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
}