blob: ea884f6290a58e96b0852e15ad824432890d6be7 (
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
|
# Maintainer: Aryan Ghasemi <t.me/gnuphile>
pkgname="reqable-appimage"
pkgver=2.33.12
_pkgname='reqable'
_archive="$_pkgname-$pkgver"
pkgrel=1
pkgdesc="Reqable is a new generation API debugging and testing one-stop solution. Reqable fully supports HTTP1 and HTTP2 and partially supports HTTP3(QUIC). Now available on Windows, Mac, Linux, Android and iOS."
arch=('x86_64')
# Appimage should contains exclude "strip" option
options=(!strip !debug)
depends=()
url="https://reqable.com"
conflicts=(${_pkgname})
noextract=( "${_archive}.AppImage" )
source=(
"${_archive}.AppImage::https://api.reqable.com/download?platform=linux&arch=${arch}&ext=AppImage"
)
sha256sums=('23f79387b6cfe8ea114de4894fcb065dc47094efb38e2a96c3656136a42d1578')
prepare() {
chmod +x "${_archive}.AppImage"
./"${_archive}".AppImage --appimage-extract >/dev/null
}
package() {
# Appimage
install -Dm755 "${srcdir}/${_archive}.AppImage" "${pkgdir}/opt/${_pkgname}/${_pkgname}.AppImage"
# Symlink executable
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/${_pkgname}/${_pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
# logo
cd "${srcdir}/squashfs-root"
# desktop file
install -Dm644 "${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
# find "${srcdir}/squashfs-root/usr/share/icons/ -type f -exec install -Dm644 {} test/{} \;
install -Dm644 "${_pkgname}.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png"
}
|