blob: e2de4dd353e2c320546b44c9e1dd0e58fb43fe18 (
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
|
# Maintainer: SysAdm <sysadm.archlinux@proton.me>
# Contributor: Asuka Minato
pkgname=caido-desktop
pkgver=0.43.0
pkgrel=1
pkgdesc="A lightweight web security auditing toolkit."
arch=('x86_64')
url="https://caido.io/"
license=('private')
depends=(glibc gcc-libs)
provides=(caido)
source=("https://caido.download/releases/v${pkgver}/caido-desktop-v${pkgver}-linux-x86_64.AppImage")
sha256sums=('707701e9638a3b5714246f4dac154d6a4d0a846ef25702b3045096dd1afce2ef')
prepare() {
chmod +x *.AppImage
./*.AppImage --appimage-extract
mv squashfs-root/ ${srcdir}/build
}
package() {
install -dm 755 "$pkgdir/usr/bin"
install -dm 755 "$pkgdir/opt/$pkgname"
cp -a "${srcdir}/build/usr/share" "$pkgdir"
cp -aR "${srcdir}/build"/* "$pkgdir/opt/$pkgname/"
ln -s "/opt/$pkgname/caido" "$pkgdir/usr/bin/$provides"
find "$pkgdir/opt/$pkgname" -type d -exec chmod 755 {} +
sed -i 's|Exec=AppRun --no-sandbox %U|Exec=caido|' "build/caido.desktop"
install -Dm 644 "build/caido.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm 644 "build/caido.png" -t "$pkgdir/usr/share/icons/hicolor/256x256/apps/"
}
|