diff options
author | taotieren | 2022-02-18 15:53:17 +0800 |
---|---|---|
committer | taotieren | 2022-02-18 15:53:17 +0800 |
commit | 5b4f337477f7651e8d8d382762cd2741593043ba (patch) | |
tree | b4a66c42ce0a5c94086edbc0bdb882491f9443c5 | |
download | aur-5b4f337477f7651e8d8d382762cd2741593043ba.tar.gz |
Add nutool-usbtoserialport-git
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 81 |
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3ca68c98ec61 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = nutool-usbtoserialport-git + pkgdesc = NuTool-USB to Serial Port is a host-side software, it passes through and montiors I2C, SPI and CAN data of Nu-Link2-Pro® adapter + pkgver = e7da256 + pkgrel = 1 + url = https://gitee.com/OpenNuvoton/NuTool-USB-to-Serial-Port + arch = any + license = GPL3 + makedepends = qt5-tools + makedepends = git + depends = qt5-serialport + provides = NuTool-USBtoSerialPort + conflicts = nutool-usbtoserialport + options = !strip + source = NuTool-USBtoSerialPort::git+https://gitee.com/OpenNuvoton/NuTool-USB-to-Serial-Port.git + sha256sums = SKIP + +pkgname = nutool-usbtoserialport-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..29d0ff792f4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,81 @@ +# Maintainer: taotieren <admin@taotieren.com> + +pkgname=nutool-usbtoserialport-git +_pkgname=NuTool-USBtoSerialPort +pkgver=e7da256 +pkgrel=1 +epoch= +pkgdesc="NuTool-USB to Serial Port is a host-side software, it passes through and montiors I2C, SPI and CAN data of Nu-Link2-Pro® adapter" +arch=('any') +url="https://gitee.com/OpenNuvoton/NuTool-USB-to-Serial-Port" +license=('GPL3') +groups=() +depends=('qt5-serialport') +makedepends=('qt5-tools' 'git') +checkdepends=() +optdepends=() +provides=('NuTool-USBtoSerialPort') +conflicts=(${pkgname%-git}) +replaces=() +backup=() +options=('!strip') +install= +changelog= +source=("${_pkgname}::git+${url}.git") +noextract=() +sha256sums=('SKIP') +#validpgpkeys=() + +pkgver() { + cd "${srcdir}/${_pkgname}/" +# git describe --long --tags | sed 's/V//g;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --always | sed 's|-|.|g' +} + +build() { + cd "${srcdir}/${_pkgname}" + qmake + make +} + +package() { + cd "${srcdir}/${_pkgname}" + install -Dm0755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}" + + install -Dm0644 /dev/stdin "${pkgdir}/usr/share/metainfo/io.gitee.opennuvoton.nutool-usb-to-serial-port.metainfo.xml" << EOF +<?xml version="1.0" encoding="UTF-8"?> +<component type="desktop-application"> + <id>io.gitee.opennuvoton.nutool-usb-to-serial-port</id> + + <name>${_pkgname}</name> + <summary>${_pkgname}</summary> + + <metadata_license>MIT</metadata_license> + <project_license>GPL-2.0-or-later</project_license> + + <description> + <p> + NuTool-USB to Serial Port is a host-side software, it passes through and montiors I2C, SPI and CAN data of Nu-Link2-Pro® adapter + </p> + </description> + + <launchable type="desktop-id">io.gitee.opennuvoton.nutool-usb-to-serial-port.desktop</launchable> +</component> +EOF + + install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/io.gitee.opennuvoton.nutool-usb-to-serial-port.desktop" << EOF +[Desktop Entry] +Version=1.0 +Type=Application + +Name=${_pkgname} +Comment=${_pkgname} +Categories=Development;Electronics; + +Icon=${_pkgname} +Exec=${_pkgname} +Terminal=false +EOF + install -dm0755 "${pkgdir}/usr/share/licenses/${pkgname%-git}/" + cp -ra "${srcdir}/${_pkgname}/Licenses" "${pkgdir}/usr/share/licenses/${pkgname%-git}/" +} |