From c2b88a6748d1819da28a49d1f2ae088e54683cd1 Mon Sep 17 00:00:00 2001 From: hr567 Date: Tue, 8 Feb 2022 19:38:09 +0800 Subject: [PATCH] Initial commit --- .SRCINFO | 23 +++++++++++++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ apifox.desktop | 11 +++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 apifox.desktop diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..f0210b2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = apifox-bin + pkgdesc = API 文档、API 调试、API Mock、API 自动化测试 + pkgver = 1.4.22 + pkgrel = 1 + url = https://www.apifox.cn/ + arch = x86_64 + license = custom + depends = c-ares + depends = ffmpeg + depends = gtk3 + depends = libevent + depends = libxslt + depends = minizip + depends = nss + depends = re2 + depends = snappy + options = !strip + source = https://cdn.apifox.cn/download/Apifox-linux-latest.zip + source = apifox.desktop + sha256sums = 1984f0f0aa916272c223acf987a399b1e67486525a3dd7f04149a634f3477d0c + sha256sums = 538bd986b582053799128254b4fcd6edfd51d096b127cf6398555664497d76b0 + +pkgname = apifox-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b0df7d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: hr567 +pkgname=apifox-bin +pkgver=1.4.22 +pkgrel=1 +pkgdesc="API 文档、API 调试、API Mock、API 自动化测试" +arch=("x86_64") +url="https://www.apifox.cn/" +license=('custom') +depends=('c-ares' 'ffmpeg' 'gtk3' 'libevent' 'libxslt' 'minizip' 'nss' 're2' 'snappy') +source=( + "https://cdn.apifox.cn/download/Apifox-linux-latest.zip" + "apifox.desktop") +sha256sums=( + '1984f0f0aa916272c223acf987a399b1e67486525a3dd7f04149a634f3477d0c' + '538bd986b582053799128254b4fcd6edfd51d096b127cf6398555664497d76b0') +options=(!strip) + +package() { + install -Dm755 "${srcdir}/Apifox.AppImage" "${pkgdir}/opt/apifox/Apifox.AppImage" + install -Dm644 "${srcdir}/apifox.desktop" "${pkgdir}/usr/share/applications/apifox.desktop" + mkdir -p "${pkgdir}/usr/bin" + ln -sf "${pkgdir}/opt/apifox/Apifox.AppImage" "${pkgdir}/usr/bin" +} diff --git a/apifox.desktop b/apifox.desktop new file mode 100644 index 0000000..bfaf908 --- /dev/null +++ b/apifox.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Apifox +Exec=/opt/apifox/Apifox.AppImage %U +Comment=API 文档、API 调试、API Mock、API 自动化测试 +Comment[zh_CN]=API 文档、API 调试、API Mock、API 自动化测试 +Terminal=false +Icon=Apifox +Type=Application +StartupNotify=true +StartupWMClass=Apifox +Categories=Network;Development;Utility;