summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e2265ca94aa55444312bcbfdf37a67bd9b15bd4 (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
# Maintainer: Steffen Jaeckel <arch at jaeckel dot eu>

pkgname=subsurface-appimage
pkgver=6.0.5276
pkgrel=1
pkgdesc="The free, open-source cross-platform dive log software. (AppImage version)"
arch=('x86_64')
url='https://subsurface-divelog.org/'
license=('GPL2')
depends=('fuse2')
provides=("subsurface=${pkgver}")
conflicts=('subsurface' 'subsurface-git')
source=("https://subsurface-divelog.org/downloads/Subsurface-${pkgver}-CICD-release.AppImage"
        'subsurface.sh')
sha256sums=('3d2490f6abf58f6204902ef0c1d1e3ddf7f6f88ae5eeab0e77b827f151117f61'
            '7694ff6ba4a998e4924d0a0f10481bf1ab27b1af23ca5cce190d0d873f966d48')
options=(!strip !debug)
_image="$(basename "${source[0]}")"
_pkgbasename=subsurface

prepare() {
  cd "${srcdir}"
  chmod +x "${_image}"
  ./"${_image}" --appimage-extract
}

package() {
  install -Dm755 "${srcdir}/${_image}" "${pkgdir}/opt/appimages/${_pkgbasename}.AppImage"
  install -Dm755 "${srcdir}/${_pkgbasename}.sh" "${pkgdir}/usr/bin/${_pkgbasename}"
  install -dm755 "${pkgdir}/usr/share/"
  cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
  install -Dm644 "${srcdir}/squashfs-root/${_pkgbasename}.desktop" "${pkgdir}/usr/share/applications/${_pkgbasename}.desktop"
}

# vim:set ts=2 sw=2 et: