diff options
author | taotieren | 2022-10-21 10:16:24 +0800 |
---|---|---|
committer | taotieren | 2022-10-21 10:16:24 +0800 |
commit | 022eb82919a17ca5c10da9e1b098d9a73d499460 (patch) | |
tree | 06a1c250e6bee9273724ee72d8db6b2279c88b5c | |
download | aur-tinyserial-git.tar.gz |
Update 1.4.0
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 77 |
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bcb07ca219e7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = tinyserial-git + pkgdesc = A GUI Serial Debug Tool for Linux/Mac OS. + pkgver = 1.4.r0.g73e6933 + pkgrel = 1 + url = https://github.com/carloscn/tinyserial + arch = any + license = GPL3 + makedepends = gcc + makedepends = git + depends = qt5-base + conflicts = tinyserial + options = !strip + source = tinyserial::git+https://github.com/carloscn/tinyserial.git + sha256sums = SKIP + +pkgname = tinyserial-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..37bb465dc2db --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +* +*.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7be2c9d0b216 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: taotieren <admin@taotieren.com> + +pkgname=tinyserial-git +pkgver=1.4.r0.g73e6933 +pkgrel=1 +epoch= +pkgdesc="A GUI Serial Debug Tool for Linux/Mac OS." +arch=('any') +url="https://github.com/carloscn/tinyserial" +license=('GPL3') +groups=() +depends=('qt5-base') +makedepends=("gcc" "git") +checkdepends=() +optdepends=() +provides=() +conflicts=(tinyserial) +replaces=() +backup=() +options=('!strip') +install= +changelog= +source=("${pkgname%-git}::git+${url}.git") +noextract=() +sha256sums=('SKIP') +#validpgpkeys=() + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${pkgname%-git}" + qmake + make +} + +package() { + install -Dm0755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}" + install -Dm0755 "${srcdir}/${pkgname%-git}/img/appmain-ubuntu.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png" + install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE" + install -Dm0644 /dev/stdin "${pkgdir}/usr/share/metainfo/io.github.carloscn.tinyserial.metainfo.xml" << EOF +<?xml version="1.0" encoding="UTF-8"?> +<component type="desktop-application"> + <id>io.github.carloscn.tinyserial</id> + + <name>${pkgname%-git}</name> + <summary>${pkgname%-git}</summary> + + <metadata_license>MIT</metadata_license> + <project_license>GPL-3.0-only</project_license> + + <description> + <p> + ${pkgdesc} + </p> + </description> + + <launchable type="desktop-id">io.github.carloscn.tinyserial.desktop</launchable> +</component> +EOF + + install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/io.github.carloscn.tinyserial.desktop" << EOF +[Desktop Entry] +Version=1.0 +Type=Application + +Name=${pkgname%-git} +Comment=${pkgname%-git} +Categories=Network;Qt; + +Icon=${pkgname%-git}.png +Exec=${pkgname%-git} +Terminal=false +EOF +} |