blob: 878a6b0667c3eb34ed81ef06a7335aa79b8ef041 (
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
|
# Maintainer: Marek "foxie" Brenčič <marek@brencic.sk>
# Contributor: Radoslaw Mejer <radmen @ radmen.info>
pkgname=stoplight-studio-appimage
pkgver=2.2.0
_realver=2.2.0-stable.5343.git-ab43444
pkgrel=2
pkgdesc="The modern editor for API Architects and Technical Writers."
arch=('x86_64')
url='https://stoplight.io/studio/'
license=('custom')
depends=('fuse2')
source=(
"stoplight-studio-linux-x86_64-${_realver}.AppImage::https://github.com/stoplightio/studio/releases/download/v${_realver}/stoplight-studio-linux-x86_64.AppImage"
"stoplight-studio.desktop"
)
sha256sums=(
"2b84059851bb4d98002662b1f9fd749239dd9a85ff667fa12c8d33ee01727cc0"
"72bf480d367051fca62f02cca5c421fd0b9f0245494b6d41a897db5c7a3f9fd7"
)
options=(!strip)
_filename="./stoplight-studio-linux-${arch}-${_realver}.AppImage"
prepare() {
cd "${srcdir}"
chmod +x ${_filename}
${_filename} --appimage-extract
}
package() {
install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/stoplight-studio.AppImage"
install -dm755 "${pkgdir}/usr/share/"
cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
install -Dm644 "${srcdir}/stoplight-studio.desktop" "${pkgdir}/usr/share/applications/stoplight-studio.desktop"
}
|