blob: 15d10241c8ddd2ba822e7dd5912936da53348371 (
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
44
45
46
47
48
49
50
|
# Maintainer: KafCoppelia <k740677208@gmail.com>
pkgname=scopy-appimage
_disname=${pkgname%-appimage}
pkgver=2.0.0.beta.rc1
_ver=v2.0.0-beta-rc1
pkgrel=1
pkgdesc="A software oscilloscope and signal analysis toolset."
arch=('x86_64')
url="https://github.com/analogdevicesinc/scopy"
license=('GPL-3.0-only')
conflicts=('scopy-git')
depends=('zlib' 'hicolor-icon-theme' 'glibc')
_zip=Scopy-${_ver}-Linux-${arch}-AppImage.zip
source=(
${_zip}::${url}/releases/download/${_ver}/${_zip}
LICENSE::https://raw.githubusercontent.com/analogdevicesinc/scopy/main/LICENSE
)
sha256sums=('e0cdad07d778885fbceb86e9ebce700e30bdc8d8240fd931cc18ccf750435d12'
'589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2')
options=('!strip')
noextract=(${_zip})
_appimage=Scopy-${_ver}-Linux-${arch}.AppImage
prepare() {
cd ${srcdir} && rm -rf "squashfs-root"
bsdtar -xf ${_zip} --strip-components=1 -C ./
chmod +x ${_appimage}
./${_appimage} --appimage-extract > /dev/null
sed -i "/^Exec=/c\Exec=/usr/bin/${_disname} %U" "${srcdir}/squashfs-root/${_disname}.desktop"
}
package() {
# AppImage
install -Dm755 ${srcdir}/${_appimage} ${pkgdir}/opt/${pkgname}/${_disname}.AppImage
# Desktop file
install -Dm644 ${srcdir}/squashfs-root/${_disname}.desktop -t ${pkgdir}/usr/share/applications
# Icon images
install -Dm644 ${srcdir}/squashfs-root/usr/share/icons/hicolor/512x512/apps/${_disname}.png -t ${pkgdir}/usr/share/icons/hicolor/512x512/apps
# Symlink executable
install -dm755 ${pkgdir}/usr/bin && ln -sf /opt/${pkgname}/${_disname}.AppImage ${pkgdir}/usr/bin/${_disname}
# License
install -Dm644 ${srcdir}/LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname}
}
|