blob: 958cfc17fb68189cf81d6648b140b43d82c78919 (
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
46
47
48
49
50
51
52
53
54
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=at32-new-clock-configuration-bin
pkgname=at32-new-clock-configuration
pkgver=3.0.14
pkgrel=1
# epoch=1
pkgdesc="AT32 时钟配置工具是雅特力科技为方便对 AT32 系列 MCU 进行时钟配置而开发的一个图形化配置工具,其主旨是使用户清晰了解时钟路径和配置出期望的时钟频率。"
arch=('x86_64')
url="https://www.arterytek.com/cn/support/index.jsp"
license=('Commercial')
provides=(${pkgname})
conflicts=()
replaces=()
depends=(bash
gcc-libs
glib2
glibc
zlib)
makedepends=(libarchive sed)
optdepends=('artery-isp-console-bin: Artery ISP Console 是一款基于 MCU Bootloader 的命令行应用程序。使用该应用程序,用户可以通过 UART 端口或者 USB 端口配置操作 Artery 的 MCU 设备。'
'jlink-software-and-documentation: Segger JLink software & documentation pack for Linux'
'at32-ide'
'at32-work-bench')
backup=()
options=('!strip' '!debug' '!lto')
# install=${pkgname}.install
_pkg_name=AT32_New_Clock_Configuration
_pkg_linux=${_pkg_name}_Linux-${arch}
_pkg_file_name=${_pkg_linux}_V${pkgver}
source=("${_pkg_file_name}.zip::https://www.arterytek.com/download/TOOL/${_pkg_file_name}.zip")
# https://www.arterytek.com/download/TOOL/AT32_New_Clock_Configuration_Linux-x86_64_V3.0.14.zip
sha256sums=('9f30e644e212a3273d0750e6b120f8172a07394a8c3a7e0b252c307c9d49bb67')
# noextract=(${_pkg_file_name}.zip)
package() {
install -dm0755 "${pkgdir}/opt/artery32/${pkgname}/" \
"${srcdir}/${_pkg_file_name}"
bsdtar -xf ${srcdir}/${_pkg_file_name}.deb -C ${srcdir}/${_pkg_file_name}
bsdtar -xf ${srcdir}/${_pkg_file_name}/data.tar.xz -C ${srcdir}/${_pkg_file_name}
cp -rv ${srcdir}/${_pkg_file_name}/usr/local/* "${pkgdir}/opt/artery32/${pkgname}/"
sed -i 's|/usr/local/|/opt/artery32/at32-new-clock-configuration/|g' ${srcdir}/${_pkg_file_name}/usr/share/applications/AT32_New_Clock_Configuration.desktop
install -Dm0644 ${srcdir}/${_pkg_file_name}/usr/share/applications/AT32_New_Clock_Configuration.desktop ${pkgdir}/usr/share/applications/AT32_New_Clock_Configuration.desktop
install -Dm0644 ${srcdir}/${_pkg_file_name}/usr/share/icons/AT32_New_Clock_Configuration/ArteryIcon.ico ${pkgdir}/usr/share/icons/AT32_New_Clock_Configuration/ArteryIcon.ico
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <<EOF
#!/bin/bash
/opt/artery32/${pkgname}/${_pkg_name}/${_pkg_name}.sh "\$@"
EOF
chown -R root:root "${pkgdir}/"
}
|