diff options
author | sukanka | 2022-09-26 20:04:04 +0800 |
---|---|---|
committer | sukanka | 2022-09-26 20:04:04 +0800 |
commit | 47d08c6c3aebd89fc072a0af8c0ad69232f3122d (patch) | |
tree | 8b3f2b4d36d4a74f01e21dee5808e8772ac3cb78 | |
parent | 3aacd654f2ec8547a03199407e12dd2a85b53268 (diff) | |
download | aur-47d08c6c3aebd89fc072a0af8c0ad69232f3122d.tar.gz |
update to 23.1.3.4
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 31 insertions, 31 deletions
@@ -1,6 +1,6 @@ pkgbase = zwcad-bin pkgdesc = ZWSOFT研发的二维CAD软件,可满足看图、审图、打印工作需要 - pkgver = 23.0.3.4 + pkgver = 23.1.3.4 pkgrel = 1 epoch = 1 url = https://www.zwcad.com @@ -19,9 +19,9 @@ pkgbase = zwcad-bin options = !strip source = zwcad.sh sha512sums = 3f978fc46a39c8e65551a8e581f234526183b6b811b1e857fb17903549b10442b676713c342880d144a47fc5da76882152901533abd898a24588b7e9bbbc207c - source_x86_64 = zwcad-23.0.3.4-x86_64.deb::https://download.zwcad.com/zwcad/cad_linux/2023/Official/zwcad2023_23.0.3.4_chs_amd64.deb - sha512sums_x86_64 = 3d124586fff017d624ae3e6dac5c08bc7cc527930def4cf0c06d410904fa60599874f56a4679d7ec7da454bc85c679f8af9e207004be52a1d6617cb494a173af - source_aarch64 = zwcad-23.0.3.4-aarch64.deb::https://download.zwcad.com/zwcad/cad_linux/2023/Official/zwcad2023_23.0.3.4_chs_arm64.deb - sha512sums_aarch64 = 507df24ab0a9772a13944e3d1e6a8f8c13e5188ff07c3becfe848b03506f4db48cb0f91c45d1ec5a4d4f15699d7ce563e1be8af3031d2df7d8e0cfc324e1cbcc + source_x86_64 = zwcad-23.1.3.4-x86_64.deb::https://dl.zwsoft.cn/zwcad/cad_linux/2023/SP1/zwcad2023_23.1.3.4_amd64.deb?auth_key=1664192656-0-0-eb3fc495266d480071161e6b7ac270f4 + sha512sums_x86_64 = 7a3e85de6f61023ce91664e8ce795dd69e640f2a9a636c15e161c34c1bdf8dc4a0c660c544ab951087d9a609e1dbcd70456bd70002eef4820a3aae6ad6eb2374 + source_aarch64 = zwcad-23.1.3.4-aarch64.deb::https://dl.zwsoft.cn/zwcad/cad_linux/2023/SP1/zwcad2023_23.1.3.4_arm64.deb?auth_key=1664192656-0-0-b2587d6066ca3b7ac1940cf4f135a7aa + sha512sums_aarch64 = 355ce8181fef73ca60bcd86941f2c32d3bcd3397e42a89dbd0df5d96621830fdeffc6e761b6dadb9c2338df7c60c25354f113c6253ff679817b712cde5aeb35c pkgname = zwcad-bin @@ -2,7 +2,7 @@ pkgname='zwcad-bin' _pkgname='zwcad' -pkgver=23.0.3.4 +pkgver=23.1.3.4 _year=20${pkgver:0:2} pkgrel=1 epoch=1 @@ -14,22 +14,22 @@ provides=("zwcad") depends=('freeimage' 'qrencode' 'freetype2' 'python' 'openssl' 'log4cpp' 'gmp') makedepends=('patchelf') source=('zwcad.sh') -source_x86_64=("${_pkgname}-${pkgver}-x86_64.deb::https://download.zwcad.com/zwcad/cad_linux/${_year}/Official/zwcad${_year}_${pkgver}_chs_amd64.deb") -source_aarch64=("${_pkgname}-${pkgver}-aarch64.deb::https://download.zwcad.com/zwcad/cad_linux/${_year}/Official/zwcad${_year}_${pkgver}_chs_arm64.deb") +source_x86_64=("${_pkgname}-${pkgver}-x86_64.deb::https://dl.zwsoft.cn/zwcad/cad_linux/${_year}/SP1/zwcad${_year}_${pkgver}_amd64.deb?auth_key=1664192656-0-0-eb3fc495266d480071161e6b7ac270f4") +source_aarch64=("${_pkgname}-${pkgver}-aarch64.deb::https://dl.zwsoft.cn/zwcad/cad_linux/${_year}/SP1/zwcad${_year}_${pkgver}_arm64.deb?auth_key=1664192656-0-0-b2587d6066ca3b7ac1940cf4f135a7aa") sha512sums=('3f978fc46a39c8e65551a8e581f234526183b6b811b1e857fb17903549b10442b676713c342880d144a47fc5da76882152901533abd898a24588b7e9bbbc207c') -sha512sums_x86_64=('3d124586fff017d624ae3e6dac5c08bc7cc527930def4cf0c06d410904fa60599874f56a4679d7ec7da454bc85c679f8af9e207004be52a1d6617cb494a173af') -sha512sums_aarch64=('507df24ab0a9772a13944e3d1e6a8f8c13e5188ff07c3becfe848b03506f4db48cb0f91c45d1ec5a4d4f15699d7ce563e1be8af3031d2df7d8e0cfc324e1cbcc') +sha512sums_x86_64=('7a3e85de6f61023ce91664e8ce795dd69e640f2a9a636c15e161c34c1bdf8dc4a0c660c544ab951087d9a609e1dbcd70456bd70002eef4820a3aae6ad6eb2374') +sha512sums_aarch64=('355ce8181fef73ca60bcd86941f2c32d3bcd3397e42a89dbd0df5d96621830fdeffc6e761b6dadb9c2338df7c60c25354f113c6253ff679817b712cde5aeb35c') options=(!strip) # no need to strip, it only decreases the installed size by 24.44 MiB. prepare(){ cd $srcdir tar -xJf data.tar.xz -C "${srcdir}" - + cp zwcad.sh zwlmgr.sh sed -i '$d' zwlmgr.sh echo './ZwLmgr /language zh-CN /language zh-CN' >>zwlmgr.sh - + cd $srcdir/opt/apps/zwcad${_year} #system qt rm -rf lib/{libQt*,libpng*} plugins libpng* qt.conf @@ -40,25 +40,25 @@ prepare(){ test -d python${_pyver%.*} || mkdir python${_pyver%.*} cp python3.7/ZwPyRuntime.so python${_pyver%.*} rm -rf python3.{4,5,6,7} - + cd $srcdir/opt/apps/zwcad${_year} rm -rf libZwPythonLoad{4,5,6}.so _midver=$(echo ${_pyver} |cut -d'.' -f2) mv libZwPythonLoad7.so libZwPythonLoad${_midver}.so } build(){ - + cd $srcdir/opt/apps/zwcad${_year} - + # Fix ./ZWLMGRRUN.sh and ./ZWCADRUN.sh not found sed -i 's|ZWLMGRRUN.sh|zwlmgr\x0\x0\x0\x0\x0\x0|g' ZWCAD sed -i 's|ZWCADRUN.sh|zwcad\x0\x0\x0\x0\x0\x0|g' ZwLmgr - + # Fix desktop cd $srcdir/usr/share/applications/ - sed -i 's|^Exec=.*|Exec=zwcad %F|g;s|^Icon=.*|Icon=ZWCAD|g' "zwcad${_year}.desktop" - sed -i 's|^Exec=.*|Exec=zwlmgr|g;s|^Icon=.*|Icon=ZWCAD|g' "zwlmgr${_year}.desktop" - + sed -i "s|^Exec=.*|Exec=zwcad %F|g;s|^Icon=.*|Icon=zwcad${_year}|g" "zwcad${_year}.desktop" + sed -i "s|^Exec=.*|Exec=zwlmgr|g;s|^Icon=.*|Icon=zwcad${_year}|g" "zwlmgr${_year}.desktop" + } package(){ @@ -66,17 +66,17 @@ package(){ cp -rf "${srcdir}"/usr "$pkgdir" mkdir -p "${pkgdir}"/usr/share/icons/hicolor/scalable/apps cp -rf "${srcdir}"/opt/apps/zwcad${_year} "${pkgdir}"/opt/zwcad - chmod a-x "${pkgdir}"/opt/zwcad/Icons/ZWCAD.svg - mv "${pkgdir}"/opt/zwcad/Icons/ZWCAD.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps - + # chmod a-x "${pkgdir}"/opt/zwcad/Icons/ZWCAD.svg + # mv "${pkgdir}"/opt/zwcad/Icons/ZWCAD.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps + # create executable install -Dm755 ${srcdir}/zwcad.sh "$pkgdir"/usr/bin/zwcad install -Dm755 ${srcdir}/zwlmgr.sh "$pkgdir"/usr/bin/zwlmgr - - + + cd "$pkgdir"/opt/zwcad install -Dm644 sense4_usb.rules ${pkgdir}/etc/udev/rules.d/sense4_usb.rules - + # patch rpath for lib in ${pkgdir}/opt/zwcad/lib*.so do @@ -86,20 +86,20 @@ package(){ _pyver=$(python -V | cut -d' ' -f2) patchelf --set-rpath '$ORIGIN:/usr/lib/zwcad' ${pkgdir}/opt/zwcad/ZwPyRuntime/python${_pyver%.*}/ZwPyRuntime.so patchelf --set-rpath '$ORIGIN:/usr/lib/zwcad' ${pkgdir}/opt/zwcad/ZWCAD - + # move libs mkdir -p ${pkgdir}/usr/lib/zwcad mv "$pkgdir"/opt/zwcad/{lib/libSpaA*,libdwf*,libsw*,libfsdk*} ${pkgdir}/usr/lib/zwcad - + # Cheat ZwPyRuntime.so to use libpython3.10.so as libpython3.7m.so.1.0 ln -s /usr/lib/libpython${_pyver%.*}.so ${pkgdir}/usr/lib/zwcad/libpython3.7m.so.1.0 - - + + # remove unused files rm -rf "$pkgdir"/opt/zwcad/{Icons,ZWCADRUN.sh,ZWLMGRRUN.sh} rm -rf ${pkgdir}/opt/zwcad/{libfree*,libqren*,libcrypto*,libgmp*,liblog4cpp*,libssl*,*.rules} rm -rf ${pkgdir}/opt/zwcad/lib/{libicu*,libpcre*} - - + + } |