diff options
author | begin-theadventure | 2023-06-03 14:29:37 +0200 |
---|---|---|
committer | begin-theadventure | 2023-06-03 14:29:37 +0200 |
commit | a5df1017ad5e9c863b417d29108709dd7447249f (patch) | |
tree | b76e5e3d2883a268bfca88b5c9d6f94148ed8383 | |
parent | 85289ba1fa624a384b2f5bf970b3200a44a5b050 (diff) | |
download | aur-hotspot-appimage.tar.gz |
Adopt Package, 1.4.1, cleanup, change installation process, disable AppImageLauncher integration
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 58 |
2 files changed, 31 insertions, 39 deletions
@@ -1,17 +1,15 @@ pkgbase = hotspot-appimage - pkgdesc = The Linux perf GUI for performance analysis. - pkgver = 1.3.0 + pkgdesc = The Linux perf GUI for performance analysis (AppImage release) + pkgver = 1.4.1 pkgrel = 1 url = https://github.com/KDAB/hotspot arch = x86_64 license = GPL - depends = perf - depends = fuse + depends = fuse2 provides = hotspot conflicts = hotspot - noextract = hotspot-appimage-1.3.0.AppImage options = !strip - source = hotspot-appimage-1.3.0.AppImage::https://github.com/KDAB/hotspot/releases/download/v1.3.0/hotspot-v1.3.0-x86_64.AppImage - sha256sums = 7d933e4e8dfe3894c244a74979eb1ad94bda109380398c532fb9ca7ef958c0eb + source = https://github.com/KDAB/hotspot/releases/download/v1.4.1/hotspot-v1.4.1-x86_64.AppImage + sha256sums = 281c3e652285fad052a9af9d722c974940dbdc46d07e9727d35ed42d69c65f83 pkgname = hotspot-appimage @@ -1,44 +1,38 @@ -# Submitter: Zhiwei Chen <condy0919@gmail.com> -# Mantainer: Fabrizio Pietrucci <bamlessnty5@gmail.com> +# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com> +# Contributor: Fabrizio Pietrucci <bamlessnty5@gmail.com> +# Contributor: Zhiwei Chen <condy0919@gmail.com> _pkgname=hotspot -pkgname="${_pkgname}"-appimage -pkgver=1.3.0 +pkgname=$_pkgname-appimage +pkgver=1.4.1 pkgrel=1 -pkgdesc="The Linux perf GUI for performance analysis." +pkgdesc="The Linux perf GUI for performance analysis (AppImage release)" arch=('x86_64') url="https://github.com/KDAB/hotspot" license=('GPL') -depends=('perf' 'fuse') -conflicts=(hotspot) -provides=(hotspot) -options=(!strip) -_appimage="${pkgname}-${pkgver}.AppImage" - -noextract=("${_appimage}") -source=("${_appimage}::https://github.com/KDAB/hotspot/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-x86_64.AppImage") -sha256sums=('7d933e4e8dfe3894c244a74979eb1ad94bda109380398c532fb9ca7ef958c0eb') +depends=('fuse2') +provides=($_pkgname) +conflicts=($_pkgname) +options=('!strip') +_appimage="$_pkgname-v$pkgver-x86_64.AppImage" +source=("$url/releases/download/v$pkgver/$_appimage") +sha256sums=('281c3e652285fad052a9af9d722c974940dbdc46d07e9727d35ed42d69c65f83') prepare() { - chmod +x "${_appimage}" - ./"${_appimage}" --appimage-extract -} - -build() { - chmod -R a-x+rX squashfs-root/opt # Fix permissions + # Extract the AppImage + chmod +x "$_appimage" + ./"$_appimage" --appimage-extract + chmod 755 squashfs-root + # Create an exec file with an environment variable that disables AppImageLauncher integration + echo env APPIMAGELAUNCHER_DISABLE=true /opt/$_pkgname/$_pkgname > $_pkgname } package() { - # AppImage - install -Dm755 "${_appimage}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage" - - # Desktop file - install -Dm644 "squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" - - # Icon images - cp -a "squashfs-root/opt/share/icons" "${pkgdir}/usr/share/" - - # Symlink executable - install -dm755 "${pkgdir}/usr/bin/" - ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}" + cd squashfs-root + for i in 16x16 22x22 32x32 48x48 64x64 512x512; do + install -Dm644 usr/share/icons/hicolor/$i/apps/$_pkgname.png "$pkgdir/usr/share/icons/hicolor/$i/apps/$_pkgname.png" + done + install -Dm644 usr/share/applications/com.kdab.$_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop" + install -Dm755 ../$_appimage "$pkgdir/opt/$_pkgname/$_pkgname" + install -Dm755 ../$_pkgname -t "$pkgdir/usr/bin" } |